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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Getting Lots of Ruby Processes

Reply
 
Thread Tools Display Modes
  #31  
Old 09-15-2006, 11:01 AM
jp_n9 jp_n9 is offline
Member
 
Join Date: Sep 2006
Posts: 38
I reset the "Max Connections" under the "Rails" tab to 3. I restarted, and a few hours later I now have 12 ruby processes. This is kind of crazy.

Under the "Security" tab there is a setting "Max CGI Instances" which is left at the original 20. Could that or anything else be causing this issue?

Any other ideas?
Reply With Quote
  #32  
Old 09-15-2006, 11:09 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
"Max CGI instances" does not matter.
If possible, please PM me temp root access and admin for LSWS web interface to your server, I'd like to take a look.
Reply With Quote
  #33  
Old 09-15-2006, 02:28 PM
amalik amalik is offline
Member
 
Join Date: Aug 2006
Posts: 18
Can you post to this thread what the problems was when it is resolved?

thanks,

Amr
Reply With Quote
  #34  
Old 09-15-2006, 04:08 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
OK, caught the bug on jp_n9's server, it only happens when ruby processes are started in suEXEC mode, user id is different from that of web server, and "max_idle_time" under "Rails" tab has been set.

When there is no request to ruby process for "max_idle_time", LSWS will try to kill this process group, but failed due to permission problem, but LSWS think the process group has been killed, when next request comes in, LSWS will start another group of ruby process, and so on.

I have updated ruby-lsapi-1.8 package to address this issue, please update your installation then and add an environment variable "LSAPI_PGRP_MAX_IDLE=xxx" under "Rails" tab to tell the ruby process to quit, the value should match "max idle time" value under rails tab.

We will fix this problem on LSWS side as well in 2.2.2, by finding a workaround for the permission problem of killing suEXEC processes, as well as setting "LSAPI_PGRP_MAX_IDLE" automatically.
Reply With Quote
  #35  
Old 09-15-2006, 07:13 PM
jp_n9 jp_n9 is offline
Member
 
Join Date: Sep 2006
Posts: 38
Quote:
Originally Posted by mistwang View Post
OK, caught the bug on jp_n9's server, it only happens when ruby processes are started in suEXEC mode, user id is different from that of web server, and "max_idle_time" under "Rails" tab has been set.

Did you fix this bug on my server? Because I just checked and there are 14 processes right now.

If you didn't fix it, what do I need to do?
Reply With Quote
  #36  
Old 09-15-2006, 08:37 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
No, I did not. You need to download ruby-lsapi-1.8 package and install it again and add an environment variable "LSAPI_PGRP_MAX_IDLE=xxx" under "Rails" tab to tell the ruby process to quit, the value should match "max idle time" value under rails tab.
Reply With Quote
  #37  
Old 09-17-2006, 07:54 AM
amalik amalik is offline
Member
 
Join Date: Aug 2006
Posts: 18
mistwang, thanks for posting it back here. Hopefully we'll get the gem soon enough. I'm just going to keep killing the processes as it is in dev anyway.

thanks,

Amr
Reply With Quote
  #38  
Old 09-18-2006, 10:12 AM
jp_n9 jp_n9 is offline
Member
 
Join Date: Sep 2006
Posts: 38
Well the server has been left unchecked all weekend, and today I only have one Ruby process running. Looks like it worked. Thanks!
Reply With Quote
  #39  
Old 09-18-2006, 11:18 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Thank you for the update, we will release LSWS 2.2.2 and ruby LSAPI 1.8 soon.
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
Setup for Rails via Litespeed Ruby LSAPI Justin Ruby/Rails 2 12-08-2007 07:19 PM
Ruby LSAPI 2.4 and PHP LSAPI 3.1 released mistwang News 0 04-24-2007 03:35 PM
Keep ruby RailsRunner.rb's running all the time? inspirix Install/Configuration 3 04-05-2007 01:19 PM
Expected memory usage? subBlue Install/Configuration 4 10-20-2006 02:39 PM
Ruby LSAPI 1.6 Released xing News 0 08-22-2006 11:23 AM


All times are GMT -7. The time now is 06:01 AM.



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