Originally posted by Raj Joe:
What way can I set the memory for the JVM.(Say I am using some app server or a stand alone application)
You can set the memory for JVM using the command line arguments which starting
Java.
Example
will set the initial heapsize to 128 MB and the maximum heap size to 256 MB
If you are using some application server, you need to include these parameters in the start script (where the Java process is invoked).