如何检测netbeans中的线程死锁
我相信我在 java netbeans 应用程序中遇到了一堆线程的死锁问题。当应用程序运行时,它运行得很好,可以随着处理器数量的增加而扩展。如果不这样做,数据就会被损坏,或者应用程序本身会完全锁定,正如线程出现问题时所预料的那样。
我需要调试他实现的线程,以找出应用程序冻结时线程正在做什么。我如何在 Netbeans 中执行此操作?我按下“暂停”按钮,但没有显示堆栈跟踪或线程跟踪。我可以在(所谓的)死锁之前放置断点,但这种方法似乎完全绕过了锁定问题。我希望能够在出现问题时解决问题。
I believe that I have a deadlocking problem with a bunch of threads in a java netbeans app. When the app works, it works very well, scaling with the number of processors. When it doesn't, data is corrupted or the app itself locks entirely, as would be expected when threading goes bad.
I need to debug into the threads that he's implemented to find out what the threads are doing when the app freezes. How can I do this in Netbeans? I press the 'pause' button, but no stack traces or thread traces are showing up. I can put breakpoints prior to the (alleged) deadlock, but that approach appears to bypass the lock problem altogether. I want to be able to unravel the situation as it arises.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论