aspose file tools*
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java VM memory size" Watch "Java VM memory size" New topic
Author

Java VM memory size

Daniel White
Greenhorn

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java VM memory size