Re: high CPU usage on tomcat 7

2012-10-06 Thread Jeff MAURY
Aren't you're clients polling the server, this may cause the session not to expire even if the user is not using the UI ? Jeff On Sat, Oct 6, 2012 at 9:42 PM, Mark Thomas wrote: > > > Kirill Kireyev wrote: > > >Thanks for all your thorough advice Shanti! (and everyone else) > > > >Here are my

Re: high CPU usage on tomcat 7

2012-10-06 Thread Mark Thomas
Kirill Kireyev wrote: >Thanks for all your thorough advice Shanti! (and everyone else) > >Here are my findings so far: >0) My servlet sessions store a large number (~10s of M) or data in RAM. > >This is by design, to optimize performance. I can also have ~3K active >sessions at any one time. H

Re: high CPU usage on tomcat 7

2012-10-05 Thread Shanti Suresh
her useful tips. Thanks. -Shanti On Thu, Oct 4, 2012 at 2:08 PM, Jeff MAURY wrote: > Le 4 oct. 2012 14:38, "Caldarale, Charles R" > a > écrit : > > > > > From: Kirill Kireyev [mailto:kir...@instagrok.com] > > > Subject: Re

RE: high CPU usage on tomcat 7

2012-10-04 Thread Jeff MAURY
Le 4 oct. 2012 14:38, "Caldarale, Charles R" a écrit : > > > From: Kirill Kireyev [mailto:kir...@instagrok.com] > > Subject: Re: high CPU usage on tomcat 7 > > > Perhaps what I need is to have the JVM do garbage collections more > > frequently, so that they

RE: high CPU usage on tomcat 7

2012-10-04 Thread Caldarale, Charles R
> From: Kirill Kireyev [mailto:kir...@instagrok.com] > Subject: Re: high CPU usage on tomcat 7 > Perhaps what I need is to have the JVM do garbage collections more > frequently, so that they don't become a huge CPU-hogging ordeals > when they do happen. That's not how

Re: high CPU usage on tomcat 7

2012-10-03 Thread Kirill Kireyev
threaddump.txt') or die "Could not open file: $!"; print $file @output; close $file; open LOG, "top_user_webinf_threads.log" or die $!; open (STDOUT, "| tee -ai top_cpu_preview_threads.log"); print "PID\tCPU\tMem\tJStack Info\n"; while ($l = ) { chop

Re: high CPU usage on tomcat 7

2012-10-03 Thread Shanti Suresh
>>> #!/usr/bin/perl >>> # >>> >>> use Cwd; >>> >>> # Make a dated directory for capturing current diagnostics >>> my ($sec,$min,$hour,$mday,$mon,$year, >>> $wday,$yday,$isdst) = localtime time; >>> $year += 1900; &

Re: high CPU usage on tomcat 7

2012-10-03 Thread Shanti Suresh
y $process_pattern = "preview"; >> my $preview_pid = `/usr/bin/pgrep -f $process_pattern`; >> my $login = getpwuid($<) ; >> if (kill 0, $preview_pid){ >> #Possible to send a signal to the Preview Tomcat - either "webinf" >> or "root"

Re: high CPU usage on tomcat 7

2012-10-03 Thread Shanti Suresh
ng > @top_cmd = ("/usr/bin/top", "-H", "-n1", "-b"); > @sort_cmd = ("/bin/sort", "-r", "-n", "-k", "9,9"); > @sed_cmd = ("/bin/sed", "-n", "'8,$p'"); > system(&

Re: high CPU usage on tomcat 7

2012-10-02 Thread Kirill Kireyev
die "Could not open file: $!"; print $file @output; close $file; open LOG, "top_user_webinf_threads.log" or die $!; open (STDOUT, "| tee -ai top_cpu_preview_threads.log"); print "PID\tCPU\tMem\tJStack Info\n"; while ($l = ) { chop $l; $pid = $

Re: high CPU usage on tomcat 7

2012-09-30 Thread mailingl...@j-b-s.de
Well, if you have 4 cores and all cores are looping tomcat definitely will not respond any more... Von meinem iPad gesendet Am 30.09.2012 um 12:42 schrieb Jeff MAURY : > I don't think a cpu loop will make tomcat stopping responding to requests > I will make it very slow to respond > But a short

Re: high CPU usage on tomcat 7

2012-09-30 Thread Jeff MAURY
I don't think a cpu loop will make tomcat stopping responding to requests I will make it very slow to respond But a shortage on memory is hard to recover Jeff Le vendredi 28 septembre 2012, mailingl...@j-b-s.de a écrit : > Maybe an infinite loop? We observed something similar due to a bug in the

Re: high CPU usage on tomcat 7

2012-09-27 Thread mailingl...@j-b-s.de
= split(/\s+/, $l); >> $pct = $values[8]; >> $mem = $values[9]; >> # Debugger breakpoint: >> $DB::single = 1; >> >> # Find the Java thread that corresponds to the thread-id from the TOP output >> for my $j (@output) { >>

Re: high CPU usage on tomcat 7

2012-09-27 Thread Kirill Kireyev
pct . "\t" . $mem . "\t" . $j . "\n"; } } close (STDOUT); close LOG; --end of script -- Thanks. -Shanti On Thu, Sep 27, 2012 at 2:11 PM, Bill Miller < millebi.subscripti...@gmail.com> wrote:

Re: high CPU usage on tomcat 7

2012-09-27 Thread Shanti Suresh
my $j (@output) { > chop $j; > ($j =~ m/nid=$hex_pid/) && print $hex_pid . "\t" . $pct . "\t" . > $mem . "\t" . $j . "\n"; > } > } > > close (STDOUT); > > close LOG; > > > --end

Re: high CPU usage on tomcat 7

2012-09-27 Thread Shanti Suresh
" . $mem . "\t" . $j . "\n"; } } close (STDOUT); close LOG; --end of script -- Thanks. -Shanti On Thu, Sep 27, 2012 at 2:11 PM, Bill Miller < millebi.subscripti...@gmail.com> wrote: > I agree; w

RE: high CPU usage on tomcat 7

2012-09-27 Thread Bill Miller
rom: Jeff MAURY [mailto:jeffma...@gmail.com] Sent: September-27-2012 2:01 PM To: Tomcat Users List Subject: Re: high CPU usage on tomcat 7 This is probably due to out of memory, I have the same problem on my ubuntu ci machine Did you monitor your tomcat with jmx ? Jeff Le 27 sept. 2012 17:39, "Kiri

Re: high CPU usage on tomcat 7

2012-09-27 Thread Jeff MAURY
This is probably due to out of memory, I have the same problem on my ubuntu ci machine Did you monitor your tomcat with jmx ? Jeff Le 27 sept. 2012 17:39, "Kirill Kireyev" a écrit : > Hi! > > I'm periodically getting unduly high (100%) CPU usage by the tomcat > process on my server. This problem

Re: high CPU usage on tomcat 7

2012-09-27 Thread Mark Thomas
Kirill Kireyev wrote: >Hi! > >I'm periodically getting unduly high (100%) CPU usage by the tomcat >process on my server. This problems happens intermittently, several >times a week. When the server goes into this high CPU it does not come >back (and becomes unresponsive to new requests), and

high CPU usage on tomcat 7

2012-09-27 Thread Kirill Kireyev
Hi! I'm periodically getting unduly high (100%) CPU usage by the tomcat process on my server. This problems happens intermittently, several times a week. When the server goes into this high CPU it does not come back (and becomes unresponsive to new requests), and the only recourse is to resta