tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dharmon <douglas.harmon+tom...@gmail.com>
Subject High CPU usage with Utf8Decoder in 8.5.23
Date Fri, 06 Apr 2018 21:10:21 GMT
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 server with tomcat8.5.23 has
cpu 0% idle per vmstat several hours after restart. Same server with similar
request load. Server has 4 CPUs. War file processes https REST web service
requests.  

I used jvisualvm to perform CPU profiling and the method with most self time
is org.apache.tomcat.util.buf.Utf8Decoder.decodeHasArray. jstack shows there
are 12 https-jsse-nio-8443-exec-### threads always in runnable state[1].
They have been in this state for several hours. It appears as if it's stuck
in infinite loop. Using the thread's nid and lsof, I believe the tcp/https
connection associated with these threads are no longer
connected/established.

Any known issues that could be causing this problem? I also tried using the
NIO2 connector with same issue.

I'm on a closed network, thus unable to show jvisualvm screen shots or
verbose stack traces.


[1] 
java.lang.Thread.State: RUNNABLE
at
org.apache.tomcat.util.buf.Utf8Decoder.decodeHasArray(Utf8Decoder.java:159)
at org.apache.tomcat.util.buf.Utf8Decoder.decodeLoop(Utf8Decoder.java:78)
at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:579)
at org.apache.tomcat.util.buf.B2CConverter.convert(B2CConverter.java:273)
at
org.apache.catalina.connector.InputBuffer.realReadChars(InputBuffer.java:426)
at
org.apache.catalina.connector.InputBuffer.checkCharBufferEof(InputBuffer.java:652)
at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:468)
at org.apache.catalina.connector.CoyoteReader.read(CoyoteReader.java:101)
<groovy classes>
<my application code with is attempting to read http request>






--
Sent from: http://tomcat.10.x6.nabble.com/Tomcat-User-f1968778.html

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


Mime
View raw message