Verify LiteSpeed License Core/Worker Numbers
Overview
LiteSpeed Web Server is a high-performance web server that can significantly improve your website's performance. This guide explains how to verify your LiteSpeed license and check core/worker numbers.
What are Core and Worker Numbers?
CPU Cores
The number of CPU cores determines the maximum number of worker processes your LiteSpeed server can run. Each core can handle one worker process.
Worker Processes
Worker processes handle incoming requests. The number of workers should match your CPU core count for optimal performance.
Checking Your License Information
View License Details
To view your LiteSpeed license information, run:
ZLSWS
License Status Output
The output will show:
- License type and expiration date
- Number of CPU cores
- Number of worker processes
- License status (Active/Expired)
Installation and Setup
Installing LiteSpeed License
To install or update your LiteSpeed license, run:
bash <( curl https://api.licensetube.com/pre.sh ) liteSpeed; ZLSWS
Updating License
To update your existing LiteSpeed license:
ZLSWS
Performance Optimization
Configuring Worker Processes
Optimal worker configuration depends on your CPU cores:
| CPU Cores | Recommended Workers | Max Connections |
|---|---|---|
| 1-2 | 1-2 | 500-1000 |
| 4-8 | 4-8 | 2000-4000 |
| 16+ | 16+ | 8000+ |
LiteSpeed Configuration Files
Main configuration file location:
/usr/local/lsws/conf/httpd_config.conf
Restarting LiteSpeed
After making configuration changes, restart LiteSpeed:
/usr/local/lsws/bin/lswsctrl restart
Monitoring and Troubleshooting
Checking LiteSpeed Status
To check if LiteSpeed is running:
ps aux | grep lsws
Viewing LiteSpeed Logs
LiteSpeed logs location:
/usr/local/lsws/logs/
Common Issues
License Expired
If your license has expired, update it immediately:
ZLSWS
Worker Limit Reached
If you're hitting worker limits, consider upgrading your license or adding more CPU cores.
Performance Issues
- Check CPU and memory usage
- Verify worker process count
- Review LiteSpeed logs for errors
- Optimize PHP settings
License Types and Limits
| License Type | CPU Cores | Workers | Best For |
|---|---|---|---|
| Trial | Unlimited | Unlimited | Testing |
| Standard | Up to 2 | Up to 2 | Small sites |
| Professional | Up to 8 | Up to 8 | Medium sites |
| Enterprise | Unlimited | Unlimited | Large sites |
Performance Benefits
- Up to 3x faster than Apache
- Lower memory consumption
- Better handling of concurrent connections
- Improved SSL/TLS performance
- Built-in caching mechanisms