If ps hangs, try ps -M which might still work.