LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Feedback/Feature Requests > CPU Usage Leak

Reply
 
Thread Tools Display Modes
  #1  
Old 11-11-2008, 02:50 PM
valera valera is offline
Member
 
Join Date: Dec 2007
Posts: 16
Default CPU Usage Leak

I use LS with large traffic of 1000+ requests per second. After running for 3-7 days the CPU idle time reduces very noticeably by 20-30% under the same traffic load. Performing graceful restart of LS instantly increases CPU idle time back to where it should be. There are obviously some inefficiencies that over the course of hundreds of millions of requests make LS hog much more CPU than it should. I got into a habit of performing weekly graceful restarts. I hope this can be identified and addressed in future releases.
Reply With Quote
  #2  
Old 11-11-2008, 02:57 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Are you sure the extra CPU time is consumed by lshttpd?
Maybe it is the PHP or its opcode cache, does not related to lshttpd itself.
Reply With Quote
  #3  
Old 11-19-2008, 02:16 PM
valera valera is offline
Member
 
Join Date: Dec 2007
Posts: 16
Ok, I've let LS run for another week and checked what I see with 'top' command before and after LS graceful restart.

After 1 week of continuous running:
lshttpd - one process - between 23 and 28 % CPU, 5% memory
lsphp - about 50 separate processes - typically 5 to 8 % CPU each, 0.1% memory each

After graceful restart:
lshttpd - one process - between 20 and 22 % CPU, 1.7% memory
lsphp - about 50 separate processes - typically 1 to 7 % CPU each, 0.1% memory each

phpLsapi variables:
PHP_LSAPI_CHILDREN=50
PHP_LSAPI_MAX_REQUESTS=5000
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:35 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.