Re: High CPU Usage with Tomcat 9 in SSL

2019-07-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Sumit, On 7/15/19 08:05, Sumit Bhardwaj wrote: > On 7/12/19, Christopher Schultz wrote: >> Are you using JSSE or OpenSSL for crypto? > > JSSE. will there be any difference with openssl? Yes. Especially with some cipher suites, JSSE will use softwa

Re: High CPU Usage with Tomcat 9 in SSL

2019-07-15 Thread Sumit Bhardwaj
Hi Chris, Thanks for your response,please find my response inline below Are you using JSSE or OpenSSL for crypto? JSSE. will there be any difference with openssl? How are you measuring CPU usage? using jconsole/jvisualvm Have you tried to correlate that CPU usage with user-request load? I am no

Re: High CPU Usage with Tomcat 9 in SSL

2019-07-12 Thread Sumit Bhardwaj
Are you using JSSE or OpenSSL for crypto? JSSE. will there be any difference with openssl? How are you measuring CPU usage? using jconsole/jvisualvm Have you tried to correlate that CPU usage with user-request load? I am not sure if I understood the question, but I ran similar load for over a week

Re: High CPU Usage with Tomcat 9 in SSL

2019-07-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Sumit, On 7/12/19 08:30, Sumit Bhardwaj wrote: > Hi, > > We are using tomcat 9.0.14,and we are running some performance > tests for our application. > > What we have observed is that 1- CPU usage of tomcat is less than > 10%, when using tomcat wit

Re: High CPU usage with Utf8Decoder in 8.5.23

2018-04-09 Thread Christopher Schultz
Mark, On 4/9/18 11:11 AM, Mark Thomas wrote: > On 09/04/18 14:20, Christopher Schultz wrote: >> Mark, >> >> On 4/8/18 6:39 PM, Mark Thomas wrote: >>> On 08/04/2018 21:29, Christopher Schultz wrote: >>> >>> >>> Does Tomcat do its own UTF-8 decoding because the JVM doesn't have a facility

Re: High CPU usage with Utf8Decoder in 8.5.23

2018-04-09 Thread Mark Thomas
On 09/04/18 14:20, Christopher Schultz wrote: > Mark, > > On 4/8/18 6:39 PM, Mark Thomas wrote: >> On 08/04/2018 21:29, Christopher Schultz wrote: >> >> >> >>> Does Tomcat do its own UTF-8 decoding because the JVM doesn't have a >>> facility to convert from ByteBuffer to CharBuffer? That seems li

Re: High CPU usage with Utf8Decoder in 8.5.23

2018-04-09 Thread Christopher Schultz
Mark, On 4/8/18 6:39 PM, Mark Thomas wrote: > On 08/04/2018 21:29, Christopher Schultz wrote: > > > >> Does Tomcat do its own UTF-8 decoding because the JVM doesn't have a >> facility to convert from ByteBuffer to CharBuffer? That seems like >> something the JVM really should be providing... >

Re: High CPU usage with Utf8Decoder in 8.5.23

2018-04-08 Thread Mark Thomas
On 08/04/2018 21:29, Christopher Schultz wrote: Does Tomcat do its own UTF-8 decoding because the JVM doesn't have a facility to convert from ByteBuffer to CharBuffer? That seems like something the JVM really should be providing... No. It does it because the JRE UTF-8 decoder is buggy. Some

Re: High CPU usage with Utf8Decoder in 8.5.23

2018-04-08 Thread Christopher Schultz
Mark, On 4/7/18 6:57 AM, Mark Thomas wrote: > On 06/04/18 22:10, dharmon wrote: >> environment: >> tomcat 8.5.23 >> CentOS 6.9 >> jdk8u162 b12 >> >> I recently upgraded from tomcat 7.0.61/jdk8u92 to tomcat 8.5.23/jdk8u162. >> Our application war file on tomcat7 has cpu >75% idle per vmstat several

Re: High CPU usage with Utf8Decoder in 8.5.23

2018-04-07 Thread Mark Thomas
On 06/04/18 22:10, dharmon wrote: > environment: > tomcat 8.5.23 > CentOS 6.9 > jdk8u162 b12 > > I recently upgraded from tomcat 7.0.61/jdk8u92 to tomcat 8.5.23/jdk8u162. > Our application war file on tomcat7 has cpu >75% idle per vmstat several > hours after tomcat start. Same war file on same se

Re: High CPU Usage on restarting the Tomcat 7.0.39

2014-05-01 Thread srinivas rapolu
Hi, any clue can draw from the screenshot is really appreciated. http://www.imageurlhost.com/images/souyh4ks07ber4kwu9u.png I can get the thread dump if it is needed to figure out the root cause. Thanks for the help! On Wed, Apr 30, 2014 at 4:24 PM, srinivas rapolu wrote: > #1. Sorry, was not a

Re: High CPU Usage on restarting the Tomcat 7.0.39

2014-04-30 Thread srinivas rapolu
#1. Sorry, was not aware of attachments. Uploaded screenshot at: http://www.imageurlhost.com/images/souyh4ks07ber4kwu9u.png #2. Connector details from server.xml On Wed, Apr 30, 2014 at 3:50 PM, Konstantin Kolinko wrote: > 2014-04-30 23:41 GMT+04:00 srinivas rapolu : > > We are using Tomcat 7.

Re: High CPU Usage on restarting the Tomcat 7.0.39

2014-04-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Srinivas, On 4/30/14, 3:41 PM, srinivas rapolu wrote: > We are using Tomcat 7.0.39 ((java version "1.7.0_25"), and > Sometimes CPU goes high when we restart the TOMCAT. > > We have to stop the Tomcat in-order to release the release > resources and

Re: High CPU Usage on restarting the Tomcat 7.0.39

2014-04-30 Thread Konstantin Kolinko
2014-04-30 23:41 GMT+04:00 srinivas rapolu : > We are using Tomcat 7.0.39 ((java version "1.7.0_25"), and Sometimes CPU > goes high when we restart the TOMCAT. > > We have to stop the Tomcat in-order to release the release resources and > again restarting the Tomcat fixes the problem. > > On profil

RE: high CPU usage with NIO and 1000+ websockets on Tomcat 7.0.49?

2013-12-14 Thread Bob DeRemer
> -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Saturday, December 14, 2013 9:06 AM > To: Tomcat Users List > Subject: Re: high CPU usage with NIO and 1000+ websockets on Tomcat 7.0.49? > > On 13/12/2013 13:12, Bob DeRemer wrote: >

Re: high CPU usage with NIO and 1000+ websockets on Tomcat 7.0.49?

2013-12-14 Thread Mark Thomas
On 13/12/2013 13:12, Bob DeRemer wrote: > We have been profiling this in YourKit and as we increase the number of > websockets, naturally we see the CPU utilization increase. The concern > is that we’re seeing this at what seems to be a fairly low number of > websockets. The YourKit profiling sho

Re: high CPU usage with NIO and 1000+ websockets on Tomcat 7.0.49?

2013-12-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Bob, On 12/13/13, 8:12 AM, Bob DeRemer wrote: > Hi Mark (et al), While Mark is one of the most likely to respond, please address your questions only to the community at least at first ;) > We’re seeing really high CPU utilization with just a 1

Re: high CPU usage with NIO and 1000+ websockets on Tomcat 7.0.49?

2013-12-13 Thread David kerber
On 12/13/2013 8:12 AM, Bob DeRemer wrote: Hi Mark (et al), We’re seeing really high CPU utilization with just a 1000 active websockets that are sending/receiving 100 byte binary messages. The profiling snippet below was with 1000 connections. If we start to increase the number of connections,

Re: High CPU usage - tomcat 7 and need solutions

2013-08-31 Thread Mark Eggers
On 8/31/2013 7:05 PM, Karuppu Samy wrote: I need suggestion to limit the memory /CPU limit for tomcat. Is there any variable to setup to limit this? On Sun, Sep 1, 2013 at 2:31 AM, André Warnier wrote: Karuppu Samy wrote: Hi Team, I find tomcat is using high CPU usage in my server. Is the

RE: High CPU usage - tomcat 7 and need solutions

2013-08-31 Thread Caldarale, Charles R
> From: Karuppu Samy [mailto:cskaru...@gmail.com] > Subject: Re: High CPU usage - tomcat 7 and need solutions > I need suggestion to limit the memory /CPU limit for tomcat. Is there any > variable to setup to limit this? 1. Don't top post. 2. Your question pertains more

Re: High CPU usage - tomcat 7 and need solutions

2013-08-31 Thread Karuppu Samy
I need suggestion to limit the memory /CPU limit for tomcat. Is there any variable to setup to limit this? On Sun, Sep 1, 2013 at 2:31 AM, André Warnier wrote: > Karuppu Samy wrote: > >> Hi Team, >> >> I find tomcat is using high CPU usage in my server. Is there any way to >> limit the memoryCP

Re: High CPU usage - tomcat 7 and need solutions

2013-08-31 Thread André Warnier
Karuppu Samy wrote: Hi Team, I find tomcat is using high CPU usage in my server. Is there any way to limit the memoryCPU resource limit for tomcat 7? Any guide?? Remove your applications ? - To unsubscribe, e-mail: users-u

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

Re: High CPU usage in Tomcat 7

2012-06-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, On 6/20/12 12:27 PM, James Lampert wrote: > We just had a report of extremely high CPU usage from the Tomcat > job on one of our customer installations. A WRKACTJOB screen shot > from before we forcibly shut Tomcat down and restarted it shows:

Re: high CPU usage

2009-12-09 Thread Mark Thomas
Gurdeep Kaur (gurdeep) wrote: > I am going to add some more information to the question I asked > yesterday. > > I am running a TLS test case to do a TLS handshake on port 8443 of our > server that is running Tomcat 5.5. > > I noticed in the log file that there are two threads currently running >

RE: high cpu usage by thread

2009-07-09 Thread Caldarale, Charles R
> From: news [mailto:n...@ger.gmane.org] On Behalf Of R.P. Aditya > Subject: high cpu usage by thread > > doing a thread dump, I see: > "TP-Processor30" daemon prio=1 tid=0x2aac610b5060 nid=0x27e7 > runnable [0x4a31..0x4a324c10] > at > com.sun.faces.context.MyHttpSe

RE: high CPU usage

2007-03-23 Thread Gurdeep Kaur \(gurdeep\)
Subject: Re: high CPU usage Gurdeep Kaur (gurdeep) wrote: > So why would tomcat create two threads for one tls session? Because Tomcat receives two requests. You might want to start looking more closely at what is going on at the network level. M

Re: high CPU usage

2007-03-23 Thread Mark Thomas
Gurdeep Kaur (gurdeep) wrote: > So why would tomcat create two threads for one tls session? Because Tomcat receives two requests. You might want to start looking more closely at what is going on at the network level. Mark - To

Re: high CPU usage

2007-03-23 Thread Martin Gainty
e destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: "Gurdeep Kaur (gurdeep)" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, March 22, 2

RE: high CPU usage

2007-03-22 Thread Gurdeep Kaur \(gurdeep\)
So why would tomcat create two threads for one tls session? Gurdeep -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Thursday, March 22, 2007 4:31 PM To: Tomcat Users List Subject: Re: high CPU usage Gurdeep Kaur (gurdeep) wrote: > Mark, > > Just thinking

Re: high CPU usage

2007-03-22 Thread Mark Thomas
Gurdeep Kaur (gurdeep) wrote: > Mark, > > Just thinking some more, as to who actually invokes the threads? Is it > Tomcat? They look like Tomcat created threads to me. Mark - To start a new topic, e-mail: users@tomcat.apache.o

RE: high CPU usage

2007-03-22 Thread Gurdeep Kaur \(gurdeep\)
Mark, Just thinking some more, as to who actually invokes the threads? Is it Tomcat? Thanks Gurdeep -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 21, 2007 7:07 PM To: Tomcat Users List Subject: Re: high CPU usage Gurdeep Kaur (gurdeep) wrote

Re: high CPU usage

2007-03-21 Thread Mark Thomas
Gurdeep Kaur (gurdeep) wrote: > Any pointers, inputs will be greatly appreciated. The handshake is handled by JSSE / the JDK. This looks like a JSSE / JDK issue rather than a Tomcat one. Mark - To start a new topic, e-mail: user

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread Yann Rouillard
Using Dtrace , I tried to gather some more information. Here is the output of a Dtrace script called dapptrace. It confirms the fact that the tomcat thread spends its cpu time in the Poll functions however I still don't understand why listening to events on port can't use so much cpu. Any hint

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread Yann Rouillard
Yes from what I understand a native call is used when you use the apache portable runtime with tomcat. Yann David Delbecq a écrit : Nice, in a native call :/ "ajp-8009-Poller-0" daemon prio=5 tid=0x087670e0 nid=0x10 runnable [0xd4ccf000..0xd4ccfd98] at org.apache.tomcat.jni.Poll.poll(Nati

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread David Delbecq
Nice, in a native call :/ "ajp-8009-Poller-0" daemon prio=5 tid=0x087670e0 nid=0x10 runnable [0xd4ccf000..0xd4ccfd98] at org.apache.tomcat.jni.Poll.poll(Native Method) at org.apache.tomcat.util.net.AprEndpoint$Poller.run(AprEndpoint.java:1153) at java.lang.Thread.run(Thread.java:534)

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread Yann Rouillard
Here is the jvm thread dump: Full thread dump Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode): "ajp-8009-3" daemon prio=5 tid=0x083ee530 nid=0x12 in Object.wait() [0xd4c4b000..0xd4c4bd98] at java.lang.Object.wait(Native Method) - waiting on <0xd5e5c1f8> (a org.apache.tomc

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread David Delbecq
Could you send us a few jvm thread dumps while the CPU usage, i bet this an be more helpful than an os dump. To generate a Thread dump, simply send the signal 3 to the java process (assuming you use a SUN jvm or derivative) Yann Rouillard a écrit : > Did you tried it with Tomcat 5.5.17? >>> >

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread Yann Rouillard
Did you tried it with Tomcat 5.5.17? No but I can try. Some modifications have been on this area ? Yes, a lots of them, see the: http://tomcat.apache.org/tomcat-5.5-doc/changelog.html The way how Poller is handled has changed, so just try the 5.5.17. Ok, I have tried with 5.5.17 and the

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread Mladen Turk
Yann Rouillard wrote: Mladen Turk a écrit : Yann Rouillard wrote: Hi, I am noticing high cpu usage with tomcat 5.5.12 using APR 1.2.7 that doesn't appear with tomcat without apr. Which version of native you use? I use version 1.1.3 Did you tried it with Tomcat 5.5.17? No but I can tr

Re: High CPU Usage with Apache Portable Runtime

2006-09-21 Thread Yann Rouillard
Mladen Turk a écrit : Yann Rouillard wrote: Hi, I am noticing high cpu usage with tomcat 5.5.12 using APR 1.2.7 that doesn't appear with tomcat without apr. Which version of native you use? I use version 1.1.3 Did you tried it with Tomcat 5.5.17? No but I can try. Some modifications h

Re: High CPU Usage with Apache Portable Runtime

2006-09-20 Thread Mladen Turk
Yann Rouillard wrote: Hi, I am noticing high cpu usage with tomcat 5.5.12 using APR 1.2.7 that doesn't appear with tomcat without apr. Which version of native you use? Did you tried it with Tomcat 5.5.17? -- Mladen. - To st