This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 37926
    
  22
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: 18507
    
  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: 3419
    
  12
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Do we have java hot spot 32 bit SERVER edition
 
Similar Threads
running eclipse on Ubuntu
Eclipse start but return exit code=1
compile 32 bit deploy to 64 bit
Hot spot and normal compiler
64 bit or 32 bits jdk ?