Unable to log in to Plesk. Executing Plesk binaries takes a long time

Created:

2016-11-16 12:51:25 UTC

Modified:

2017-04-24 12:09:35 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to log in to Plesk. Executing Plesk binaries takes a long time

Applicable to:

  • Plesk for Linux

Symptoms

  • Executing simple operations such as retrieving admin password with '/usr/local/psa/bin/admin --show-password' takes much time.

  • High load on the server causing long time loading of Plesk GUI (unable to log in).

Cause

There are many processes in D ( Uninterruptible sleep ) state.

In the example ps aux|grep D gives processes with D state (STAT column). In here lsof and sysinfo processes are in D state

# ps aux | grep D
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 535 0.0 0.0 10444 2032 ? S 2013 0:00 CROND
root 565 0.0 0.5 72664 24036 ? S 2013 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/DailyMaintainance/script.php
.
.
root 6311 0.0 0.0 7112 884 ? D 2013 0:00 /usr/local/psa/admin/bin/sysinfo df-full
root 6548 0.0 0.0 4324 172 ? D 2013 0:00 /usr/sbin/lsof -F n -w -n
root 7203 0.0 0.0 4324 172 ? D Jan06 0:00 /usr/sbin/lsof -F n -w -n
root 8275 0.0 0.0 7116 888 ? D Jan06 0:00 /usr/local/psa/admin/bin/sysinfo df-full
root 8291 0.0 0.0 7116 888 ? D Jan06 0:00 /usr/local/psa/admin/bin/sysinfo df-full
root 8305 0.0 0.0 7116 884 ? D Jan06 0:00 /usr/local/psa/admin/bin/sysinfo df-full
root 8313 0.0 0.0 7112 880 ? D Jan06 0:00 /usr/local/psa/admin/bin/sysinfo df-full
root 8340 0.0 0.0 7112 884 ? D Jan06 0:00 /usr/local/psa/admin/bin/sysinfo df-full

Resolution

Check what processes are in D state (as in Cause section) and kill them one by one with 'kill -9 PID' command, e.g.:

# kill -9 6311
# kill -9 6548
# kill -9 7203
# kill -9 8275
# kill -9 8291
# kill -9 8305
# kill -9 8313
# kill -9 8340

Considering the above ps output, lsof and sysinfo processes should be killed. Therefore they are specified in egrep 'lsof|sysinfo' piece below to kill D state processes in batch.

# ps aux|grep D|egrep 'lsof|sysinfo'|awk '{print $2}'|while read i;do echo "=======Killing process $i=======";kill -9 $i;done   
=======Killing process 6311=======
=======Killing process 6548=======
=======Killing process 7203=======
=======Killing process 8275=======
=======Killing process 8291=======
=======Killing process 8305=======
=======Killing process 8313=======
=======Killing process 8340=======
Have more questions? Submit a request
Please sign in to leave a comment.