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:
-
#01through#08are 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:
-
Restart LiteSpeed:
systemctl restart lswsor
service lsws restart -
Run the verification command again.
-
If the issue persists, please contact our support team with the output of:
ps aux | grep litespeedso we can verify your LiteSpeed license and investigate the issue.
