This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

does specifying -server option when starting java boost peformance?

 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.)
i'm uing jdk1.4.1. Can someone tell me if it is advisable to start java with -sever option instead of -client or -hotspot option?
Do you think it will buy me anything at all?
I�m using this command line to start weblogic application server.
2)
My weblogic admin tells me that it is not advisable to supply a large value for -ms and -mx option
is that true.?
If i have say a 4 GB machine is it ok if i use say 2GB for starting java?
There are not many other processes running in the background.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
- There are two different versions of the HotSpot JVM which are tuned for different situations. The -client one is tuned for fast startup; the server, for faster execution for a long-running process. The -server option is therefore a good for WebLogic.
- Specifying large initial heap size means that the JVM will go longer without during a thorough garbage collection; this can lead to unacceptably long pauses when memory finally does fill up. Of course, it can lead to better performance before that time, and having more memory lets you do more work, too.
But just talking about heap size and -server is actually naive -- there's a lot to this topic. See, for example, this document for some more useful information.
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks.
 
I am Arthur, King of the Britons. And this is a tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!