⚡ Verify LiteSpeed License Core/Worker Numbers

Check your LiteSpeed web server license configuration to ensure you're getting the correct number of cores/workers for optimal performance.

🔍 Check LiteSpeed Core Number

To determine what LiteSpeed core license you have installed, run the following command on your server:

Verification Command:

ps aux | grep lshttpd | grep -v grep

💡 How to Interpret Results:

The number of LiteSpeed processes showing in the output corresponds to your LiteSpeed license core number. Each process represents one worker/core.

📋 Example Output Interpretation:

If your command output shows something like this:

root      1234  0.0  0.1  12345  6789 ?        Sl   10:30   0:00 openlitespeed (lshttpd - main)
nobody    1235  0.0  0.0  12345  5678 ?        S    10:30   0:00 openlitespeed (lshttpd - worker)
nobody    1236  0.0  0.0  12345  5678 ?        S    10:30   0:00 openlitespeed (lshttpd - worker)
nobody    1237  0.0  0.0  12345  5678 ?        S    10:30   0:00 openlitespeed (lshttpd - worker)
nobody    1238  0.0  0.0  12345  5678 ?        S    10:30   0:00 openlitespeed (lshttpd - worker)
nobody    1239  0.0  0.0  12345  5678 ?        S    10:30   0:00 openlitespeed (lshttpd - worker)
nobody    1240  0.0  0.0  12345  5678 ?        S    10:30   0:00 openlitespeed (lshttpd - worker)
nobody    1241  0.0  0.0  12345  5678 ?        S    10:30   0:00 openlitespeed (lshttpd - worker)
nobody    1242  0.0  0.0  12345  5678 ?        S    10:30   0:00 openlitespeed (lshttpd - worker)

✅ Result Analysis:

This means you have an 8-core LiteSpeed license installed.

• 1 main process (root)
• 8 worker processes (nobody)

Total worker cores: 8 cores

🔧 Alternative Verification Methods

Method 1: Check LiteSpeed Admin Console

1. Login to LiteSpeed Web Admin Console: https://your-server-ip:7080
2. Go to Actions → Server Log Viewer
3. Check the error.log for license information

Method 2: Check License File Directly

cat /usr/local/lsws/conf/serial.no

Method 3: LiteSpeed Status Command

/usr/local/lsws/bin/lswsctrl status

📊 Understanding License Types:

1-Core License: Basic plan, suitable for small websites
2-Core License: Standard plan for moderate traffic
4-Core License: Enhanced plan for higher traffic
8-Core License: Premium plan for high-traffic sites
Unlimited License: Enterprise plan with no core limits

🔧 Troubleshooting Common Issues

Issue: Wrong Core Number Showing

If the number of processes doesn't match your expected license:

Solution Steps:

# 1. Restart LiteSpeed
/usr/local/lsws/bin/lswsctrl restart

# 2. Check license installation
AHctLicenseLSWS

# 3. Verify license file
cat /usr/local/lsws/conf/serial.no

# 4. Check for errors
tail -f /usr/local/lsws/logs/error.log

🚨 Still Having Issues?

If the wrong core number is still showing after following the troubleshooting steps, please contact our support team. We'll verify your license configuration and resolve any issues.

🚀 Performance Optimization Tips

Optimize Worker Processes:

In LiteSpeed Admin Console → Configuration → Server → General:

• Set Max Connections based on your server resources
• Configure Max SSL Connections for HTTPS traffic
• Adjust Connection Timeout for optimal performance

Monitor Resource Usage:

# Check server load
top

# Monitor LiteSpeed processes
htop -p $(pgrep lshttpd | tr '\n' ',' | sed 's/,$//') 

# Check memory usage
free -h

✨ Pro Tips:

• Use all available cores for maximum performance
• Monitor CPU and memory usage regularly
• Enable caching for better response times
• Keep LiteSpeed updated to the latest version