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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > Max-connections is always one more than it should be, 2 if you include the parent

Reply
 
Thread Tools Display Modes
  #1  
Old 04-24-2007, 09:22 AM
fantasydreaming fantasydreaming is offline
Senior Member
 
Join Date: Sep 2006
Posts: 76
Default Max-connections is always one more than it should be, 2 if you include the parent

I.e. I have max-processes: 2, but ps auxxf shows 3 child processes under each parent process. The web console also shows '3 processes', '3 idle'.

Also, when it's doing the "Emergency" extra spawns to handle load, the admin interface seems to only show the max-processes as exisitng, when it's really 2* that number that have been loaded.

kevin 25317 0.7 2.8 96188 58652 ? SNs 11:13 0:03 \_ rails storywrite
kevin 25333 3.4 3.1 103956 65632 ? SN 11:13 0:16 | \_ rails storywrite
kevin 25334 5.5 3.5 111240 72948 ? SN 11:13 0:27 | \_ rails storywrite
kevin 25335 3.7 3.7 115644 77024 ? SN 11:13 0:18 | \_ rails storywrite
Reply With Quote
  #2  
Old 04-24-2007, 10:22 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Are you using 2CPU enterprise? The server should not increase the max connection on its own. Which version of LSWS are you using? Maybe should upgrade to the latest one if not yet.

Is it possible for me to login your server and take a look? If yes, please PM me a temp login.

Quote:
Also, when it's doing the "Emergency" extra spawns to handle load, the admin interface seems to only show the max-processes as exisitng, when it's really 2* that number that have been loaded.
That's normal, because the server will only try to make that number of connections to the backend, the backend fork extra processes on its own, the server has no idea about what happened.
Reply With Quote
  #3  
Old 04-24-2007, 10:25 AM
fantasydreaming fantasydreaming is offline
Senior Member
 
Join Date: Sep 2006
Posts: 76
I upgraded to the latest update (today, 3.02? or .03) just to make sure it wasn't fixed already.

1cpu non-enterprise, rails easy setup.

Sorry, the server is secure, so we can't create temporary logins I can check anything specific for you if you want though.

This should be pretty easy to reproduce with an easy rails setup that does a sleep(5) call or something, then pound it with ab..
Reply With Quote
  #4  
Old 04-24-2007, 12:47 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
OK, we reproduced the problem. Please download and try ruby-lsapi 2.4 package:
http://www.litespeedtech.com/package...api-2.4.tar.gz

An new environment variable LSAPI_EXTRA_CHILDREN has been added, please check the README file.
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 04:40 PM.



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