tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: High cpu on Tomcat 8
Date Mon, 04 May 2015 14:13:06 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Greg,

On 5/4/15 7:13 AM, Greg Huber wrote:
> Thanks, I am going to up the memory.  The profiler I used only
> highlighted the ajp-apr-8009-Poller as active.  Terminating the
> thread stopped the high cpu.

... and probably killed your ability to process requests, unless you
configured more than one Poller thread.

Have you set a pollerThreadCount? If so, what is it? If not, you might
want to consider setting it to "2", but probably not any higher, and
see if it improves things.

The Poller thread is responsible for handling all blocking-style I/O
both into and out of your servlets. When your site gets busy, this
thread will be doing a lot of work.

When the CPU usage goes high, does the server actually slow down?

- -chris

> On 4 May 2015 at 10:18, Mark Thomas <markt@apache.org> wrote:
> 
>> On 03/05/2015 11:25, Greg Huber wrote:
>>> Hello,
>>> 
>>> After an upgrade to Tomcat 8.0.21 and (Oracle jdk1.8.0_40) I
>>> seem to be having an erratic high cpu issue, often  when the
>>> server gets busy.  The application was OK tomcat 7 and has not
>>> been modified since the upgrade.
>> 
>> Use ps to get the thread ID of the thread that is using the CPU. 
>> Take a thread dump and find what that thread is doing (you'll
>> need to convert the thread ID  from decimal to hex). It is the
>> stack trace of that thread that will be interesting.
>> 
>> Mark
>> 
>> 
>> ---------------------------------------------------------------------
>>
>> 
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>> 
>> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVR35yAAoJEBzwKT+lPKRYamAQAIYQMdBZLRueevXz71rqJxpA
Ij1lEpK4FlXrY1hukAKEX0k/yyiLc2UkXeI0DZtstKNiDDyEo+KmsykvjlTjUmAt
mvyhicQ3zhvlNaLIFYBwUIHNqzx+dBmgF/w75pkxKrDOj7MMx7gIFxPGXlTj2+XH
1tt8uWgvHhElKnROjG+jU2bG3/wqZyXfSnT+SsfNhQQE6r0W3MRqJh/0X808GgWO
bSJdfk2Dz03/OksrEzK9cVV5/f4zB2Ggce/Uw+4qtZ0jj0jhRd9JXdaJlRFpPfbM
EdjDeOVmsJz6oqP+IvSEvtJjQY9RR6iJB8SkyWph64stxRQeeOBFzUsBIDWLTK+d
kB4/9HgGpnld8LaDEr3hrY2uXmtjEVwgkVzs1TKVpFipaACePuHG/3aa81/j0mMC
wP1iLSzt3SrjI2Z0dXlOszcB5DlQIiInqFG3PpTD8Wfr63hjX7m43zEdepamTX7d
eIjyu+TGX1Z+8yZabQzt+IPqGlk2uozafFiJOyxvwAbfBFqmF+rTKxOnYLMS67U7
nFx50rXx/Xq1TCCsWbX4L1s0Y7Gh1G3DAtVTCLFKI+O3oW5aSUTed0trwUcE+oEP
VXYkRvSqDTcxJp+fXszz/yJGJxo3Yy46wfgX4WgGf9FZBdJ8XNchzOTPZp/qlqNa
WrehBe11KsKgy21Hc+Lz
=Hooe
-----END PGP SIGNATURE-----

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


Mime
View raw message