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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Frequent applicaiton errors on first page load

Reply
 
Thread Tools Display Modes
  #1  
Old 01-31-2007, 08:40 AM
Brandon Brandon is offline
Member
 
Join Date: Nov 2006
Posts: 10
Default Frequent applicaiton errors on first page load

I'm pretty sure something configured correctly. When the server is under a steady load, rails responses are very fast. When there are 60 or so seconds between requests, then it takes a few seconds to get a rails response and often times you get an application error on the first response.

I can see there is always one ruby process in memory, so I assume thats related to litespeed. As new requests come in then more ruby process are created (as expected), but they stop running a few seconds after the requests start coming in.

I set up the applicaiton with the Easy Rails template, and the server Rails settings are all at the default.

Which settings do I need to change so it will hold these ruby processes in memory longer. Right now Initial Request Timeout set to 60 and Max Connections set to 10. Should I up the Initial Request Timeout? I wasn't sure because I think that means "how long to I wait for a particular client before I call it a day" kind of thing.

Thanks.
Reply With Quote
  #2  
Old 01-31-2007, 10:52 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
There are a few environment variables you can play with to make children ruby process live longer. Please check the README file in ruby-lsapi directory under the gem directory if you installed it via gem.
Or you can download the ruby-lsapi package from our web site.

Answers to your questions should be in the README already.
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 05:50 PM.



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