wood burning stoves 2.0*
The moose likes Java in General and the fly likes Java VM memory size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java VM memory size" Watch "Java VM memory size" New topic

Java VM memory size

Daniel White

Joined: Nov 22, 2011
Posts: 1

When using for example:

JAVA_OPTS="-server -Xms256m -Xmx2560m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+ScavengeBeforeFullGC XX:MaxHeapFreeRatio=81 -XX:MinHeapFreeRatio=80"

our heap space starts kinda small, however when more memory is used or when we bring it to the max and create an outofmemory exception (or without the exception just to the max) then when the used memory drops the size does not drop with it.

this is incredible cubersome for a VM farm with many java servers

is there any way or setting to make the size shrink back to the minimum (-Xms256m) after it is not used anymore?

having this ability would make my sysadmins happy, and my too, since i would get more mem per server from them.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Java VM memory size
Similar Threads
Java Private Bytes Increase
Tomcat Locks Up and will not serve up pages
how to increase heap size with eclipse?
Java OS VM Increase
JVM Size