An apache2 process got stuck on my server and caused problems with other services. (original problem: kerneloops after USB hardware disconnect)
root@server:~# ps aux | grep apache2 | grep -v grep
www-data 12917 0.0 0.1 412148 16156 ? D Jun27 0:00 /usr/sbin/apache2 -k start
Naturally, I kill
d it. it's still alive. so I kill -9
d it. It's still "alive".
Now this is where the question gets serverfault/unix&linux-worthy: Is there a way to get port 443 back without doing the obvious thing: rebooting? Iptables is installed.
Update: I could not resolve the Problem withouth rebooting. The general approach (use lsof
or /proc/$PID/fd
to find out which and get rid of that drive) as described here and in the "duplicate" could well have worked if not for additional (probably) hardware defects.
mount
says that beside tmpfs/proc/sysfs there is only one other, and both / and the storage are local & responsive. i am pretty sure it was about a (already disconnected) usb thumb drive.ifdown
/ifup
/ restart networking?lsof -p pid
to see what the process is accessing right now, it could help you to find out the bottleneck. If not, you can also attach to it with a debugger (ex: Gdb, gnu debugger), and see exactly what it is currently doing./proc/$PID/fd/
and/proc/$PID/maps
.