Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java VM memory size

 
Daniel White
Greenhorn
Posts: 1
Android Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic