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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > slow result

Reply
 
Thread Tools Display Modes
  #11  
Old 11-03-2006, 01:55 PM
shadowlight shadowlight is offline
Member
 
Join Date: Nov 2006
Posts: 19
Hi,

eaccelerator is install now.

I will create you an admin account as you can review my setting and maybe optimise it a little more.


Our goal like i said is to provide 150 000 customers nearly. We currently have 50 000 customers. We are constantly with 1000 user at the same time with average of 80 request seconds.


Let me know how i can communicate with you for the admin account.


Thank you,
Reply With Quote
  #12  
Old 11-03-2006, 02:01 PM
shadowlight shadowlight is offline
Member
 
Join Date: Nov 2006
Posts: 19
Hi,

I found that i have as much request processing as I have php process.


Plain SSL Max Idle Plain SSL
In Out In Out Used Avail Used Avail
22 94 0 0 2,000 14 77 1,923 0 400

Request Rate
Scope Requests in Processing Request/Second
Server 63 55
www.ixxxxxx 63 54
ApacheMain 0 0
_AdminVHost 0 1

External Apps
Scope Type Name Max CONN Eff Max Pool In Use Idle WaitQ Req/Sec
Server LSAPI phpLsapi 200 200 200 60 140 0 50


Does it means, each connect will use one phpLsapi connector ?



Thank you,

Last edited by shadowlight; 11-03-2006 at 11:56 PM..
Reply With Quote
  #13  
Old 11-03-2006, 09:10 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Do not over-tune phpLsapi to start too many php processes, LSWS can pipe-line requests to PHP backend when there are more concurrent requests than number of PHP process. 200 should be the maximum, I recommend you try 50-100 first. Running too many PHP process may use too much memory and slow down the whole server.
Reply With Quote
  #14  
Old 11-07-2006, 01:17 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
For some perspective, PHP process/children value of 20-40 is more than enough to handle millions of php pages per day provided your code is properly tuned. Setting PHP processes to a high value only if your backend/database can support that many concurrent connections and still be fast. There is no point setting PHP process pool to 100 if your mysql server will die at 50 concurrent connections.
Reply With Quote
  #15  
Old 11-07-2006, 06:55 AM
shadowlight shadowlight is offline
Member
 
Join Date: Nov 2006
Posts: 19
Currently, my MySQL database is running on the same server as my litespeed daemon. With apache, i setuped my mysql to 500 connections up to 1024. it were working but I had few error about mysql cannot connect. with 100 as value for lsapiphp i had no error of this kind. Than it should be fine for now.
Reply With Quote
  #16  
Old 11-07-2006, 12:30 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
For performance reasons, you need to increase "thread_cache" entry for mysql config, my.cnf, and decrease mysql's max_connection item. Unless you have a super fast disk i/o on quad core server with no table/db locking, 500 mysql connections will instantly bring your server to its knees.
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 03:45 PM.



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