Plesk

The sw-engine process causes high CPU usage on a Plesk server

Symptoms

Cause

Some sw-engine child processes are stuck and cannot be stopped normally.

Resolution

  1. Connect to the Plesk server via SSH.

  2. Stop the sw-engine service:

    # service sw-engine stop
    Stopping sw-engine-fpm: [ OK ]

  3. Find stuck sw-engine processes and their PID:

    # ps aux | grep sw-engine
    psaadm 1597 0.0 2.1 274896 44100 ? Ss 12:39 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/plib/WebSocket/bin/ws-server.php
    psaadm 1842 0.0 2.3 278952 49564 ? S 12:42 0:00 /usr/bin/sw-engine -c /usr/local/psa/admin/conf/php.ini /usr/local/psa/bin/extension --exec revisium-antivirus ra_executor.php

  4. Kill these stuck processes using their PID. In the example above, they are 1597 and 1842:

    # kill -9 1597 1842

  5. Start the sw-engine service:

    # service sw-engine start
    Starting sw-engine-fpm: [ OK ]

Exit mobile version