Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

does specifying -server option when starting java boost peformance?  RSS feed

 
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: 24215
37
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!