|
|

06-22-2011, 04:28 PM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2010
Posts: 2,339
|
|
It is better set PHP_LSAPI_MAX_REQUESTS=500 or 1000. You don't want a child php process just serves one request and exits. Max Idle time by default (not set) is -1 (server never kill the parent PHP process). Another possibility of opcode cache reset is server restart (by itself). You can verify the server uptime in realtime stats and see if it does restart often (uptime is short). if so, you need to check error.log around the time it restarts for clue.
Quote:
Originally Posted by NUTNDUN
...
I did change these settings:
PHP_LSAPI_MAX_REQUESTS=1
PHP_LSAPI_CHILDREN=50
and I still have keep alive set to -1.
|
|

06-22-2011, 06:54 PM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,227
|
|
|
also, you change the default setting
PHP_LSAPI_CHILDREN=35
to
PHP_LSAPI_CHILDREN=50
then have you changed
Max Connections:35
as well? should change it to 50 as well. these 2 settings should match
|

06-23-2011, 04:09 PM
|
|
Member
|
|
Join Date: Jun 2011
Posts: 17
|
|
|
Ok, something is definitely restarting the litespeed server. Just have to figure out what and if anyone has any tips on how to go about that I am all ears. Here is what is in the info log from the litespeed admin panel after a recent reset.
2011-06-23 18:04:59.268 NOTICE Server Restart Request via Signal...
2011-06-23 18:04:59.269 NOTICE [PID: 13711]: start cgid: 7379, /usr/local/lsws/bin/lscgid
2011-06-23 18:04:59.269 NOTICE [Child: 13715] Start shutting down gracefully ...
2011-06-23 18:04:59.269 INFO Pass listener 127.0.0.1:443.
2011-06-23 18:04:59.269 INFO Pass listener 127.0.0.1:80.
2011-06-23 18:04:59.269 INFO Pass listener 173.199.147.72:443.
2011-06-23 18:04:59.269 INFO Pass listener 173.199.147.72:80.
2011-06-23 18:04:59.269 INFO Pass listener 173.199.147.73:443.
2011-06-23 18:04:59.269 INFO Pass listener 173.199.147.73:80.
2011-06-23 18:04:59.269 INFO Pass listener 173.199.147.74:443.
2011-06-23 18:04:59.269 INFO Pass listener 173.199.147.74:80.
2011-06-23 18:04:59.269 INFO Pass listener 173.199.147.75:443.
2011-06-23 18:04:59.269 INFO Pass listener 173.199.147.75:80.
2011-06-23 18:04:59.269 INFO Pass listener *:7080.
2011-06-23 18:04:59.270 INFO Stop listener 127.0.0.1:443.
2011-06-23 18:04:59.270 INFO Stop listener 127.0.0.1:80.
2011-06-23 18:04:59.270 INFO Stop listener 173.199.147.72:443.
2011-06-23 18:04:59.270 INFO Stop listener 173.199.147.72:80.
2011-06-23 18:04:59.270 INFO Stop listener 173.199.147.73:443.
2011-06-23 18:04:59.270 INFO Stop listener 173.199.147.73:80.
2011-06-23 18:04:59.270 INFO Stop listener 173.199.147.74:443.
2011-06-23 18:04:59.270 INFO Stop listener 173.199.147.74:80.
2011-06-23 18:04:59.270 INFO Stop listener 173.199.147.75:443.
2011-06-23 18:04:59.270 INFO Stop listener 173.199.147.75:80.
2011-06-23 18:04:59.270 INFO Stop listener *:7080.
2011-06-23 18:04:59.513 NOTICE Your License key will expire in 14 days
2011-06-23 18:04:59.513 NOTICE Loading LiteSpeed/4.1.1 Enterprise ...
2011-06-23 18:04:59.715 NOTICE [ADMIN] server socket: uds://usr/local/lsws/admin/tmp/admin.sock.7689
2011-06-23 18:04:59.715 NOTICE Loading configuration from /usr/local/lsws/conf/httpd_config.xml ...
2011-06-23 18:04:59.716 NOTICE Recovering server socket: [127.0.0.1:443]
2011-06-23 18:04:59.716 NOTICE Recovering server socket: [127.0.0.1:80]
2011-06-23 18:04:59.716 NOTICE Recovering server socket: [173.199.147.72:443]
2011-06-23 18:04:59.716 NOTICE Recovering server socket: [173.199.147.72:80]
2011-06-23 18:04:59.716 NOTICE Recovering server socket: [173.199.147.73:443]
2011-06-23 18:04:59.716 NOTICE Recovering server socket: [173.199.147.73:80]
2011-06-23 18:04:59.716 NOTICE Recovering server socket: [173.199.147.74:443]
2011-06-23 18:04:59.716 NOTICE Recovering server socket: [173.199.147.74:80]
2011-06-23 18:04:59.716 NOTICE Recovering server socket: [173.199.147.75:443]
2011-06-23 18:04:59.716 NOTICE Recovering server socket: [173.199.147.75:80]
2011-06-23 18:04:59.716 NOTICE Recovering server socket: [*:7080]
2011-06-23 18:04:59.716 NOTICE [config] chroot is disabled.
2011-06-23 18:04:59.716 INFO old priority: -19, new priority: -19
2011-06-23 18:04:59.716 INFO [config:server:basic] For better obscurity, server version number is hidden in the response header.
2011-06-23 18:04:59.737 NOTICE [PID: 7404]: start cgid: 7407, /usr/local/lsws/bin/httpd
2011-06-23 18:04:59.737 WARN [config:server:listener] No listener is available for normal virtual host!
2011-06-23 18:04:59.737 NOTICE The maximum number of file descriptor limit is set to 6000.
2011-06-23 18:04:59.738 NOTICE [config] Cache function requires a 2-CPU license or above.
2011-06-23 18:04:59.738 INFO Processing config file: /usr/local/apache/conf/includes/pre_main_global.conf
2011-06-23 18:04:59.738 INFO Processing config file: /usr/local/apache/conf/includes/pre_main_2.conf
2011-06-23 18:04:59.738 INFO Processing config file: /usr/local/apache/conf/php.conf
2011-06-23 18:04:59.738 INFO Processing config file: /usr/local/apache/conf/includes/errordocument.conf
2011-06-23 18:04:59.738 INFO Processing config file: /usr/local/apache/conf/modsec2.conf
2011-06-23 18:04:59.746 INFO Processing config file: /usr/local/apache/conf/modsec2.user.conf
2011-06-23 18:04:59.750 INFO Processing config file: /usr/local/apache/conf/includes/pre_virtualhost_global.conf
2011-06-23 18:04:59.750 INFO Processing config file: /usr/local/apache/conf/includes/pre_virtualhost_global.conf
2011-06-23 18:04:59.750 INFO Processing config file: /usr/local/apache/conf/includes/pre_virtualhost_2.conf
2011-06-23 18:04:59.750 INFO Processing config file: /usr/local/apache/conf/includes/pre_virtualhost_2.conf
2011-06-23 18:04:59.751 INFO Processing config file: /usr/local/apache/conf/includes/post_virtualhost_global.conf
2011-06-23 18:04:59.751 INFO Processing config file: /usr/local/apache/conf/includes/post_virtualhost_global.conf
2011-06-23 18:04:59.751 INFO Processing config file: /usr/local/apache/conf/includes/post_virtualhost_2.conf
2011-06-23 18:04:59.751 INFO Processing config file: /usr/local/apache/conf/includes/post_virtualhost_2.conf
2011-06-23 18:04:59.756 NOTICE litespeed (7404) is ready
2011-06-23 18:04:59.757 NOTICE [child: 7409] Successfully change current user to nobody
2011-06-23 18:04:59.757 NOTICE [Child: 7409] Core dump is enabled.
2011-06-23 18:04:59.757 NOTICE [Child: 7409] Setup swapping space...
2011-06-23 18:04:59.757 NOTICE [Child: 7409] LiteSpeed/4.1.1 Enterprise starts successfully!
2011-06-23 18:04:59.757 NOTICE [AutoRestarter] new child process with pid=7409 is forked!
2011-06-23 18:04:59.770 NOTICE New litespeed process is ready, litespeed (13715) stops listeners
2011-06-23 18:04:59.770 INFO Stop listener 127.0.0.1:443.
2011-06-23 18:04:59.770 INFO Stop listener 127.0.0.1:80.
2011-06-23 18:04:59.770 INFO Stop listener 173.199.147.72:443.
2011-06-23 18:04:59.771 INFO Stop listener 173.199.147.72:80.
2011-06-23 18:04:59.771 INFO Stop listener 173.199.147.73:443.
2011-06-23 18:04:59.771 INFO Stop listener 173.199.147.73:80.
2011-06-23 18:04:59.771 INFO Stop listener 173.199.147.74:443.
2011-06-23 18:04:59.771 INFO Stop listener 173.199.147.74:80.
2011-06-23 18:04:59.771 INFO Stop listener 173.199.147.75:443.
2011-06-23 18:04:59.771 INFO Stop listener 173.199.147.75:80.
2011-06-23 18:04:59.771 INFO Stop listener *:7080.
2011-06-23 18:04:59.771 NOTICE [Child: 13715] Shut down successfully!
2011-06-23 18:04:59.771 NOTICE [lsphp5] stop worker processes
2011-06-23 18:04:59.774 NOTICE [AutoRestarter] cleanup children processes and unix sockets of process with pid=13715 !
2011-06-23 18:04:59.774 INFO [CLEANUP] Clean up child process with pid: 13887
2011-06-23 18:04:59.874 NOTICE [AutoRestarter] child process with pid=13715 exited with status=0!
2011-06-23 18:04:59.875 NOTICE [PID:13711] Server Stopped!
2011-06-23 18:05:00.105 NOTICE [AutoUpdate] Checking for new releases..., pid=7412
2011-06-23 18:05:00.115 NOTICE Start to clean up cache directory, pid=7413
2011-06-23 18:05:00.211 INFO [AutoUpdate] No new update.
2011-06-23 18:05:00.310 INFO [HTAccess] Updating configuration from [/home/gttnut/public_html/.htaccess]
2011-06-23 18:05:01.076 INFO [127.0.0.1:47606-0#APVH_*_sv1.gttalk.com] File not found [/usr/local/apache/htdocs/whm-server-status]
2011-06-23 18:05:01.078 INFO [LICENSE] License is OK.
2011-06-23 18:05:01.091 INFO [127.0.0.1:47607-0#APVH_*_sv1.gttalk.com] File not found [/usr/local/apache/htdocs/server-status]
2011-06-23 18:05:11.808 INFO [HTAccess] Updating configuration from [/home/gttalk/public_html/.htaccess]
2011-06-23 18:06:15.361 INFO [HTAccess] Updating configuration from [/home/opt/public_html/.htaccess]
|

06-23-2011, 04:16 PM
|
|
Member
|
|
Join Date: Jun 2011
Posts: 17
|
|
|
Here are my current configuration settings also:
General:
----------------------------------------------
Server Name $HOSTNAME
Running As user(nobody) : group(nobody)
Priority -19
chroot Path /
Enable chroot No
Enable LVE Not Set
Memory I/O Buffer 60M
Swapping Directory /tmp/lshttpd/swap
Auto Restart Yes
Auto Fix 503 Error Yes
Graceful Restart Timeout (secs) Not Set
MIME Settings $SERVER_ROOT/conf/mime.properties
Disable Initial Log Rotation Yes
Server Signature Hide Version
Enable IP GeoLocation Not Set
Use Client IP in Header Not Set
Check For Update Daily
Download Updates Yes
Administrator Email root@localhost
Index Files index.html, index.php, index.php5, index.htm
Auto Index No
Auto Index URI Not Set
HT Access Edit
Allow Override Limit Auth FileInfo Indexes Options None
Access File Name .htaccess
Enable Expires Yes
Expires Default Not Set
Expires By Type image/*=A604800, text/css=A604800, application/x-javascript=A604800, application/javascript=A604800
IP to GeoLocation DB Add DB File Path DB Cache Type Action
Load Apache Configuration Yes
Auto Reload On Changes Use Apache binary wrapper
Apache Binary Path /usr/local/apache/bin/httpd
Apache Configuration File /usr/local/apache/conf/httpd.conf
Apache Port Offset 0
Apache IP Offset 0
Apache Handled Content Not Set
Ignore Apache Modules Not Set
PHP suEXEC No
PHP suEXEC Max Conn 10
Enable FrontPage Extension No
Apache Style Configurations Edit
Apache Style configurations Not Set
Here are a LSPHP5 settings:
-------------------------------------------
Name lsphp5
Address uds://tmp/lshttpd/lsphp5.sock
Notes Not Set
Max Connections 50
Environment PHP_LSAPI_MAX_REQUESTS=500
PHP_LSAPI_CHILDREN=50
Initial Request Timeout (secs) 60
Retry Timeout (secs) 0
Persistent Connection Yes
Connection Keepalive Timeout -1
Response Buffering No
Auto Start Yes
Command $SERVER_ROOT/fcgi-bin/lsphp5
Back Log 100
Instances 1
suEXEC User Not Set
suEXEC Group Not Set
Run On Start Up Not Set
Max Idle Time -1
Priority 0
Memory Soft Limit (bytes) 450M
Memory Hard Limit (bytes) 500M
Process Soft Limit 200
Process Hard Limit 200
|

06-23-2011, 06:18 PM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,227
|
|
|
does it happen often?
|

06-23-2011, 06:23 PM
|
|
Member
|
|
Join Date: Jun 2011
Posts: 17
|
|
|
Seems to be averaging about once an hour or so, it isn't consistent either, like one time it might be 45 minutes and then the next time it might be an hour and 15 minutes. So far the highest hits I have been able to get on xcache has been 195,000 and that lasted about an hour and fifteen minutes.
We do have configserver plugin installed on this one but we also had it on our last vps. Clam AV is also on it and we didn't have it on the other server.
|

06-23-2011, 07:10 PM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,227
|
|
|
so the issue is: lsws restarts about once 1 hour in unknown reason, and that can explain the cache reset issue. true?
|

06-24-2011, 01:46 AM
|
|
Member
|
|
Join Date: Jun 2011
Posts: 17
|
|
|
Yes that seems to be the issue.
|

06-24-2011, 09:53 AM
|
|
LiteSpeed Staff
|
|
Join Date: Oct 2010
Posts: 2,339
|
|
Did you get email from cPanel when LSWS was restarted?
Quote:
Originally Posted by NUTNDUN
Yes that seems to be the issue.
|
|

06-24-2011, 10:18 AM
|
|
Member
|
|
Join Date: Jun 2011
Posts: 17
|
|
|
No, I am not getting any emails about LSWS being restarted. I get emails if I goof up trying to login the the LSWS admin panel though.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 02:42 AM.
|
|