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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > errors while using memcache under heavy load

Reply
 
Thread Tools Display Modes
  #1  
Old 01-23-2007, 10:16 PM
cswilliams cswilliams is offline
Member
 
Join Date: Jan 2007
Posts: 24
Default errors while using memcache under heavy load

Hi,
I'm running httperf with the following settings:
httperf --server localhost --uri /accounts/register --num-conn 5000 --num-call 10 --rate 200 --timeout 5

Most pages work fine. I get a pretty high number of connection resets but I guess thats because my copy is limited to 300 connections?
Anyway, when I run this on a page that uses memcache, it runs ok for awhile, then all of a sudden I start seing this in the stderr.log:
fork() failed, please increase process limit: Resource temporarily unavailable
Also this shows up many times as well:
/lsws/fcgi-bin/RailsRunner.rb:11:in `accept': SIGUSR1 (SignalException)
from /lsws/fcgi-bin/RailsRunner.rb:11

I saw some other posts where it was suggested to increase the process limit, I increased it to 200 but this did not help.

I must also mention this page loads fine if I go to it in a browser and seems to talk to memcache correctly as well.

Any help would be appreciated.

Thanks,
Chris
Reply With Quote
  #2  
Old 01-23-2007, 10:29 PM
cswilliams cswilliams is offline
Member
 
Join Date: Jan 2007
Posts: 24
Ok, I got rid of the fork() errors by increasing the process limit by another 100. I still get several SIGUSR1 exceptions though. I tried taking some of the steps in the other posts that was suggested such as increasing the memory (i made it 1000M) and left the max idle time blank, however I still get the exceptions.
Reply With Quote
  #3  
Old 01-24-2007, 09:47 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Nothing to worry about the SIGUSR1, it either send by LSWS or the parent ruby process for various reasons, like LSWS restarts, all ruby processes started by it will be stoped. It should not affect normal Rails services in any way.
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 09:56 PM.



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