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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > SIGUSR1 killing running rails requests

Reply
 
Thread Tools Display Modes
  #1  
Old 12-12-2006, 05:40 AM
dsmalley dsmalley is offline
New Member
 
Join Date: Dec 2006
Posts: 3
Default SIGUSR1 killing running rails requests

Since tweaking our setup to get Rails running using dispatch.lsapi we are getting lots of SIGUSR1 errors messages produced in our app.

They appear to be produced whenever a request results in a large dataset being returned.

Can anyone point me in the direction of the configuration settings that can stop these errors occuring? My first thoughts were to raise the memory limits on our processes but this doesn't seem to have stopped them.

Is there any other information I can supply to help diagnose this problem?
Reply With Quote
  #2  
Old 12-12-2006, 07:40 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Please check your "Max Idle time" under "ruby" tab. Leave it not set or increase it.
Reply With Quote
  #3  
Old 12-12-2006, 07:51 AM
dsmalley dsmalley is offline
New Member
 
Join Date: Dec 2006
Posts: 3
Max Idle time had a value of "0" in it, I've now changed that to be blank and applied changes.

In reading some other threads I noticed that ruby-lsapi has been upgraded a few times, when i do a "gem list" on the production box I get a version number of... "ruby-lsapi (1.11)"

Is there an upgrade that would help?
Reply With Quote
  #4  
Old 12-12-2006, 08:13 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
1.11 is the latest.
Reply With Quote
  #5  
Old 12-12-2006, 08:39 AM
dsmalley dsmalley is offline
New Member
 
Join Date: Dec 2006
Posts: 3
Yes, I just took a look and realised that.

What settings can I play around with here to try and resolve the problem, I changed the Max Idle time but we're still getting SIGUSR1 errors.

Soft/hard memory limits are set to 80mb/100mb respectively.
Max connections is set to 10
Initial timeout is 120
Retry timeout is 60
Connection keep-alive timeout is 1000
Backlog is 100
Instances is 1
Process soft limit is 200
Process hard limit is 250

Thanks
Reply With Quote
  #6  
Old 12-12-2006, 09:19 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Why not use our easy rails setup, check out the wiki.
Reply With Quote
  #7  
Old 12-12-2006, 06:30 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Like mistwang said, we definitely recommend using our easy raills setup outlined in our wiki. It will make your life a lot easier.

From the looks of it, your Soft/hard memory limits are set way to low if you expect your scripts to return large buffered db data sets. If you are returning 30K rows containing blobs, I'm just throwing out a relative figure, you can easily exhaust this value. Remember, this is not a "Per Ruby/Rails Process" limit but the limit for all the ruby rail processed spawned total.
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 06:33 PM.



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