|
|

09-16-2011, 08:57 AM
|
|
Member
|
|
Join Date: Sep 2011
Posts: 12
|
|
[solved] Website loading become slow when at busy time
can anyone help me
I use LiteSpeed for my web
when at busy time, load time become very slow, much slower than apache
Code:
VH Name Req in Processing Req / Sec Total Req T
vhost1 37 4.0 8.182
if req in processing over 60, one of my virtual host will be very slow to open,
and for information, my visitors a day around 5000, and I use the LiteSpeed Enterprise 15 day trial
whether there is something wrong with my settings ?
Code:
max con = 2000
max ssl con = 200
conection timeout = 200
max keep alive = 1000
and the other settings is the default 
Last edited by NiteWave; 09-19-2011 at 06:32 PM..
|

09-16-2011, 08:25 PM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,217
|
|
|
php suExec enabled or not ?
|

09-17-2011, 01:36 AM
|
|
Member
|
|
Join Date: Sep 2011
Posts: 12
|
|
dis you mean in server >> general >> Using Apache Configuration File
PHP suEXEC > not set
FYI, i make fresh install litespeed, not import setting from apache
i have 5 IP virtual host with 5 listeners
i create virtual host from virtual host template > PHP_SuEXEC
is there something wrong or did I miss?
Last edited by ericknichos; 09-17-2011 at 01:43 AM..
|

09-17-2011, 03:16 AM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,217
|
|
|
ok. then check what user litespeed and lsphp processes as:
#ps -ef|grep litespeed
#ps -ef|grep lsphp
|

09-17-2011, 04:29 AM
|
|
Member
|
|
Join Date: Sep 2011
Posts: 12
|
|
Code:
[root@localhost ~]# ps -ef|grep lsphp
nobody 317 30323 0 00:42 ? 00:00:00 lsphp5:usr/local/lsws/DEFAULT/html/web2/browse.php
nobody 457 30322 0 00:42 ? 00:00:00 lsphp5
nobody 484 30323 0 00:42 ? 00:00:00 lsphp5:usr/local/lsws/DEFAULT/html/web2/browse.php
nobody 763 30323 1 00:43 ? 00:00:00 lsphp5:/usr/local/lsws/DEFAULT/html/web1/browse.php
nobody 1319 30322 0 00:43 ? 00:00:00 lsphp5
root 1489 29339 0 00:44 pts/0 00:00:00 grep lsphp
nobody 8183 30322 0 00:01 ? 00:00:08 lsphp5
nobody 22633 30322 0 00:25 ? 00:00:02 lsphp5
nobody 22708 30322 0 00:25 ? 00:00:04 lsphp5:/usr/local/lsws/DEFAULT/html/web1/browse.php
nobody 22735 30323 0 00:25 ? 00:00:05 lsphp5:usr/local/lsws/DEFAULT/html/web3/browse.php
nobody 23131 30323 0 00:26 ? 00:00:05 lsphp5:/usr/local/lsws/DEFAULT/html/web1/browse.php
nobody 23209 30322 0 00:26 ? 00:00:03 lsphp5:/usr/local/lsws/DEFAULT/html/web1/browse.php
nobody 23618 30322 0 00:27 ? 00:00:02 lsphp5
nobody 23965 30323 0 00:27 ? 00:00:07 lsphp5:/usr/local/lsws/DEFAULT/html/web1/browse.php
nobody 24795 30322 0 00:29 ? 00:00:01 lsphp5
nobody 25541 30322 0 00:30 ? 00:00:03 lsphp5:/usr/local/lsws/DEFAULT/html/web1/browse.php
nobody 25542 30322 0 00:30 ? 00:00:03 lsphp5:/usr/local/lsws/DEFAULT/html/web1/browse.php
nobody 25698 30322 0 00:30 ? 00:00:02 lsphp5:usr/local/lsws/DEFAULT/html/web2/browse.php
nobody 25899 30323 0 00:31 ? 00:00:03 lsphp5:usr/local/lsws/DEFAULT/html/web3/browse.php
nobody 26115 30323 0 00:31 ? 00:00:04 lsphp5:/usr/local/lsws/DEFAULT/html/web4/browse.php
nobody 26116 30323 0 00:31 ? 00:00:03 lsphp5:/usr/local/lsws/DEFAULT/html/web4/browse.php
nobody 26965 30323 0 00:32 ? 00:00:03 lsphp5:/usr/local/lsws/DEFAULT/html/web4/browse.php
nobody 27449 30323 0 00:33 ? 00:00:02 lsphp5
nobody 27450 30323 0 00:33 ? 00:00:02 lsphp5
nobody 27917 30323 0 00:34 ? 00:00:02 lsphp5:usr/local/lsws/DEFAULT/html/web11/browse.php
nobody 27918 30323 0 00:34 ? 00:00:02 lsphp5
nobody 27941 30322 0 00:34 ? 00:00:01 lsphp5
nobody 27970 30322 0 00:34 ? 00:00:02 lsphp5:/usr/local/lsws/DEFAULT/html/web1/browse.php
nobody 28993 30322 0 00:36 ? 00:00:00 lsphp5
nobody 30161 30323 1 00:38 ? 00:00:03 lsphp5:/usr/local/lsws/DEFAULT/html/web1/browse.php
nobody 30170 30323 0 00:38 ? 00:00:02 lsphp5:/usr/local/lsws/DEFAULT/html/web1/browse.php
nobody 30179 30323 0 00:38 ? 00:00:01 lsphp5:usr/local/lsws/DEFAULT/html/web3/browse.php
nobody 30188 30323 0 00:38 ? 00:00:01 lsphp5:usr/local/lsws/DEFAULT/html/web3/browse.php
nobody 30398 30322 0 00:39 ? 00:00:01 lsphp5:/usr/local/lsws/DEFAULT/html/web4/browse.php
nobody 30408 30322 0 00:39 ? 00:00:01 lsphp5:/usr/local/lsws/DEFAULT/html/web4/browse.php
nobody 30446 30322 0 00:39 ? 00:00:00 lsphp5:usr/local/lsws/DEFAULT/html/web2/browse.php
nobody 30485 30322 0 00:39 ? 00:00:00 lsphp5
nobody 30568 30323 0 00:39 ? 00:00:02 lsphp5:/usr/local/lsws/DEFAULT/html/web4/browse.php
nobody 30613 30323 0 00:39 ? 00:00:02 lsphp5:/usr/local/lsws/DEFAULT/html/web4/browse.php
nobody 30666 30323 0 00:39 ? 00:00:00 lsphp5:usr/local/lsws/DEFAULT/html/web2/browse.php
nobody 30811 30323 0 00:39 ? 00:00:01 lsphp5:usr/local/lsws/DEFAULT/html/web11/browse.php
nobody 31106 30322 0 00:40 ? 00:00:00 lsphp5
nobody 31113 30322 0 00:40 ? 00:00:00 lsphp5
nobody 31647 30323 0 00:41 ? 00:00:01 lsphp5:usr/local/lsws/DEFAULT/html/web2/browse.php
nobody 31750 30323 0 00:41 ? 00:00:00 lsphp5:usr/local/lsws/DEFAULT/html/web2/browse.php
nobody 32032 30322 0 00:41 ? 00:00:00 lsphp5:/usr/local/lsws/DEFAULT/html/web4/browse.php
nobody 32084 30323 0 00:41 ? 00:00:00 lsphp5:usr/local/lsws/DEFAULT/html/web3/browse.php
nobody 32369 30322 0 00:42 ? 00:00:00 lsphp5
nobody 32431 30322 0 00:42 ? 00:00:00 lsphp5
nobody 32460 30322 0 00:42 ? 00:00:00 lsphp5
Code:
[root@localhost ~]# ps -ef|grep litespeed
root 1512 29339 0 00:44 pts/0 00:00:00 grep litespeed
root 30320 1 0 Sep16 ? 00:00:00 litespeed (lshttpd)
nobody 30322 30320 0 Sep16 ? 00:00:11 litespeed (lshttpd)
nobody 30323 30320 0 Sep16 ? 00:00:19 litespeed (lshttpd)
like this...
|

09-17-2011, 04:41 AM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,217
|
|
got it -- so php not in suExec mode, but in Self Managed Mode.
please increase max connections of lsphp5(default is 35), especially when you have a lot of memory. see if any improvement.
Server->External App->lsphp5
Max Connections: 35 --> 100 (for example)
Environment: PHP_LSAPI_CHILDREN=35 -> 100
note: above 2 values should match.
refer: http://www.litespeedtech.com/php-litespeed-sapi.html
'To start PHP in Self Managed Mode, "Instances" should be set to "1", while "LSAPI_CHILDREN" environment variable should be set to match the value of "Max Connections" and >1'
|

09-17-2011, 05:21 AM
|
|
Member
|
|
Join Date: Sep 2011
Posts: 12
|
|
I've followed your advice
Code:
Max Connections 100
PHP_LSAPI_MAX_REQUESTS=500
PHP_LSAPI_CHILDREN=100
but I do not see any improvement,...if "Req in Processing" enlarged, IP in the vhost will be very slow in opening, I even tried to check my ip with website uptime checker and sometimes it failed, but when "req in processing" is reduced, website load time back to normal, the problem if at the time busy.....
|

09-17-2011, 09:40 AM
|
|
Member
|
|
Join Date: Sep 2011
Posts: 12
|
|
|
i think that's not the problem, as I said, before I install LiteSpeed I use apache, and I use 10 Mbps unmetered dedicated servers...
is there a way out of this, do I have to install apache first to import config to litespeed or what...any idea?
thanks
|

09-17-2011, 09:50 AM
|
|
LiteSpeed Staff
|
|
Join Date: Sep 2009
Posts: 2,217
|
|
|
may be no difference. but you can have a try, so that you can switch to apache easily to compare with litespeed.
|
| 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 06:35 PM.
|
|