cygwin + java = 不可杀死的 java 进程,然后出现 BSOD(蓝屏死机)
我祈祷其他人已经遇到并解决了这个问题。
我在我的办公室 Windows XP Pro 机器上运行 cygwin,并在我的 java 项目上运行 maven。
大约每 30/40 个 mvn 命令中就有 1 个命令会挂起,屏幕上没有任何输出,并占用我的整个 CPU 使用率(我有 2 个 CPU)。没有什么可以杀死它,ctrl-C,任务管理器,killpid,kill -9,我都没有尝试过。如果我尝试关闭,Windows 将挂起,我需要手动关闭计算机。如果我继续工作,过了一会儿,另一个实例会挂起,所以现在我的两个 CPU 都会被锁定,几秒钟后,就会出现蓝屏死机。
我尝试过使用javaw,但没有帮助。
还有其他想法吗?
谢谢各位。
Crossing my fingers hoping that someone else has had and solved this problem..
I run cygwin on my office Windows XP Pro machine, and run maven on my java projects.
In about 1 out of every 30/40 mvn commands, the java command will hang with no output on the screen, and take up my entire CPU usage (I've got 2 CPUs). Nothing works to kill it, not ctrl-C, task manager, killpid, kill -9, nothing that I've tried. If I try to shutdown, windows hangs and I need to manually power down the machine. If I continue working then a while later another instance hangs so now I'll have both CPU's pegged, and a few seconds later, a Blue Screen of Death.
I've tried using javaw, no help.
Any other ideas?
Thanks folks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不是您问题的实际答案,但请确保您正在运行 ProcessExplorer背景。
首先,这将揭示哪个进程最需要 CPU,是 java 还是 bash.exe。
其次,它的 Kill 命令比 Ctrl-C 可靠得多。我见过进程抵抗 Ctrl-C 信号,但我还没有看到进程抵抗来自 ProcessExplorer 的终止命令。
Not an actual answer to your problem, but make sure you're running ProcessExplorer in the background.
First, this will reveal which process is the most hungry for CPU, if java or bash.exe.
Second, its kill command is much more reliable than a Ctrl-C. I've seen processes resist a Ctrl-C signal, but I have yet to see a process stand against a kill command from ProcessExplorer.