The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » GlassFish

Thread: how to configure glassfish to use 64 bit jvm

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 8 - Last Post: Jul 24, 2008 1:50 AM by: Alexis Moussine...
kanduls

Posts: 3
how to configure glassfish to use 64 bit jvm
Posted: Jul 15, 2008 4:18 AM
  Click to reply to this thread Reply

Hi,
I have glassfish running on Solaris machine which is using 32 bit jvm, how can i configure glassfish to use 64 bit jvm.

Thanks,
K.Srinivas

Manfred Riem
RE: how to configure glassfish to use 64 bit jvm
Posted: Jul 15, 2008 6:11 AM   in response to: kanduls
  Click to reply to this thread Reply

Just point it to the 64-bit JVM in asenv.conf should do the trick.

Manfred

-----Original Message-----
From: glassfish@javadesktop.org [mailto:glassfish@javadesktop.org]
Sent: Tuesday, July 15, 2008 5:19 AM
To: users@glassfish.dev.java.net
Subject: how to configure glassfish to use 64 bit jvm

Hi,
I have glassfish running on Solaris machine which is using 32 bit jvm, how can i configure glassfish to use 64 bit jvm.

Thanks,
K.Srinivas
[Message sent by forum member 'kanduls' (kanduls)]

http://forums.java.net/jive/thread.jspa?messageID=286681

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net


Sreeram Duvur
Re: how to configure glassfish to use 64 bit jvm
Posted: Jul 15, 2008 6:31 AM   in response to: Manfred Riem
  Click to reply to this thread Reply


On Jul 15, 2008, at 6:11 AM, Manfred Riem wrote:

> Just point it to the 64-bit JVM in asenv.conf should do the trick.
>

You may have to put -d64 in jvm-options.

> Manfred
>
> -----Original Message-----
> From: glassfish@javadesktop.org [mailto:glassfish@javadesktop.org]
> Sent: Tuesday, July 15, 2008 5:19 AM
> To: users@glassfish.dev.java.net
> Subject: how to configure glassfish to use 64 bit jvm
>
> Hi,
> I have glassfish running on Solaris machine which is using 32 bit
> jvm, how can i configure glassfish to use 64 bit jvm.
>
> Thanks,
> K.Srinivas
> [Message sent by forum member 'kanduls' (kanduls)]
>
> http://forums.java.net/jive/thread.jspa?messageID=286681
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net


kanduls

Posts: 3
Re: how to configure glassfish to use 64 bit jvm
Posted: Jul 16, 2008 2:38 AM   in response to: Sreeram Duvur
  Click to reply to this thread Reply

Thanks for the reply..
Added -d64 to asadmin script and got below error.
/opt/SUNWappserver/lib/libnspr4.so: ld.so.1: java: fatal: /opt/SUNWappserver/lib/libnspr4.so: wrong ELF class: ELFCLASS32

ykwon

Posts: 4
Re: how to configure glassfish to use 64 bit jvm
Posted: Jul 16, 2008 6:49 PM   in response to: kanduls
  Click to reply to this thread Reply

Even when I changed the NSS libraries to the 64bit versions and added -d64 in the JVM options,

In asenv.conf:

AS_NSS="/opt/SUNWappserver/lib/sparcv9"
AS_NSS_BIN="/opt/SUNWappserver/lib/sparcv9"

I got the following error, which seems to me the 64bit JVM is not compatible with both 32-bit and 64-bit NSPR library, libnspr4.so.

/opt/SUNWappserver/lib/sparcv9/libnspr4.so: ld.so.1: java: fatal: /opt/SUNWappserver/lib/sparcv9/libnspr4.so: wrong ELF class: ELFCLASS64

Does Glassfish v2 U2 or AS 9.1_02 officially support 64-bit JVM?

ykwon

Posts: 4
Re: how to configure glassfish to use 64 bit jvm
Posted: Jul 16, 2008 7:32 PM   in response to: ykwon
  Click to reply to this thread Reply

I am using a Sun FIre T2000 box (aka Niagara 1 box).

kanduls

Posts: 3
Re: how to configure glassfish to use 64 bit jvm
Posted: Jul 18, 2008 3:44 AM   in response to: kanduls
  Click to reply to this thread Reply

It worked after doing below steps:
1. Reinstalled 1.6.0_07 64 bit jdk.
2. added -d64 to asadmin script
3. added <jvm-options>-d64</jvm-options> to domain.xml
4. Changed <jvm-options>-client</jvm-options> to <jvm-options>-server</jvm-options>

gozilla3st

Posts: 3
Re: how to configure glassfish to use 64 bit jvm
Posted: Jul 23, 2008 8:51 PM   in response to: kanduls
  Click to reply to this thread Reply

Thnak you for good info. This is very helpful for us.
[We searched how to use 64bit-jvm with GlassFish(SJSAS9.1) , but found no-useful info in web/manual/wiki.]

Alexis Moussine...
Re: how to configure glassfish to use 64 bit jvm
Posted: Jul 24, 2008 1:50 AM   in response to: gozilla3st
  Click to reply to this thread Reply

Here's something to bootstrap the information on the GlassFish Wiki FAQ:
http://wiki.glassfish.java.net/Wiki.jsp?page=Faq64bitConfig

-Alexis

On Jul 24, 2008, at 5:51, glassfish@javadesktop.org wrote:

> Thnak you for good info. This is very helpful for us.
> [We searched how to use 64bit-jvm with GlassFish(SJSAS9.1) , but
> found no-useful info in web/manual/wiki.]
> [Message sent by forum member 'gozilla3st' (gozilla3st)]
>
> http://forums.java.net/jive/thread.jspa?messageID=288897
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net





 XML java.net RSS