Hanging process inside container

jmartin

Member
Mar 17, 2009
40
0
6
While running a previously successful compile in an OpenVZ container, one of the processes got stuck.

I can only tell which process it is by running "top":
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
31425 1002 20 0 1330m 18m 9508 D 99 0.1 1186:07 jarsigner

"ps ax" list all processes up to but not including the "bad one". vzps and vztop don't show any processes at all.

ls /proc/31425 hangs, so does cat /proc/31425/cmdline.

vzctl .. stop times out after a while.

strace -p 31425 just sits and waits after printing "Process 31425 attached - interrupt to quit".

Appearantly, that process is stuck in a system call somewhere.

Is there any way to get rid of it without rebooting the host machine?
 
I assume 'kill -9 31425' does not help?

No. Neither with this process nor with any of the other processes that got stuck on this process (ps, ls).

I've never had much luck trying to kill processes in "uninterruptible sleep" such as this one. What's special about this one is that it uses 100% CPU (though sleeping?)...
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!