Coldfusion Memory Maxing
Good Afternoon Everyone,
I'm really hoping someone can help me out here, because we are all stumped.
Lets start with the basics, we are currently running Coldfusion 8.0.1.195765
Our Java version is 1.6.0.10
The server is a Linux box, 8gig ram, with a dual core xeon processor running at 3.00GHz each.
We are running 2 instances of Coldfusion on our server, but one instance is an SSL instance with low traffic. The main instances, set up with memory settings in the table below, has approximately 25 sites. Traffic for the sites is not huge (at the time of the information capture there
Heap Memory Usage - Committed1230 MB
Heap Memory Usage - Initial0.00 MB
Heap Memory Usage - Max1600
MB Heap Memory Usage - Used494 MB
JVM - Free Memory736 MB
JVM - Max Memory1600 MB
JVM - Total Memory1230 MB
JVM - Used Memory864 MB
Memory Pool - Code Cache - Used14.5 MB
Memory Pool - PS Eden Space - Used141 MB
Memory Pool - PS Old Gen - Used353 MB
Memory Pool - PS Perm Gen - Used114 MB
Memory Pool - PS Survivor Space - Used0.00 MB
Non-Heap Memory Usage - Committed133 MB
Non-Heap Memory Usage - Initial23.2 MB
Non-Heap Memory Usage - Max560 MB
Non-Heap Memory Usage - Used128 MB
I've also taken a screen shot of what our Coldfusion monitor is showing us for the main instance
http://www.miramar.ca/ScreenCap2.jpg
Currently at hte time of the screen shot, there were about 1900 active sessions. Now as a bit of a background on that, i've got a session manager that sets the session timeout for any search bots to about 5 seconds. even then, the max session timeframe for most sites on the server is about 1hour. As a further measure, every morning between 4 - 5AM, all sessions are deleted from the instance, so that the session count is brought back down to 0. Most of the sites also store most of there CFC's in application scope, to try to reduce the size of active sessions (unfortunately there are still a few legacy sites which use big session files).
Now are you can see from the screen shot, we see constantly a 300 - 500MB spike in memory (slowly rises and then drops i'm assuming when CF does memory recycling) unfortunately, the memory slowly climbs, until eventually the JRun instance spikes at 100% CPU, and max memory, and requires use to restart the instance (usually about every 3 - 4 days).
As an 2nd wierd part, our second instance of that server, which is an SSL layer, only has 2 active sites running, with very minimal traffic (any given time we see 5 - 6 visitors) and yet we see the same spikes in memory in the JRun for that instance.
if ANYONE can give us any ideas on what to try it would be greatly appreciated!!!
Thank you in advance,
Richard L
Programmer
Miramar Design Studio Inc.
