Friday 27 September 2013

How to set permanent memory settings for java?

How to set permanent memory settings for java?

I use jre-7u40-linux-x64 on SL6.4. Server with more than 30Gb of RAM.
User's memory limits sets to several gigabytes, but command java returns
error. "Not enough memory heap..."
Under root it's ok and -XshowSettings:vm shows that memory size is
automaticaly estimated.
Under user with options -Xmx256m it's ok also.
So is it possible to set the property(-Xmx256m) permanently?
I tried environtment variables (JAVA_OPTS,JAVA_OPTIONS) and jvm.cfg. With
no results.
Any advices and keywords? Thank you.

No comments:

Post a Comment