1 person found this helpful
Since ColdFusion Standard has a limit to the number of simultaneous threads it can process, you may never generate enough **simultaneous** requests to push the JVM to utilze more CPU power. Is that 25% total CPU usage, ColdFusion usage, or per core usage? Is this a Windows box? If so, take a look in Task Manager at the Performance tab. Do you have a graph for each "CPU" or core (you should see 8 graphs). If not, go to the View menu and click on "CPU History" and set it to "One Graph per CPU". Then see how many are being used when ColdFusion is being hammered by lots of simultaneous requests. It actually may be working more efficiently than you think.
I performed stress testing with thousands of requests to check this behavior, saw 6 cores usage during stress test than normal usage of 4 cores.
Actually its too much efficient so that would use more cores only when it would need additional cores for those increased extreme traffic/load as normally pages are not too much cpu intensive.
If you have some CPU intensive pages then you can perform load testing to check this behavior...
So what you're saying is that ColdFusion will use all available cores to process incoming requests and that it is probably being very efficient about it and that the only way I can really tell is if I open the CPU graph and look at it?
Is there another potentially more definitive way to determine it? =)
One way of loading CF with use is to use Apache JMeter. refer:
Briefly. In Jmeter to Test Plan, add Threads (users) then Thread Group.
In Thread Group add Sampler HTTP Request.
Inside Thread Group increase Number of Threads from 1 to say 30.
Alter HTTP Request to include Server Name or IP of CF
The port eg 80 or 8500 depending built in CF webserver or IIS / Apache.
Path to CFM file your going to use.
Press Stop Go buttons.
HTH, Carl M.
Actually normal traffic/load of requests can be served by a few cores only, CF will use more/total available cores in following scenario:-
- When it will have huge traffic of normal CFM pages on the server, here huge traffic refers to several thousands requests at any particular time or in a very short duration.
- When it will have some very high load CFM page requests, which are due to CFM pages of extreme CPU/Memory/external resource intensive.
As i mentioned in earlier post, i performed stress testing with a few thousands CFM pages requests for a short duration, which resulting in 6 cores usage whereas it was using 2-4 cores when i was requesting for few CFM pages, you would be able to observe core usage changes in CPU usage history.
You would be able to perform stress testing by few available opensource load testing tools too.
Kindly let me know if you have any more query.