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

Go Back   LiteSpeed Support Forums > External Applications > Ruby/Rails > Verifying RoR + LSAPI is working?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-12-2007, 12:09 AM
dfberg dfberg is offline
New Member
 
Join Date: Jan 2007
Posts: 4
Default Verifying RoR + LSAPI is working?

How can I tell if my RoR app is actually using lsapi?

I'm new litespeed and trying to get an alternative, hopefully easier to manage setup than Apache/Mongrel. Following the wiki I got my Rails app setup using the the "easy setup" and then followed the other wiki guide through the steps to setup the lsapi context and use dispatch.lsapi.

When loading just the default RoR page both setups seem to take the same amount of time so I it didn't feel like the lsapi setup was any different/better. Maybe I'm foolish for expecting to see a difference just with the default page but it led me to wonder if I even setup the lsapi context correctly. How can I tell? Also what method does the easy setup use, vanilla cgi?
Reply With Quote
  #2  
Old 01-12-2007, 10:54 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
If there is something in lsws/logs/stderr.log like: .../lsapi.so: warning: already initialized constant ENV you rails application is powered by LSAPI now.
You may feel the first request is still pretty slow, that's because the RoR framework need to initialization for the first request, it is slow, you can set
Run On Start Up: Yes If you have not.

You will notice big differences when you server is under load, especially when there are cached pages.

We do not use CGI, we use our LSAPI protocol, which is similar to FCGI, more better optimized for performance.
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:14 PM.



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