does specifying -server option when starting java boost peformance?
posted 13 years ago
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.
- 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.