Link to home
Start Free TrialLog in
Avatar of js_vaughan
js_vaughan

asked on

Coldfusion app is resource hog

Hello Experts,

I have been having a problem with a rather lengthy CF application I have written.  After it is done processing, the CPU remains at elevated levels for an additional 3-4 seconds after the page has completely loaded.  Is there any steps I can perform to reduce this?  I know good whitespace management can help on the clients end, but I’m not sure how to help on the server end of this problem.  All recommendations welcome.

Thanks!
Avatar of gnosticgnowledge
gnosticgnowledge

What version of Coldfusion are you running?
Avatar of js_vaughan

ASKER

MX, 6.0
Do you have the debugger on?
Not by default.  I have used it in the past to check for bottlenecks in my queries, but that is all.  This application takes about 2-3 seconds to load normally, but this excessive usage seems odd after the page has already finished loaded.
When you say loaded, do you mean compiled?  It was previously compiled?

I skipped over MX and went from 5.0 to 6.1.  However, I recommend turning ALL debugging features off.  Also, what does your application do(I am curious to see how others push the language, I am notorious for pushing the language).

Yes, i meant compiled.

The application is a CFC being used to parse data received from another website with no html, but elements similar to what wikipedia uses, and reconstruct the page with proper HTML.  Simple operation, but lengthy and requires many Find, Replace, and the Regular Expression equivalents - thus the large load.
let me see if I understand, this is a webservice?  If so what type of data is it spitting out?

The CFC is being run locally.
What you are seeing is probably the result of the underlying Java (which CF is based on) garbage collection scheme. Once an object goes out of scope, there is a delay before the Java garbage collection reclaims the memory. The elevated CPU level may be the result of extensive garbage collection going on.

Also, it is possible that the CF service is crashing and restarting as a result of something in the code. Look at your system event logs (Application events) and see if you see anything that may guide you to the problem.

M@
M@,

This seems highly plausible, the garbage collection scheme.  Is there anything that can be done to help in this matter?  Also, has any improvements been seen in this area in the newer versions of Coldfusion where an upgrade may be beneficial (and worth the money)?

-Jeff
ASKER CERTIFIED SOLUTION
Avatar of mmc98dl1
mmc98dl1
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial