aspose file tools*
The moose likes Java in General and the fly likes How to set Java HotSpot Server VM for Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to set Java HotSpot Server VM for Linux" Watch "How to set Java HotSpot Server VM for Linux" New topic
Author

How to set Java HotSpot Server VM for Linux

suhas walanjoo
Greenhorn

Joined: Sep 12, 2003
Posts: 4
Hi,

I have a Java application running on JBoss 3.0.0 on Linux 7.3. When I run comman java -version

I get the following :

Java TM runtime Environement Standard Edition <build 1.4.1_01-b01
Java Hotspot <TM> Client VM Build 1.4.1_01-b01 <mixed mode>

From Sun Java site, I understand that for long running server tasks we need to use -server flag. When I try java -server command and check the version again, it still shows the client VM as above.

Can someone please clarify this issue (whether we really must have java - server option for JBoss/EJB based application). If yes, how d o we set it?? (I think a separate download as par tof JVM is not reuired.)

Regards,

Suhas Walanjoo
Harro deGouw
Greenhorn

Joined: Feb 23, 2004
Posts: 5
Yes, you should use the server VM. It uses a different heap structure and garbage collection settings. Also, consider tuning the VM with the additional -X options.
I'm not sure what you are trying to do, if you try java -server -version you should get the Hotspot server VM.
If not, check you distribution. The jre/bin directory should contain server and client subdirs. (or in my case, jre/lib/sparc for a Sun Solaris dist)
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

I answered that crossposted question in a different forum.


http://home.arcor.de/hirnstrom/bewerbung
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set Java HotSpot Server VM for Linux