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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Cache problem

Reply
 
Thread Tools Display Modes
  #11  
Old 10-01-2008, 01:18 PM
palb palb is offline
Senior Member
 
Join Date: Jul 2007
Posts: 143
One more thing to why I suspect LS. When running on LS I can't save a new image to the server on a page just rendered in the browser as it's "busy" or "in use". Also annoying. That is never an issue in other situations, including running the site with WEBrick.
Reply With Quote
  #12  
Old 10-01-2008, 01:21 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
If LS cache the response for previous request, it will not forward new request to rails, just reply with cached result. If LS forward a request to rails, LS will just relay the response from rails. There is no third possibility. LSWS still serve requests exactly the same way during a graceful restart.

So, please check the rails development log see if the request hits rails or not, if LS does not forward the request then we can investigate why LS cache the request. Also check LSWS access log to make sure the request really hit LSWS or not.
Reply With Quote
  #13  
Old 10-01-2008, 01:26 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Quote:
Originally Posted by palb View Post
One more thing to why I suspect LS. When running on LS I can't save a new image to the server on a page just rendered in the browser as it's "busy" or "in use". Also annoying. That is never an issue in other situations, including running the site with WEBrick.
It is more likely a permission issue as LS start the backend in suEXEC mode. Or a process memory limit issue, you have to check Rails log and LSWS error logs to find out why.
Reply With Quote
  #14  
Old 10-01-2008, 02:01 PM
palb palb is offline
Senior Member
 
Join Date: Jul 2007
Posts: 143
Quote:
Originally Posted by mistwang View Post
It is more likely a permission issue as LS start the backend in suEXEC mode. Or a process memory limit issue, you have to check Rails log and LSWS error logs to find out why.
Not sure what to look for in the log. In either case, what can I do to prevent LS to have this behavior
Reply With Quote
  #15  
Old 10-01-2008, 02:22 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Quote:
Originally Posted by palb View Post
Not sure what to look for in the log.
Anything abnormal, errors, exceptions.

Quote:
In either case, what can I do to prevent LS to have this behavior
I don't have an answer due to insufficient information available. You have to check those log files.
Reply With Quote
  #16  
Old 10-01-2008, 02:45 PM
palb palb is offline
Senior Member
 
Join Date: Jul 2007
Posts: 143
Quote:
Originally Posted by mistwang View Post
Anything abnormal, errors, exceptions.


I don't have an answer due to insufficient information available. You have to check those log files.
Hmm. Do you mean that it's not a normal LS behavior? If it's LS then what could you imagine I should look for more specifically? I mean it must be LS doing something. There's nothing else involved. Well Rails, but it's ok when using WEBrick or mongrel. The behavior is the same on my local machine/LSWS and the server I use (with LSWS).
Reply With Quote
  #17  
Old 10-01-2008, 03:29 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Quote:
what could you imagine I should look for more specifically?
Answer has been given.

Quote:
So, please check the rails development log see if the request hits rails or not, if LS does not forward the request then we can investigate why LS cache the request. Also check LSWS access log to make sure the request really hit LSWS or not.
Quote:
I mean it must be LS doing something. There's nothing else involved. Well Rails, but it's ok when using WEBrick or mongrel. The behavior is the same on my local machine/LSWS and the server I use (with LSWS).
LSWS run Rails in different way, including suEXEC, process memory limit, fork children process, limited environment variable passed to ruby process, etc. those difference could make Rails behave differently.

We cannot help you if you do not follow our instrcution to provide more information.
Reply With Quote
  #18  
Old 10-01-2008, 04:38 PM
palb palb is offline
Senior Member
 
Join Date: Jul 2007
Posts: 143
Quote:
Originally Posted by mistwang View Post
Answer has been given.





LSWS run Rails in different way, including suEXEC, process memory limit, fork children process, limited environment variable passed to ruby process, etc. those difference could make Rails behave differently.

We cannot help you if you do not follow our instrcution to provide more information.
I understand. It's a bit difficult when I don't know what to look for. On the other hand I believe it must be a good clue that LS obviously "get hold" of the particular file and occupy it so it's impossible to overwrite it, for a while. You know what LS does that occupies the file, I don't.
Reply With Quote
  #19  
Old 10-01-2008, 08:18 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Quote:
Originally Posted by palb View Post
I understand. It's a bit difficult when I don't know what to look for.
Check access log file to see if a request has been received should be easy enough.

Quote:
On the other hand I believe it must be a good clue that LS obviously "get hold" of the particular file and occupy it so it's impossible to overwrite it, for a while. You know what LS does that occupies the file, I don't.
No, LS does not and could not prevent some one to overwrite a file. The fact is that LSWS does not open those "*.rhtml" files, not even aware the existence of those files.

If you want to have this problem solved, you have to stop speculating and follow our direction to diagnose it, otherwise, you are on your own.
Reply With Quote
  #20  
Old 10-01-2008, 09:58 PM
palb palb is offline
Senior Member
 
Join Date: Jul 2007
Posts: 143
Quote:
Originally Posted by mistwang View Post
Check access log file to see if a request has been received should be easy enough.


No, LS does not and could not prevent some one to overwrite a file. The fact is that LSWS does not open those "*.rhtml" files, not even aware the existence of those files.

If you want to have this problem solved, you have to stop speculating and follow our direction to diagnose it, otherwise, you are on your own.
The access is registered, yes. Both in rails log and server log. However, the server log debug says so much that I don't know what to say. I guess the request is there, yes.

Sorry to say but LS does prevent a file from being overwritten. It's no question about it. This is only when LS is running. That's why I wonder what it does to keep the file "busy". I have never seen this in other servers I know of. If we depart from that; what is happening behind the scene between the browser and LS that makes the file being busy, for a while?
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:07 AM.



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