Skip to main content
Dani Szwarc
Inspiring
October 11, 2016
Answered

Coldfusion 9 hanging

  • October 11, 2016
  • 1 reply
  • 1338 views

Hello community, I have a situation that started to happen about a month ago and I'm not sure how to tackle it.

Long time ago I have created a ticketing system while working as technical support for a kitchen commercial equipment company.

It was my very first system. I had no idea about server configuration. I just installed CF9 on a Windows XP machine with a mySQL database.

The system was running with the built-in CF server. There were only 5 users.

Today, 12 years later, the system is being accessed by more than 25 users, running reports.

Hardware has changed. The system is running on a i7 machine with 8GB of ram and Windows 7 Pro.

However, it's still running (for the moment, soon to be changed to Apache server) on the built-in CF server.

I would assume that if the problem is that it runs in the built-in server, it wouldn't fail from one day to another, but maybe I'm wrong.

However, I will install Apache as a first step.

Besides this, is there any "tuning up CF9 for production" guide for developers, not server administrators out there you guys can suggest?

Any ideas or suggestions?

Thank you!

    This topic has been closed for replies.
    Correct answer carl type3

    It can be a good idea to set minimum and maximum the same as you have: 

    : 1024

    Maximum JVM Heap Size (MB): 1024

    You have Windows with 8Gb and CF9 Java 6 is 64 bit so perhaps double those to 2048.

    >Permsize is within the jvm.config file, correct? It's indeed at -XX:MaxPermSize=192m.

    Yes. So if you make a copy of jmv.config by way of backup then edit that to say 512m .

    CF requires a restart to apply Heap and Permsize changes.

    That is a long way from tuning and one could do well to perform some Java logging to see how the Java heap and non heap is been consumed. There is also the age of Java 6 to consider. However I gather you just want to try something to stop the hangs.

    What else might help? Perhaps there is useful information in CF logs. CF\runtime\logs server or Jrun\logs multiserver, read coldfusion-event.log & coldfusion-out.log for error.

    HTH again, Carl

    1 reply

    Legend
    October 11, 2016

    Hi Dani,

    CF9 what update level is that? As I recall CF9 RTM could be updated to 9.0.1. There was a refresh installer 9.0.2 but that needed a new install.

    Is CF9 32 or 64 bit?

    What Java is CF9 using? If RTM installer that could be Java 6 if refreshed it still could be Java 6 but Java 7 was officially supported. Be mindful both 6 & 7 are Oracle EOL with Java 8 current.

    Perhaps some tuning to CF9 Java memory values? As I recall CF9 installs with maximum memory 512m and MaxPermsize 192m. You could do well to set a value for minimum (initial) memory (zero by CF9 default) and increase maximum as well as set larger Permsize. How much maximum depends on CF9 32 or 64 bit.

    HTH, Carl.

    Dani Szwarc
    Inspiring
    October 11, 2016

    Hello again Carl and thank you for your answer.

    The update level is 9,0,2,282541.

    It's Coldfusion 9 64 bit.

    Java Version is 1.6.0_29.

    I have changed these values to reflect the following:

    JVM values:

    : 1024

    Maximum JVM Heap Size (MB): 1024

    I have also changed the Maximum number of simultaneous Template requests to 20 (10 by default).

    I took this info from the settings page.

    The Permsize is within the jvm.config file, correct?

    It's indeed at -XX:MaxPermSize=192m.

    What value would you recommend?

    According to what I was reading, going too crazy with these values can decrease performance instead of improve it.

    Thank you for the time you are taking for this.

    carl type3Correct answer
    Legend
    October 11, 2016

    It can be a good idea to set minimum and maximum the same as you have: 

    : 1024

    Maximum JVM Heap Size (MB): 1024

    You have Windows with 8Gb and CF9 Java 6 is 64 bit so perhaps double those to 2048.

    >Permsize is within the jvm.config file, correct? It's indeed at -XX:MaxPermSize=192m.

    Yes. So if you make a copy of jmv.config by way of backup then edit that to say 512m .

    CF requires a restart to apply Heap and Permsize changes.

    That is a long way from tuning and one could do well to perform some Java logging to see how the Java heap and non heap is been consumed. There is also the age of Java 6 to consider. However I gather you just want to try something to stop the hangs.

    What else might help? Perhaps there is useful information in CF logs. CF\runtime\logs server or Jrun\logs multiserver, read coldfusion-event.log & coldfusion-out.log for error.

    HTH again, Carl