Re: Monitoring JRun Memory Usage
On 1/22/06, Steven Brownlee <[EMAIL PROTECTED]> wrote: > First reaction: OutOfMemory errors are *usually* the result of a low PermGen > setting on your JVM. > > Now, on to your question. If you're running unmodified CFMX, then you're > using the 1.4.2 JDK, so your options are limited. If you've upgraded to the > 1.5 JDK then you have many options for probing deeper into the JVM guts to > find the problem. With the 1.4, then all you have is the code the Gabriel > posted earlier. actually, IIRC, visualGC can see non Java 5 JVMs. http://java.sun.com/performance/jvmstat/visualgc.html I have set this up before. you need the Java 5 JVM installed, but you don't have to switch the JVM CF uses. DK > > -Original Message- > From: Rick Root [mailto:[EMAIL PROTECTED] > Sent: Friday, January 20, 2006 10:00 AM > To: CF-Talk > Subject: Monitoring JRun Memory Usage > > I'm running CFMX7.0.1 Enterprise on Windows Server 2003. > > I'd like to monitor - and log - JRun memory usage. coldfusion died on us > this morning for some reason - I can't find any indication of what caused > the error other than the time it occurred (9:16am) when an OutOfMemory error > occurred. > > I thought it would be useful to monitor memory usage every minute or so and > record it to a log... timestamp,memory > > Anyone got any ideas of the simplest way to do this? I do have Perl > installed on the server so that might be an option. > > Rick > > > > ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230221 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Monitoring JRun Memory Usage
How does it compare to SeeFusion? -Original Message- From: Nick de Voil [mailto:[EMAIL PROTECTED] Sent: 21 January 2006 10:33 To: CF-Talk Subject: Re: Monitoring JRun Memory Usage Russ > U might want to have a look at fusion reactor. Have you used this & does it do what it says? It looks fantastic. Nick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230214 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Monitoring JRun Memory Usage
First reaction: OutOfMemory errors are *usually* the result of a low PermGen setting on your JVM. Now, on to your question. If you're running unmodified CFMX, then you're using the 1.4.2 JDK, so your options are limited. If you've upgraded to the 1.5 JDK then you have many options for probing deeper into the JVM guts to find the problem. With the 1.4, then all you have is the code the Gabriel posted earlier. -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Friday, January 20, 2006 10:00 AM To: CF-Talk Subject: Monitoring JRun Memory Usage I'm running CFMX7.0.1 Enterprise on Windows Server 2003. I'd like to monitor - and log - JRun memory usage. coldfusion died on us this morning for some reason - I can't find any indication of what caused the error other than the time it occurred (9:16am) when an OutOfMemory error occurred. I thought it would be useful to monitor memory usage every minute or so and record it to a log... timestamp,memory Anyone got any ideas of the simplest way to do this? I do have Perl installed on the server so that might be an option. Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230208 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Monitoring JRun Memory Usage
Russ > U might want to have a look at fusion reactor. Have you used this & does it do what it says? It looks fantastic. Nick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230167 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Monitoring JRun Memory Usage
Is there any way to get processor usage on the web server. I guess what I really want is a visual performance monitor for more than one server at a time (kind of like MS SQL server monitor) to keep track of our production web servers. The problem is we run Red hat Enterprise 3. Our techs won't install any gui like xwindows, and I can't find any program that can simultaneously monitor cpu load on several Linux servers in some sort of constantly updating graph. For our SQL servers, we actually have a projector down in the programming area which constantly projects the SQL server monitor on the wall. Kind of cool-- just wish we could get that for the web servers. Any ideas? ~Brad -Original Message- From: gabriel l smallman [mailto:[EMAIL PROTECTED] Sent: Friday, January 20, 2006 3:37 PM To: CF-Talk Subject: RE: Monitoring JRun Memory Usage ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230152 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Monitoring JRun Memory Usage
Free Allocated Memory: #Round(freeMemory)#mb Total Memory Allocated: #Round(totalMemory)#mb Max Memory Available to JVM: #Round(maxMemory)#mb >From these numbers we can also determine the percent of free allocated memory available, and also the percent of avalaible memory allocated % of Free Allocated Memory: #percentFreeAllocated#% % of Available Memory Allocated: #percentAllocated#% -Original Message- From: Robert Everland III [mailto:[EMAIL PROTECTED] Sent: Friday, January 20, 2006 12:01 PM To: CF-Talk Subject: Re: Monitoring JRun Memory Usage I'm sure if you look through the java docs there will be something in there to get the memory size. Though size of memory doesn't necesarily mean bad server. Bob ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230142 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Monitoring JRun Memory Usage
Rick, We measure memory on our Windows 2000 server in two ways: 1) logging jrun metrics each minute though jrun.xml: Set metricsEnabled to "true" in jrun.xml and use the following metricsFormat to get a wealth of interesting statistics including total and free memory (works for CF7): Threads (total/busy/listen/idle): {totalTh}/{busyTh}/{listenTh}/{idleTh}; Sessions (active/inMem): {sessions}/{sessionsInMem}; Memory (total/free): {totalMemory}/{freeMemory}; Requests (handled/delay/dropped): {handledRq}/{delayRq}/{droppedRq}; Service (handledMS/delayMS): {handledMs}/{delayMs}; Bytes (in/out): {bytesIn}/{bytesOut} We then use a Windows scheduled task to run a small java parsing app that parses the coldfusion-event.log for high threshholds of memory, threads, or sessions. If threshholds are exceeded, we get an email with the details. 2) Windows performance montoring for CF-agnostic monitoring each minute: We use the Windows performance monitor to record JRUN, IIS, and server processor and memory usage to a CSV file each minute. This is useful for investigating a poorly running machine or retracing why the server crashed. Jon On 1/20/06, Rick Root <[EMAIL PROTECTED]> wrote: > I'm running CFMX7.0.1 Enterprise on Windows Server 2003. > > I'd like to monitor - and log - JRun memory usage. coldfusion died on > us this morning for some reason - I can't find any indication of what > caused the error other than the time it occurred (9:16am) when an > OutOfMemory error occurred. > > I thought it would be useful to monitor memory usage every minute or so > and record it to a log... timestamp,memory > > Anyone got any ideas of the simplest way to do this? I do have Perl > installed on the server so that might be an option. > > Rick > > ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230125 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Monitoring JRun Memory Usage
I'm sure if you look through the java docs there will be something in there to get the memory size. Though size of memory doesn't necesarily mean bad server. Bob ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230119 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: Monitoring JRun Memory Usage
U might want to have a look at fusion reactor. Russ -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: 20 January 2006 15:00 To: CF-Talk Subject: Monitoring JRun Memory Usage I'm running CFMX7.0.1 Enterprise on Windows Server 2003. I'd like to monitor - and log - JRun memory usage. coldfusion died on us this morning for some reason - I can't find any indication of what caused the error other than the time it occurred (9:16am) when an OutOfMemory error occurred. I thought it would be useful to monitor memory usage every minute or so and record it to a log... timestamp,memory Anyone got any ideas of the simplest way to do this? I do have Perl installed on the server so that might be an option. Rick ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230118 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54