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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > lsphp5 high load

Reply
 
Thread Tools Display Modes
  #1  
Old 09-07-2011, 05:28 AM
kan3 kan3 is offline
Member
 
Join Date: Jan 2011
Posts: 43
Default lsphp5 high load

Hi,

Lsphp5 is using high % of CPU. Any reasons why? Is there any way to fix it?




Thank you.
Reply With Quote
  #2  
Old 09-07-2011, 06:05 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
although it's high, it's quite common for a php-heavy website, for example a vBulletin forum. to reduce the CPU usage,
1. install opcode cache(APC, XCache or eAccelerator)
2. install memcached to cache mysql result
3. enable page cache
4. improve the php source code
....
PHP as an interpreted language usually has low efficiency CPU usage.
Reply With Quote
  #3  
Old 09-07-2011, 11:21 AM
kan3 kan3 is offline
Member
 
Join Date: Jan 2011
Posts: 43
Hi Nitewave thanks for replying.

I've already installed Xcache. Do you recommend installing memcached too?
Reply With Quote
  #4  
Old 09-08-2011, 12:19 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
it depends on what php apps you've installed. if the app or its add-ons can utilize memcached, then install memcached. otherwise, it's useless.
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 04:03 PM.



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