简体   繁体   English

如何在Java线程中解释RUNNABLE但没有堆栈跟踪?

[英]How do I interpret at Java thread that is RUNNABLE but with no stack trace?

I am debugging a legacy Java application, and the thread dump (obtained via jstack ) contains some entries like the following: 我正在调试遗留Java应用程序,并且线程转储(通过jstack获得)包含一些如下所示的条目:

"Thread-8" prio=10 tid=0x0000000055f2c800 nid=0x49bf runnable [0x0000000000000000]
    java.lang.Thread.State: RUNNABLE

That's it. 而已。 No stack trace. 没有堆栈跟踪。

What's going on here? 这里发生了什么? How do I locate the Java code executing in this thread? 如何找到在此线程中执行的Java代码?

The thread isn't (or wasn't) executing Java code. 线程不是(或没有)执行Java代码。 It's handling tasks not implemented in Java that weren't directly requested by any Java caller. 它处理的是未在Java中实现的任何Java调用者没有直接请求的任务。 For example, if the corresponding OS thread just caught a signal. 例如,如果相应的OS线程刚刚捕获到信号。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM