tag:help-archives.hannonhill.com,2010-02-09:/discussions/installation/1206-java_opts-for-server-with-4-gb-of-ramCascade CMS: Discussion 2018-10-18T20:36:49Ztag:help-archives.hannonhill.com,2010-02-09:Comment/265322272013-04-23T16:43:24Z2013-04-23T16:43:24ZJAVA_OPTS for server with 4 GB of RAM<div><p>Hello!</p>
<p>We recently upgraded to 7.2.2 and things are running smoothly. I
just wanted to run our current cascade.sh options by you,
specifically JAVA_OPTS to make sure this looks like a sensible
setting:</p>
<p>export JAVA_OPTS="-Xmx2048M -Xms2048M -XX:MaxPermSize=192m
-Djava.awt.headless=true -Dfile.encoding=UTF-8
-Dnet.sf.ehcache.pool.sizeof.AgentSizeOf.bypass=true"</p>
<p>We had increased our -Xmx value and set the -Xms value based on
past discussions, but I remember not being clear if there was an
actually advantage bumping it up from 512 (or whatever the default
value is). I think we may have been running into some memory
leakage in the past and tried this to help an unrelated issue.</p>
<p>In any case, does it look okay to you guys?</p>
<p>Marc</p></div>mstevenstag:help-archives.hannonhill.com,2010-02-09:Comment/265322272013-04-23T16:52:37Z2013-04-23T16:52:37ZJAVA_OPTS for server with 4 GB of RAM<div><p>Hi Marc,</p>
<p>Those settings look just fine to me. As you mentioned, memory
modifications usually only need to be made if the application runs
out of memory on a consistent basis. An increase in available RAM
would also be justified if you happen to perform large publishes
during the day when users are working in the system.</p>
<p>My recommendation would be to keep an eye on the memory usage
when end users are working in the system performing normal
operations. Under the <strong>Administration (dashboard) ->
Information</strong> tab, you can view the memory usage in real
time. If you notice that the free memory is constantly very low
(under 300M or so) it may make sense to increase the maximum heap
size to something greater (perhaps 2.5G and then maybe 3G). I do
not recommend allocating more than about 3/4 of the total system
RAM to Cascade.</p>
<p>Let me know if you have any further questions.</p>
<p>Thanks!</p></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/265322272013-04-23T17:03:14Z2013-04-23T17:03:14ZJAVA_OPTS for server with 4 GB of RAM<div><p>Great. Thanks, Tim!</p></div>mstevens