Categories
java

Setting Java Heap Memory Args…

Any ideas where I can get some good info on the -Xms and -Xmx java args?

We are having all kinds of memory problems on our QA boxes and I’d like to tweak these values.

In our production environment we run with both set at 512. I’m fairly certain that was a recommendation from someone at Sun in their App Server dept. We were having all kinds of performance problems and that was one of the things they recommended.

The qa problem isn’t an app performance problem. It’s just a memory resource problem. I’d like to set -Xms64m and set -Xmx256m. My real question is how the memory gets allocated? Will my app suffer while the system is allocating more memory?

I guess I need to hit JavaRanch and maybe the Java forums on java.sun.com.

UPDATE:
A couple good places for JVM arg info:
http://java.sun.com/docs/hotspot/VMOptions.html
http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/java.html

3 replies on “Setting Java Heap Memory Args…”

Leave a Reply

Your email address will not be published. Required fields are marked *