Profile Image
Prateek Agrawal

Deployed spring boot jar on linux machine is not responding!

please help as we have deployed our springboot jar file on our linux machine. with allocated enough memory(8G) and after working fine for 2-3 hours it doesnt respond until we kill the existing process and start over it again.

 

for your information we have used Undertow as our embedded server.

 

 



Report URL - https://fastthread.io/my-thread-report.jsp?p=c2hhcmVkLzIwMjEvMDYvNC8tLXRkMDQ6MDYtLTAtMi0zMw==

  • springboot

  • embeddedserver

Please Sign In or to post your comment or answer

Profile Image

Ram Lakshmanan

Hello Prateek!

 

 Greetings.
 
 Your application is having a thread pool by name 'XNIO'. Threads in this thread pool are growing infinitely. 
 
 Above is the excerpt from the 'Thread Group' section of the report. You can notice that this thread pool has 1169 threads and more than 95% of those are in WAITING state, doing nothing.
 
 Below is the code stack trace of one of the XNIO threads. 95% of threads in this thread pool is having the exact same stacktrace:
 

XNIO-2 task-1000
THREAD ID :1216
STATE :WAITING

stackTrace:
at java.lang.Thread.run(Thread.java:748)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
at sun.misc.Unsafe.park(Native Method)


 You need to check why this thread pool is having these many threads? Are you setting max limit on this thread pool? WHy threads in this pool aren't reused? This can definetly cause unresponsiveness in your application.

Got something else on mind? Post Your Question

Not the answer you're looking for? Browse other questions tagged
  • springboot

  • embeddedserver