Verify Your LiteSpeed License Core / Worker Count

If you want to verify how many CPU cores (workers) your current LiteSpeed Web Server license supports, you can easily check it from the command line.

Step 1: Check Running LiteSpeed Processes

Run the following command as root:

ps aux | grep litespeed

Step 2: Count the Worker Processes

You will see output similar to the following:

root      5344  0.0  1.0 21474956380 41452 ?   S    16:00   0:00 litespeed (lshttpd - main)
nobody    5347  0.2  4.3 21474999300 167916 ?  Sl   16:00   0:02 litespeed (lshttpd - #01)
nobody    5348  0.2  4.3 21475018528 167764 ?  Sl   16:00   0:02 litespeed (lshttpd - #02)
nobody    5354  0.2  4.3 21475017464 169564 ?  Sl   16:00   0:02 litespeed (lshttpd - #03)
nobody    5361  0.2  4.1 21474999752 161328 ?  Sl   16:00   0:02 litespeed (lshttpd - #04)
nobody    5366  0.2  4.3 21475015736 168296 ?  Sl   16:00   0:02 litespeed (lshttpd - #05)
nobody    5372  0.2  4.3 21475015324 169664 ?  Sl   16:00   0:02 litespeed (lshttpd - #06)
nobody    5378  0.2  4.8 21475021156 188424 ?  Sl   16:00   0:02 litespeed (lshttpd - #07)
nobody    5384  0.2  4.0 21475000400 158732 ?  Sl   16:00   0:02 litespeed (lshttpd - #08)

The first line (lshttpd - main) is the LiteSpeed master process.

Each additional process labeled lshttpd - #XX represents one LiteSpeed worker.

In the example above:

  • #01 through #08 are running.

  • This indicates an 8-core LiteSpeed license.

Alternative Command

To display only the LiteSpeed worker processes:

ps aux | grep "lshttpd - #"

Or simply count the workers automatically:

ps aux | grep "lshttpd - #" | grep -v grep | wc -l

Example output:

8

This means your LiteSpeed license is currently running 8 worker processes (8 cores).

If the Reported Core Count Is Incorrect

If the number of LiteSpeed worker processes does not match the license you purchased:

  1. Restart LiteSpeed:

    systemctl restart lsws
    

    or

    service lsws restart
    
  2. Run the verification command again.

  3. If the issue persists, please contact our support team with the output of:

    ps aux | grep litespeed
    

    so we can verify your LiteSpeed license and investigate the issue.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to install LiteSpeed Web Server in cPanel?

Run the following command to install the LSWS plugin in cPanel: cd /usr/local/srcwget -N...

How to uninstall LiteSpeed on cPanel web server?

To uninstall LiteSpeed Web Server, perform the following steps: As the root user, convert your...

Apache Fails With "Syntax error on line #" on Server?

If you had an Apache/LiteSpeed-powered web server, you might see such an error that the HTTPD...

404 Not Found Error on All Websites (CyberPanel)

Make sure to check your website without HTTPS. If your website is accessible with HTTP and can't...

How can you Switch to Apache from LiteSpeed?

Apache and Litespeed are web servers. Both of them are good in their own ways and both of them do...