Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes Do we have java hot spot 32 bit SERVER edition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Do we have java hot spot 32 bit SERVER edition " Watch "Do we have java hot spot 32 bit SERVER edition " New topic
Author

Do we have java hot spot 32 bit SERVER edition

Sanju Thomas
Ranch Hand

Joined: Dec 29, 2004
Posts: 243
Do we have java hot spot 32 bit SERVER edition ??
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38481
    
  23
I've never heard that there is a difference between JREs on servers and on clients. So, I think not.
Carey Evans
Ranch Hand

Joined: May 27, 2008
Posts: 225

If Sanju is referring to the difference between the JVMs selected by the -client and -server command line options, then the 32-bit server JVM is available as part of the JDK:
Sanju Thomas
Ranch Hand

Joined: Dec 29, 2004
Posts: 243
Thank you all.. Does it mean that when I start my program using "java -server program_name" it starts as a server VM ?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Yes.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18760
    
  40

BTW, the difference between using "-server" and "-client" is with the JIT compiler. With the "-client" option, the JVM will JIT the class files as soon as it is loaded. WIth the "-server" option, the JVM will stay with the interpreter gathering information about the class, usage patterns, etc. Then later, the JVM will JIT the class files, using the profiling information that it gather to optimize it.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3492
    
  13
Originally posted by Sanju Thomas:
Thank you all.. Does it mean that when I start my program using "java -server program_name" it starts as a server VM ?


Not necessarily. The JRE version you are using will have to have the server jvm.dll installed with it. The standard Windows JRE doesn't. You need to use the JRE that is bundled with the JDK if you want to use the -server option on Windows.


Joanne
Peter Lawrey
Ranch Hand

Joined: Dec 21, 2008
Posts: 62
With Linux and Solaris, -server is a default option.
Sanju Thomas
Ranch Hand

Joined: Dec 29, 2004
Posts: 243
Thanks a lot.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Do we have java hot spot 32 bit SERVER edition