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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Failed to generate the realtime reports!

Reply
 
Thread Tools Display Modes
  #21  
Old 04-29-2009, 12:07 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
What's your lsphp5 environmental settings?
Reply With Quote
  #22  
Old 04-30-2009, 12:50 AM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
Quote:
Originally Posted by anewday View Post
What's your lsphp5 environmental settings?
Here they are, bro :
-----------------------------
PHP_LSAPI_MAX_REQUESTS=3000
PHP_LSAPI_CHILDREN=175
LSAPI_MAX_IDLE=5
LSAPI_PGRP_MAX_IDLE=5
LSAPI_MAX_PROCESS_TIME=300
-----------------------------


And again....

Reply With Quote
  #23  
Old 04-30-2009, 10:18 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Your server start to use swap, that's why you get high load.
your PHP opcode cache size is a bit high to me, since eaccelerator uses /dev/shm, there is no need to set opcode cache too high.
Also, make sure the /dev/shm got cleaned regularly.
Reply With Quote
  #24  
Old 04-30-2009, 12:54 PM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
@George :

PHP opcode cache means.... eaccelerator.shm_size?
Mine is just use the default 16 mb.
So I must to reduce that size again?

Yes I remember you have told me to empty it around every 5 minutes...
Btw I regularly clean my /dev/shm/eaccelerator with hourly cron job.
Is that too long?
Reply With Quote
  #25  
Old 04-30-2009, 01:01 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
16mb should be fine. you need to find out which process responsible for the swap usage.
monitor the usage of /dev/shm with command "df", I think it should be cleaned more frequently.
Reply With Quote
  #26  
Old 04-30-2009, 01:03 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
your PHP processes is constantly allocate more than 200MB memory, you need to find out what causes it doing that. Maybe other opcode cache or loader, should reduce the memory usage.
Reply With Quote
  #27  
Old 04-30-2009, 01:07 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 723
I think PHP_LSAPI_CHILDREN is too high unless your server gets millions of hits per day. What's lsphp5 Max Connections set to?
Reply With Quote
  #28  
Old 04-30-2009, 01:24 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
PHP_LSAPI_CHILDREN is ignored when PHP suEXEC is used.
http://www.litespeedtech.com/docs/we...ral/#phpSuExec
Reply With Quote
  #29  
Old 04-30-2009, 01:55 PM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
Quote:
Originally Posted by mistwang View Post
16mb should be fine. you need to find out which process responsible for the swap usage.
monitor the usage of /dev/shm with command "df", I think it should be cleaned more frequently.
Yes it has loaded very fast (it was cleaned up at 5 minutes ago)....
Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
tmpfs                  4090756   3926160    164596  96% /dev/shm
I will change my cron job to clean it more frequently.
Is that save to move the eaccelerator.shm_dir to another disk? (that disk is just filled for /home1 only)
Btw.... how to find out which proccess that mostly filled up that cache dir?




Quote:
Originally Posted by mistwang View Post
your PHP processes is constantly allocate more than 200MB memory, you need to find out what causes it doing that. Maybe other opcode cache or loader, should reduce the memory usage.
I am using eAccelerator only as opcode.
The loaders are zend and ioncube.
There were 2-3 sites which are use ioncube.
Reply With Quote
  #30  
Old 04-30-2009, 02:00 PM
DraCoola DraCoola is offline
Senior Member
 
Join Date: Mar 2009
Posts: 149
Quote:
Originally Posted by anewday View Post
I think PHP_LSAPI_CHILDREN is too high unless your server gets millions of hits per day. What's lsphp5 Max Connections set to?
lsphp5 Max Connections is 175 (same as PHP_LSAPI_CHILDREN value).



@george :
Yes I use PHP suEXEC, as it shown on my "top" screen shots.
So PHP_LSAPI_CHILDREN value will completely ignored? I'll erase that.
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 06:10 PM.



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