Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Java Heap Size Recommendation Request

Explorer ,
May 05, 2014 May 05, 2014

Looking for suggestions on tuning. Running CF10 update 13 on a 64 bit server with 8 GB RAM, running into memory issues (I suspect). JVM is only set to 256 / 512 right now, so I'm going to increase it. CF and a handful of sites is pretty much all this server does.

Suggestions on what I should set this to now? We seem to be under 50% memory usage at the present time (right now 3.44GB), and CPU is 0-2%.

572
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , May 05, 2014 May 05, 2014

Hi,

Perhaps set JVM minimum and maximum to 2048 / 4096. While your altering JVM apply a minimum setting for Permanent Generation and set maximum for permanent larger EG:
-XX:PermSize=284m -XX:MaxPermSize=512m

You could do well to perform some CF Java monitoring to know what values suit best and if indeed the garbage collections run by -XX:+UseParallelGC are working optimally. Java logging can be run by doing some traditional Java logging to a file then read file or pass file thru a tool. You can al

...
Translate
Guide ,
May 05, 2014 May 05, 2014

Hi,

Perhaps set JVM minimum and maximum to 2048 / 4096. While your altering JVM apply a minimum setting for Permanent Generation and set maximum for permanent larger EG:
-XX:PermSize=284m -XX:MaxPermSize=512m

You could do well to perform some CF Java monitoring to know what values suit best and if indeed the garbage collections run by -XX:+UseParallelGC are working optimally. Java logging can be run by doing some traditional Java logging to a file then read file or pass file thru a tool. You can also use Jconsole, Jvisualvm or even the new Mission Control (in 1.7.0_40 release onwards) graphical tools.

HTH, Carl.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 05, 2014 May 05, 2014
LATEST

Carl,

Thank you! I appreciate your answer very much, with reasoning and a holistic view.

I will look into Java monitoring. Have not done that yet, but always looking to upgrade my skills.

I can set JVM in CF Admin and have done so. I know there are some things you can do to activate the jvm config file but I haven't had the need to mess with that yet. Thought I changed it once, but it was reset when I restarted CF so swing and a miss.

Systems running better already though with that huge headroom in memory.

Thanks again!

RLS

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources