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
  #11  
Old 09-12-2006, 08:07 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
Even still, it would seem that something was wrong if it keeps spawning new processes when at most two users are ever accessing it at once (most likely only one at a time).
Yes, that true. LSAPI 1.7 should do much better job.
Reply With Quote
  #12  
Old 09-12-2006, 09:23 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
We improved the process manager in LSAPI, the spawning extra processes problem should be fixed completely.
You can try LSAPI 1.8 at http://www.litespeedtech.com/package...api-1.8.tar.gz .
Reply With Quote
  #13  
Old 09-13-2006, 05:54 AM
jp_n9 jp_n9 is offline
Member
 
Join Date: Sep 2006
Posts: 38
Quote:
Originally Posted by mistwang View Post
We improved the process manager in LSAPI, the spawning extra processes problem should be fixed completely.
You can try LSAPI 1.8 at http://www.litespeedtech.com/package...api-1.8.tar.gz .
Ok. I downloaded and installed the patch.

In the Rails tab, the Environment setting includes the value:

LSAPI_MAX_REQS=1000

Does that need to be lowered too, or is that OK?

Also, is there any way to verify the version of LiteSpeed or LSAPI installed on a system - just to make sure everything installed correctly? Thanks!

Hopefully the 1.8 will do the trick, because the system had spawned crazy processes again last night.
Reply With Quote
  #14  
Old 09-13-2006, 10:11 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
In the Rails tab, the Environment setting includes the value:

LSAPI_MAX_REQS=1000

Does that need to be lowered too, or is that OK?

No need to lower it.
Web admin interface or the error log file has the version number of LSWS.
"gem list" will show the LSAPI version if installed through RubyGem, if installed manually, you should know it. ;-)
Reply With Quote
  #15  
Old 09-13-2006, 11:11 AM
jp_n9 jp_n9 is offline
Member
 
Join Date: Sep 2006
Posts: 38
Quote:
Originally Posted by mistwang View Post
No need to lower it.
Web admin interface or the error log file has the version number of LSWS.
"gem list" will show the LSAPI version if installed through RubyGem, if installed manually, you should know it. ;-)
When will the ruby-lsapi gem be online for auto installation?

Also, any word on when the Capistrano wiki How-To will be available?
Reply With Quote
  #16  
Old 09-13-2006, 11:26 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
After we belive that the too much ruby process problem has been truely fixed.
Reply With Quote
  #17  
Old 09-13-2006, 01:07 PM
amalik amalik is offline
Member
 
Join Date: Aug 2006
Posts: 18
Quote:
Originally Posted by mistwang View Post
We improved the process manager in LSAPI, the spawning extra processes problem should be fixed completely.
You can try LSAPI 1.8 at http://www.litespeedtech.com/package...api-1.8.tar.gz .
1.7 barfed all over itself last night. I woke up this morning and it had been spawning until I think it ran out of memory. I have 18 rubly lsap and 3 lsphp (didn't have this prob before) sitting there. 1.21 maybe contributing to it?

I dunno.

I'll try the 1.8 lsapi and see how that goes. Thanks.
Reply With Quote
  #18  
Old 09-13-2006, 01:14 PM
amalik amalik is offline
Member
 
Join Date: Aug 2006
Posts: 18
Regarding 1.8, do you recommend building a gem and then installing or just use setup.rb? I'm wondering if this will interfere with a gem-only strategy I've been following.

thanks,
Reply With Quote
  #19  
Old 09-13-2006, 02:10 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
The problem should be mainly in
gem package will be available when we officially announce this release.
Yes, packages installed via gem and setup.rb may interfere with each other, remove the other one when switch the package. I think the gem one may has lower priority, not 100% sure.

Be careful not to over configure your rails application like setting "max connections" to 100 when you hardware cannot take 100 ruby processes.
Reply With Quote
  #20  
Old 09-14-2006, 10:08 AM
jp_n9 jp_n9 is offline
Member
 
Join Date: Sep 2006
Posts: 38
Ok. I downloaded and installed LSAPI 1.8 as instructed in the README:

ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install

Is that it?

It would be nice to be able to run something like "lsws -v" and have LiteSpeed verify what versions are being used of both the server and LSAPI.top

I don't recall seeing anything in the instructions, but is there any need to modify any files within the individual Rails applications?

Last edited by jp_n9; 09-14-2006 at 10:09 AM.. Reason: Typo
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 04:00 AM.



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