Java thread dump: BLOCKED thread without “waiting to lock …”

前端 未结 4 1418
夕颜
夕颜 2020-12-05 10:58

I\'m having difficulties in understanding the thread dump I got from jstack for a Spring MVC web application running on Tomcat 6 (java 1.6.0_22, Linux).

I see blocki

4条回答
  •  余生分开走
    2020-12-05 11:19

    Apparently the situation where we observed these kinds of blocked threads were related to heavy memory consumption and therefore massive garbage collection.

    This question Java blocking issue: Why would JVM block threads in many different classes/methods? describes a similar situation, so I believe these threads were simply blocked by the garbage collector.

    (Anyway, after solving the memory issue this problem with the blocking threads was gone.)

提交回复
热议问题