tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl" <c...@etrak-plus.com>
Subject Re: Tomcat dies suddenly
Date Sun, 07 Feb 2010 11:15:17 GMT
Jonathon,

My system is a little different as I don't run Apache and I have another 
java process running but your script is certainly helpful.

Thanks,

Carl

----- Original Message ----- 
From: "Jonathan Mast" <jhmast.developer@gmail.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Saturday, February 06, 2010 4:38 PM
Subject: Re: Tomcat dies suddenly


> Carl,
>
> Here's what I have on my system, you'll obviously need to adjust for your
> setup, especially the httpd part as I don't believe you're using it:
> #db-style timestamp
> STAMP=`date +%F' '%T`;
>
> # count the number of httpd child processes
> AP_COUNT=`ps auxf | grep -c "httpd"`;
>
> # count the number of Tomcat threads.
> # NOTE: this assumes that the only program that is using java is Tomcat
> TC_COUNT=`ps auxHS | grep -c "bin/java"`;
>
> # pipe the output of free into grep seaching for the second line
> MEM_CHECK=`free -m | grep "buffers/"`;
>
> #use a tab delimiter to simplify importing results into a spreadsheet or 
> db
> TAB=`echo -e '\t'`;
>
> MESSAGE=$STAMP$TAB--$TAB$AP_COUNT$TAB$TC_COUNT$TAB$MEM_CHECK$TAB[httpd,tomcat,memory];
>
> echo $MESSAGE;
>
> hope you find it helpful
>
> On Fri, Feb 5, 2010 at 10:57 PM, chadwickbailey71 <
> chadwickbailey71@yahoo.com> wrote:
>
>>
>> There is no hardware restrictions in 64-bit mode.
>> use 64-bit Linux, this will fix the problem
>>
>>
>>
>> -----
>> Learn an  http://automatedsocialnetworking.com/ Automated Social 
>> Marketing
>> technique WITHOUT Spending More than 5 Minutes Per Month at your Computer
>> :working:
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Tomcat-dies-suddenly-tp27377457p27476911.html
>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message