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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > [RESOLVED]Slow + Random Downloading

Reply
 
Thread Tools Display Modes
  #1  
Old 01-04-2010, 01:51 PM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
Question [RESOLVED]Slow + Random Downloading

Trying to run Redmine using the Ruby LSAPI (suexec) and seeing some strange things. This copy of Litespeed does not run any control panel or anything like that uses lsws configs directly and all that.

So what happens is two people view it or just one person going through pages at a moderate rate and it starts asking to download the files at random. If it's not that the pages seem extremely slow. Tried upping the number of connections, removing max idle time everything makes no difference.

What is really strange is with a max connections of 5 real time stats only ever says there is 1 ruby external app. Checking the process list though there are two running.

So any idea's? Tried default configs tried tweaking from various posts seems to make no difference. It's almost like it refuses to use the other ruby processes except the original one.
__________________
Hawk Host
Frog Host

Last edited by NiteWave; 01-25-2010 at 07:05 PM..
Reply With Quote
  #2  
Old 01-05-2010, 11:54 AM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
Upgrading to 4.0.12 resolved the random downloading issue and slowness. I still don't understand what is going on with the real time stats. Have none running but process list shows one. So it seems to always have one but based on tracing the process it never serves a single ruby request? A new one is spawned and serves the requests rather than the one running. Very strange
__________________
Hawk Host
Frog Host
Reply With Quote
  #3  
Old 01-05-2010, 12:47 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Start a fresh ruby process is very expensive, so it is not a good idea to let ruby process die frequently. Instead, LiteSpeed will keep one ruby process running, when new request comes, it will fork a child process to serve the request, and the child process quit after idling for a while. When multiple request comes in at the same time, the parent ruby process can fork multiple ruby processes immediately to serve all requests. That's the reason why parent ruby process does not serve any request directly.
Reply With Quote
  #4  
Old 01-05-2010, 01:10 PM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
That makes sense I would not even have noticed that except for the other issues. 4.0.12 fixes things and now Ruby runs great :-) No noted fixes for the issue we experienced but no big deal things some times get fixed inadvertly anyways.
__________________
Hawk Host
Frog Host
Reply With Quote
  #5  
Old 01-21-2010, 12:10 PM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
Well 4.0.12 seems to have fixed the non SSL version but if we use SSL version we get prompted to download at random. I have no idea what causes it nothing in the logs as far as I can tell? It's very odd the only difference between non SSL and SSL is a different listener they share the same vhost. Any idea's?
__________________
Hawk Host
Frog Host
Reply With Quote
  #6  
Old 01-21-2010, 12:51 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
random download prompt may indicate the server crashed, or, the SSL connection was cut off for some reason.
Reply With Quote
  #7  
Old 01-24-2010, 10:56 AM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
Well the server runs fine besides the SSL. It also is doing exactly what it did in 4.0.11 when SSL was not even being used. Upgraded to 4.0.12 and the non SSL version started working fine. This is what we get prompted to download:

Code:
HTTP/1.1 200 OK
Content-Encoding: gzip
Vary: Accept-Encoding
Transfer-Encoding: chunked
Date: Sun, 24 Jan 2010 18:52:55 GMT
Server: LiteSpeed
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
Content-Type: text/html; charset=utf-8
Set-Cookie: _redmine_session=207da0c00f02c63e222a19f1b24b4569; path=/
ETag: "699c39b272fae967cd13c71726b8aee8"
X-Runtime: 0.02846
Cache-Control: private, max-age=0, must-revalidate
There is a bit of gibberish above and below. Can't paste it into here though
__________________
Hawk Host
Frog Host

Last edited by Tony; 01-24-2010 at 10:58 AM..
Reply With Quote
  #8  
Old 01-25-2010, 09:24 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Let us check the URL producing the error if possible.
Reply With Quote
  #9  
Old 01-25-2010, 11:38 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Updated 4.0.12 to address this issue. Please do a "force reinstall" from web console.
Reply With Quote
  #10  
Old 01-25-2010, 12:45 PM
Tony Tony is offline
Senior Member
 
Join Date: Dec 2008
Posts: 133
Quote:
Originally Posted by mistwang View Post
Updated 4.0.12 to address this issue. Please do a "force reinstall" from web console.

Yep fixed it

Thanks!
__________________
Hawk Host
Frog Host
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:01 AM.



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