Profile Image
Gaurav Tanwar
  • thread count increasing

Please Sign In or to post your comment or answer

Profile Image

Ankita

Hi Gaurav,

 

Here are my observations on your thread dump report:

 

1) Total 169 threads are present in "pool" thread group. From stacktrace I can see more than 90% of threads in the pool thread group aren't doing any work. Consider resizing thread pool.

 

 

2) 1 thread's stack length is greater 400 lines. Large size stacks may cause StackOverflowError. Here is the few lines of stacktrace.

 

at java.net.SocketInputStream.socketRead0(java.base@11.0.16/Native Method)
at java.net.SocketInputStream.socketRead(java.base@11.0.16/SocketInputStream.java:115)
at java.net.SocketInputStream.read(java.base@11.0.16/SocketInputStream.java:168)
at java.net.SocketInputStream.read(java.base@11.0.16/SocketInputStream.java:140)
at okio.Okio$2.read(Okio.java:139)
at okio.AsyncTimeout$2.read(AsyncTimeout.java:237)
at okio.RealBufferedSource.indexOf(RealBufferedSource.java:345)
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:217)

 

Got something else on mind? Post Your Question

Not the answer you're looking for? Browse other questions tagged
  • thread count increasing