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
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
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
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
> 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
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
>>> #!/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;
&
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"
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(&
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 = $
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
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
= 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) {
>>
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:
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
" .
$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
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
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
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
19 matches
Mail list logo