Skip to main content
February 22, 2013
Question

Performance Tuning

  • February 22, 2013
  • 2 replies
  • 5496 views

I have 1 CF 10 server 64 bit running on IIS 7.5 on a Win 2008 R2 VM w/ 4 Gig Ram on 4Ghz of processing. The box hosts 5 websites with not too much traffic.  I've been experiencing Service unavailable errors about once per day and only on certain websites. I restart the CF App Service and all is well again.  All 4 of the websites have the same code with just a few variables difference to get different data.

I've made some adjustments in the server. For example I set min and max JVM Heap size to 2048.

Any ideas what I can do to get things running with more stability?

This topic has been closed for replies.

2 replies

Legend
February 22, 2013

Setting minimum values can be just as important as maximum. Suggest set min JVM heap to half max so that would be 1024m. You can do well on 64 bit to increase MaxPermSize from 192m to 356m and while your dealing with permanent generation set an initial or minimum setting PermSize=192m. Well that is a start not exactly tuning since you would need to do some JVM logging to know for sure what values suit best.

Check logs for errors or warnings CF10\cfusion\log CF-EVENT and CF-OUT log. Indeed the Tomcat connector may not need looking at so check CF10\config\wsconfig\1\ISAPI log for errors.

Is CF10 patched to update7 and had WSCONFIG tool run to remove and add IIS connector?

HTH, Carl.

February 22, 2013

Thanks Carl,

My JVM Heap sizes are now set to Min = 1024 and Max = 2048

And my JVM args are now...

-server -XX:MaxPermSize=356m -XX:+UseParallelGC -Xbatch -Dcoldfusion.home={application.home} -Dcoldfusion.rootDir={application.home} -Dcoldfusion.libPath={application.home}/lib -Dorg.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER=true -Dcoldfusion.jsafe.defaultalgo=FIPS186Random

I'm not sure where to set the minimum PermSize=192m as you mentioned?

I'll wait for your response on that before I do a restart.

I am patched to Version 10,0,7,283649 so I'm good there. I did run through the article that Anit Kumar has mentioned and to say the least, things did not go smoothly.

Also, I have not much experience looking at the log files for much other than some general app debugging but I'll go have a look.

Jack

Anit_Kumar
Inspiring
February 22, 2013

The -XX:MaxPermSize is the PermSize.

Anit_Kumar
Inspiring
February 22, 2013

You may have to tune your CF connector appropriately to make your website(s) works flawlessly. You can refer to http://blogs.coldfusion.com/post.cfm/tuning-coldfusion-10-iis-connector-configuration