Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
825 views
in Technique[技术] by (71.8m points)

debugging - How to get a complete stack trace of a running java program that is taking 100% cpu?

I do have a jenkins instance that is stuck in some kind of endless loop without any visible activity.

I can get the pid of the running process so how do I generate a trace that I can use for a bug report?

I'm running on linux.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try with jstack. It'll give you a full list of what your threads are doing. All it needs is the process pid.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...