Application Server Solutions for Microsoft IIS and ASP.NET
       solutions   products   partners   company   support   downloads         store
ServletExec Self-Help: FAQ
Back to Search >  Back to Search Results

Faq ID 182
Product ServletExec
Category VM Settings
Question What values does New Atlanta recommend for setting the Min. and Max. Heap size of the JVM ?
Answer We don't really have any hard recommendations for you.
Most people just use the default settings that are established by the JVM version. If you start running into OutOfMemory Exceptions, or just like playing around with Heap sizes then we recommend that you:
  1. Research what Sun Microsystems has to say on the matter.
    How to use the -X options [ -Xms for min heap, and -Xmx for max heap ] to set the min and max heap sizes is discussed in the JavaDocs for JDK 1.3.x and newer.
    Here for instance:
    JVM Non-Standard Options

    http://java.sun.com/docs/hotspot/index.html is also a great place to look.

  2. Do your own testing.
    Configurations such as heap size are highly dependent on an individual's specific situation. Anyone that tells you:
    "oh, just set it to this..."
    is probably doing you a disservice. There is no substitute for tweaking this yourself and studying the result. What works well for one application (on one machine) may not necessarily work well for another.

Please see SE FAQ #318 for more information.



   
company media information terms of use privacy policy contact us