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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > Bug ? or low performance ?.....

Reply
 
Thread Tools Display Modes
  #1  
Old 03-05-2005, 10:09 AM
MagicMike MagicMike is offline
New Member
 
Join Date: Mar 2005
Posts: 8
Default Bug ? or low performance ?.....

Sorry to bother but i have serious performance issues ......
here's my config:
1.Webserver:
Pentium 4 HT 3.00GHZ
2G RAM
80GHD
SuseLinux9.1
2. Sqlserver:
Pentium 4 HT 3.00GHZ
1G RAM80G HD (2x40G raid0)
SuseLinux9.2

I am using apache2 2.0.52
having a PHPNUKE site with around 35000 members
Online around 300-500users at once
Performance is LOUSY and very slow !


Here's what i did:

I installed and configured your webserver according to instructions
copied the phpnukefiles over to the DEFAULT/html dir (running on
port 8088 ! (running well there
changed the mmcache config (in php.ini) that it would enable the optimizer !
(its off by default ?? )
stopped and started lsws by typing /opt/lsws/bin/lswsctrl stop|start
(checked that everything was running as it used to be !)
switched off apache2 (rcapache2 stop)
then changed the port from 8088 to 80
restarted ( like listed above) lsws !

after a few minutes (around 5 or so) the performance of your webserver goes down ? Drastically !
Until the webpage wasnt reachable anymore (no errors but endless waiting time...)

(i have a some users online at once so.....)

after that experience i stopped lsws and started apache2 again

Its slow (very slow on weekends ) but everyone can access the pages

what did i do wrong ?

regards MIKE
Reply With Quote
  #2  
Old 03-05-2005, 03:03 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
I think it is not configured properly, and I need more information to identify the problem, output of "top", "netstat -an | grep ESTABLISHED",
and content of lsws/logs/error.log lsws/logs/stderr.log, Real time report page in admin interface.

If you can make the admin interface available to me, I can take a look.

There are some configuration you need to tune for the best performance in production environment:
Turn on "Smart Keepalive", set "Connections soft limit per client" to "10",
Also turn off MySQL persistent connection in php.ini
Reply With Quote
  #3  
Old 03-08-2005, 03:30 AM
MagicMike MagicMike is offline
New Member
 
Join Date: Mar 2005
Posts: 8
Quote:
Originally Posted by mistwang
, set "Connections soft limit per client" to "10",
I guess that does the trick...server load does not go over 0.5 !!

lets see how it will do this night when more users are online at the same time

thanks
Reply With Quote
  #4  
Old 03-08-2005, 07:44 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You are welcome. :-)

"Connection limits" are helpful with server load, but I think it is not the cause of the site slow down & hanging problem.
The problem should be caused by the persistent connection from PHP to MySQL, deadlock happens, and eventually all PHP processes hang there doing nothing. We saw it happened on many sites.

Please keep us posted. :-)
Reply With Quote
  #5  
Old 03-08-2005, 09:16 AM
MagicMike MagicMike is offline
New Member
 
Join Date: Mar 2005
Posts: 8
Quote:
Originally Posted by mistwang
You are welcome. :-)

"Connection limits" are helpful with server load, but I think it is not the cause of the site slow down & hanging problem.
The problem should be caused by the persistent connection from PHP to MySQL, deadlock happens, and eventually all PHP processes hang there doing nothing. We saw it happened on many sites.

Please keep us posted. :-)
sorry that wasnt the case here
NO persistent connection were made (this would render the sqlserver useless after some time of using it *g* )
I am affraid that i am not using it right now :-(
i have a new problem with it some (not all ???) users get a scrambled page (regardless of browser or OS) looks like the gzip compression of somehow messed up ? (either thru configuration or on my webserver)

I had this issue once in cooperation with mmcache !

i will investigate

regards Mike
Reply With Quote
  #6  
Old 03-08-2005, 09:21 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
If you are using "epoll" event dispatcher, you should switch to "poll".
Reply With Quote
  #7  
Old 03-08-2005, 09:28 AM
MagicMike MagicMike is offline
New Member
 
Join Date: Mar 2005
Posts: 8
Quote:
Originally Posted by mistwang
If you are using "epoll" event dispatcher, you should switch to "poll".
send you a pm check please
Reply With Quote
  #8  
Old 03-08-2005, 10:17 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
It is caused by mmcache + gzip compression in PHP, try turning off compression in PHP and clearing mmcache disk cache.
Consider using eAccelerator instead.
Reply With Quote
  #9  
Old 03-11-2005, 02:57 AM
MagicMike MagicMike is offline
New Member
 
Join Date: Mar 2005
Posts: 8
Using eaccelerator and it works like a charm
not THAT fast as i thought it would be but...if you can squeese some
more performance out of it your are free to try....its life and online now with
lightspeed webserver

(send you a pm with the details the other day )

thanks for your help

MIKE
Reply With Quote
  #10  
Old 03-11-2005, 09:57 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
The bottle neck is in PHP, the faster PHP runs, the bigger performance difference with litespeed will be.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
performance sofatime PHP 8 06-29-2007 03:15 AM
recommended rails performance tuning Tomh Ruby/Rails 2 11-23-2006 03:02 PM
Performance tuning - php 4/apc/lsapi bazza PHP 3 08-22-2006 06:21 AM
Best performance - which technique? fryk Install/Configuration 6 06-01-2005 07:54 PM
performance feles Install/Configuration 1 09-25-2004 08:30 PM


All times are GMT -7. The time now is 11:56 AM.



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