Hi everyone, I''m having some trouble understanding what''s going on with my production server. When a page is accessed, sometimes after the page is already displayed (in the log I get a 200 OK message for the entire page), I see tons of requests for 127.0.0.1, and I just can''t understand where they''re coming from. I read a bit about caching and mongrel and I''m starting to think it might have something to do with caching (although I have not specified caching for any of my controllers, in the production.rb it is set to true). The real problem is I have a routing redirect for every request that does not start with www (e.g: user.mysite.com) to be direct to the user/index action. so what happens with those unknown requests is that they too are redirected which is causing heavy load for the webserver for no reason. I can of course work around the issue of the redirection somehow, but i''m more in interested in why it happens. Thanks! Ehud --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Peter De Berdt
2007-May-24 12:35 UTC
Re: request for 127.0.0.1 on remote servers (is it caching?)
On 24 May 2007, at 14:19, Ehud wrote:> I''m having some trouble understanding what''s going on with my > production server. > When a page is accessed, sometimes after the page is already displayed > (in the log I get a 200 OK message for the entire page), I see tons of > requests for 127.0.0.1, and I just can''t understand where they''re > coming from. > I read a bit about caching and mongrel and I''m starting to think it > might have something to do with caching (although I have not specified > caching for any of my controllers, in the production.rb it is set to > true). > > The real problem is I have a routing redirect for every request that > does not start with www (e.g: user.mysite.com) to be direct to the > user/index action. so what happens with those unknown requests is that > they too are redirected which is causing heavy load for the webserver > for no reason. > > I can of course work around the issue of the redirection somehow, but > i''m more in interested in why it happens.Are you using Pound for the load balancing by any chance? Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Nope, I''m running mongrel cluster with apache 2.0... It seems that whenever I try to access a page, after it is generated and sent a lot of other calls are also logged to http://127.0.0.1/ by an unknown source... :) also strange is that the session id of these calls is not the same as the session id of my own user, meaning it is indeed not requests made by me. Any thoughts? Peter De Berdt wrote:> On 24 May 2007, at 14:19, Ehud wrote: > > > I''m having some trouble understanding what''s going on with my > > production server. > > When a page is accessed, sometimes after the page is already displayed > > (in the log I get a 200 OK message for the entire page), I see tons of > > requests for 127.0.0.1, and I just can''t understand where they''re > > coming from. > > I read a bit about caching and mongrel and I''m starting to think it > > might have something to do with caching (although I have not specified > > caching for any of my controllers, in the production.rb it is set to > > true). > > > > The real problem is I have a routing redirect for every request that > > does not start with www (e.g: user.mysite.com) to be direct to the > > user/index action. so what happens with those unknown requests is that > > they too are redirected which is causing heavy load for the webserver > > for no reason. > > > > I can of course work around the issue of the redirection somehow, but > > i''m more in interested in why it happens. > > Are you using Pound for the load balancing by any chance? > > > Best regards > > Peter De Berdt--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
dasil003
2007-May-24 18:51 UTC
Re: request for 127.0.0.1 on remote servers (is it caching?)
Are they requests for images, css and javscript files? Have you looked in the Apache log to correlate the requests? On May 24, 12:45 pm, Ehud <ehud...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Nope, I''m running mongrel cluster with apache 2.0... > It seems that whenever I try to access a page, after it is generated > and sent a lot of other calls are also > logged tohttp://127.0.0.1/by an unknown source... :) > also strange is that the session id of these calls is not the same as > the session id of my own user, meaning it is indeed not requests made > by me. > Any thoughts? > > Peter De Berdt wrote: > > On 24 May 2007, at 14:19, Ehud wrote: > > > > I''m having some trouble understanding what''s going on with my > > > production server. > > > When a page is accessed, sometimes after the page is already displayed > > > (in the log I get a 200 OK message for the entire page), I see tons of > > > requests for 127.0.0.1, and I just can''t understand where they''re > > > coming from. > > > I read a bit about caching and mongrel and I''m starting to think it > > > might have something to do with caching (although I have not specified > > > caching for any of my controllers, in the production.rb it is set to > > > true). > > > > The real problem is I have a routing redirect for every request that > > > does not start with www (e.g: user.mysite.com) to be direct to the > > > user/index action. so what happens with those unknown requests is that > > > they too are redirected which is causing heavy load for the webserver > > > for no reason. > > > > I can of course work around the issue of the redirection somehow, but > > > i''m more in interested in why it happens. > > > Are you using Pound for the load balancing by any chance? > > > Best regards > > > Peter De Berdt--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
good idea, thanks for the advice. there are in fact entries in the access log like this: 127.0.0.1 - - [24/May/2007:22:01:38 +0000] "GET / HTTP/1.0" 302 89 "-" "Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.8b PHP/5.2.1 (internal dummy connection)" for each of the requests I get in my production.log. there are also lots of entries for stylesheets, js and images, but the one I''ve pasted is trying to access "/", which then gets redirected to rails and logged in my rails log file. I wonder what''s causing those hits? thanks for the help guys :) On May 24, 9:51 pm, dasil003 <gabrie...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Are they requests for images, css and javscript files? > > Have you looked in the Apache log to correlate the requests? > > On May 24, 12:45 pm, Ehud <ehud...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Nope, I''m running mongrel cluster with apache 2.0... > > It seems that whenever I try to access a page, after it is generated > > and sent a lot of other calls are also > > logged tohttp://127.0.0.1/byan unknown source... :) > > also strange is that the session id of these calls is not the same as > > the session id of my own user, meaning it is indeed not requests made > > by me. > > Any thoughts? > > > Peter De Berdt wrote: > > > On 24 May 2007, at 14:19, Ehud wrote: > > > > > I''m having some trouble understanding what''s going on with my > > > > production server. > > > > When a page is accessed, sometimes after the page is already displayed > > > > (in the log I get a 200 OK message for the entire page), I see tons of > > > > requests for 127.0.0.1, and I just can''t understand where they''re > > > > coming from. > > > > I read a bit about caching and mongrel and I''m starting to think it > > > > might have something to do with caching (although I have not specified > > > > caching for any of my controllers, in the production.rb it is set to > > > > true). > > > > > The real problem is I have a routing redirect for every request that > > > > does not start with www (e.g: user.mysite.com) to be direct to the > > > > user/index action. so what happens with those unknown requests is that > > > > they too are redirected which is causing heavy load for the webserver > > > > for no reason. > > > > > I can of course work around the issue of the redirection somehow, but > > > > i''m more in interested in why it happens. > > > > Are you using Pound for the load balancing by any chance? > > > > Best regards > > > > Peter De Berdt--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---