我没有发现任何方式倾倒在堆栈上.NET中的所有线程。既不被发送到处理也不编程方式访问所有线程的信号。我只能得到通过Thread.CurrentThread访问到当前线程。
I have found no way of dumping the stack on all threads in .NET. Neither a signal to be send to the process nor programatic access to all the threads. I can only get access to the current thread via Thread.CurrentThread.
什么花样?
推荐答案如果你想获得一个堆栈转储,而进程已经运行(一拉jstack),那里描述的here :
If you're trying to get a stack dump while the process is already running (a la jstack), there are two methods as described here:
有一个鲜为人知但有效的工具,称为Managed堆栈管理器的。虽然有基本的图形用户界面,它可以有效地将一个.NET相当于jstack,如果你要添加的路径;那么它的打字只是一个问题:
There is a little-known but effective tool called the Managed Stack Explorer. Although it features a basic GUI, it can effectively be a .NET equivalent of jstack if you add to the path; then it’s just a question of typing:
mse /s /p <pid>
我只是发现有必要采取生产线程转储,这为我工作。希望它可以帮助: - )
I just found it necessary to take a production thread dump and this worked for me. Hope it helps :-)
更多推荐
我如何在.NET中的线程转储? (一拉JVM线程转储)
发布评论