Skip to main content
Known Participant
January 3, 2013
Question

Help: CF10 (all hotfixes) on Win2K3 starts to consume up to 100% cpu (coldfusion.exe)

  • January 3, 2013
  • 2 replies
  • 4288 views

hi

We have a CF9 latest updates running on a Win2K3 server  under Apache 2.2.22 and JRun4 for years. Now, I wanted to upgrade to CF10.

I first updated to Apache 2.2.23 with ssl 1.0.1c

For reassurance, I just disabled all JRUN CF9 services as seen in the Task Manager.

Then I installed CF10. The installer mentioend different  NET Ports. I accepted them.

Install continued without a problem, CF10 was setup and I configured it. I then ran our main ap which also worked fine.

Then, after some few hours while I was checking the health of it, I figured that  COLDFUSION.EXE takes up all CPU time.

Server response  is still there but sluggish.I have not seen any reason why the cpu usage increases.

I have to kill coldfusion.exe to cut cpu load. however, a few minutes after that (about 10-20 minutes) coldfusion.exe again begins to climb up. it takes about 5-10 minutes to hit 100% ...

I have no idea how to deal with that (except going back to CF9)

On my developer CF10 (same config) I have not seen that behavior. Howewer, this server is not exposed to the net, the productive one is ... there might be some deep links pointing somewhere ... however, our server is not a busy server, so it should not face such a cpu load .. as said it ran under CF9 for years without such problems.

any hints how to detect the cause of this? Can I use any CF10 tools to figure out this problem?

any other clues to that?

it's urging ... as usual ...

Thank

Martin

This topic has been closed for replies.

2 replies

jbird5k
Inspiring
January 16, 2013

Hi Martin,

we just migrated last week and ran into a similar issue, having to restart CF every couple of hours.  We thought we had a memory leak

but.....  it turns out that we were running server monitor and it was sucking all the resources.  Go into cf admin >> server monitor>>monitor settings  and if they are enabled, uncheck them.

We did this and it solved our problems.

hope this helps.

JB

tinu8805Author
Known Participant
January 16, 2013

Hi jn

did not help ... cause the standard server does not have server monitoring enabled.

HOWEVER ... the latest CF 10 update 7 probably solved my issues. I noted that all scheduled tasks are gone. maybe there was something buried somewhere that caused my pain ... after installing the scheduled task again ...  the tasks has been running now for more than one start ... (it's an indefinite job, running all 5 minutes) and I have not seen any CPU 100% flatline again so far .... well, let's hope.

Thanks

Tinu

tinu8805Author
Known Participant
January 17, 2013

Unfortunately, CF10 Updater 7 is no remedy.

When I got into office, I watch and see the CPU again hitting the ceiling ... :-((((

Legend
January 7, 2013

Hi Martin. Any errors or warnings in log files CF10\cfusion\logs\ coldfusion-error.log coldfusion-out.log ?

How about enable CF10 Metrics logging, CF10admin > Debugging & Logging > Debug Output Settings > then check metrics.log after CF restart to enable?

I know post CF10 update 5 WSCONFIG had some webserver connector updates in case of Windows and IIS. I guess with Apache you would be using a connector / extension / mod_jk but I have not been following CF10 update matters that relate to Apache webserver. Could be worth knowing if you need to apply a CF10 WSCONFIG webserver update with Apache in use?

HTH, Carl.

tinu8805Author
Known Participant
January 15, 2013

hi carl

Thanks for your hint - it did not help. Cause CF10 update page says to reapply the wsconfig, it tried that as well, to no avail. I switched back to CF9 ..

Strange is another thing: I have a code for a cfdiv with works without any problem in CF9 but stalls CF10 ... i.e. the ajax call then never returns until I abort in the browser and then I see bad gateway error ...

This call also stalls my development server (as I said the other day, that server does not see the 100% cpu load).

If I disable the call CF10 runs the page.

This simple call stalls:

<cfdiv id="scal"

          style="#calpos#"

          bind="url:/ajutils.cfm?op=getShowCalendar&trid=#url.trid#&year=2000&month=#month(jetzt)#"

          bindonload=true

          />

When I switched back to CF9, this code again worked flawlessly.

BTW: cf10\coldfusion-error.log (of a restarted service) lists this first ... something to be worried?

---

Jan 15, 2013 4:45:10 AM org.apache.catalina.core.AprLifecycleListener init

INFO: The APR based Apache Tomcat Native library which allows optimal performance

in production environments was not found on the java.library.path:

x:\\ColdFusion10\\cfusion\lib;x:\\ColdFusion10\\cfusion\jintegra\bin;x:\\ColdFusion10\\cfus

ion\jintegra\bin\international;x:\\ColdFusion10\\cfusion\lib\oosdk\classes\win

---

My problems could relate to some mail problems ... we have a scheduled mail poll process ...

---

"Error","scheduler-1","01/04/13","01:10:57",,"javax.mail.MessagingException: Exception reading response;   nested exception is:      java.net.SocketTimeoutException: Read timed out"

"Error","scheduler-1","01/04/13","01:24:59",,"javax.mail.MessagingException: Exception reading response;   nested exception is:      java.net.SocketTimeoutException: Read timed out"

---

This could cause the high CPU load ... I just observe the machine right now at 4:50am .. so no load but the CPU load goes up .. cause the mail poller of course does run.

Martin

Legend
January 22, 2013

Re -  cf10\coldfusion-error.log (of a restarted service) lists this first ... something to be worried?

Apache Tomcat Native Library - What is it? Some paste from documents say-
The Apache Tomcat Native Library provides portable API for features not found in contemporary JDK's. It uses Apache Portable Runtime as operating system abstraction layer and OpenSSL for SSL networking and allows optimal performance in production environments.

Download tomcat-native-1.1.23-win32-bin

note \bin contains tcnative-1.dll ie 32 bit and bin\x64 has the 64 bit tcnative-1.dll

Copy correct bit dll to CF10\cfusion\lib

Restart CF10 to apply

CF10 coldfusion-error.log will now report:

org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-8012"]
org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.23
etc

You may well not be using "Apache Tomcat Native Library" however if you like to be rid of the INFO optimal performance message – that’s how.

Once more, Carl.