Re: mod_perl server doesn't reply

[prev] [thread] [next] [Date index for 2005/03/18]

From: Anders Nielsen
Subject: Re: mod_perl server doesn't reply
Date: 22:25 on 18 Mar 2005
On Fri, 2005-03-18 at 11:15 -0500, Stas Bekman wrote:
> Anders, do you by chance use a proxy that may have eaten the response?
> 
> What do you see in logs/access_log, it tells how many bytes were sent to 
> the client.
> 
> What happens if you replace print($x) with Apache->request->print($x)
> 

The problem occur when I switch some scripts from mod_cgi to mod_perl.
When I run mod_cgi the front end server takes care of the request. This
setup doesn't have this problem.

I use mod_perl by forwarding (proxying) the request to a back-end
mod_perl server. The mod_perl server is listing on a port on 127.0.0.1.
The problem situation occurs with this setup after a while (usually
after days).

To eliminate the effect of the proxy in my tests I used wget on the same
machine direct on the mod_perl server. I even created a separate
mod_perl server that wasn't used by the front-end. When the problem
situation occurred this independent server also had the problem.

This make me believe that the problem is related to a resource being
depleted. Any ideas on what to monitor?

In the access log I only see lines with the number of bytes being
correct. Example:

127.0.0.1 - - [16/Mar/2005:10:56:20 +0100] "GET /cgise/env.cgi?x=1598223
HTTP/1.0" 200 1598223 "-" "Wget/1.8.2" 0

However it looks like the number of lines in the access log is too low.
This would indicate that some lines are missing. Maybe missing responses
didn't result in a line in the access log. Since I can't reproduce the
problem I can't be sure of this.

If the problem comes back I will look closer at this. I will also
replace the print with Apache->request->print and see what happens.

Thanks again Stas :-)

(message missing)

mod_perl server doesn't reply
Anders Nielsen 09:47 on 16 Mar 2005

Re: mod_perl server doesn't reply
Anders Nielsen 12:00 on 16 Mar 2005

Re: mod_perl server doesn't reply
Stas Bekman 02:11 on 17 Mar 2005

Re: mod_perl server doesn't reply
Anders Nielsen 14:57 on 18 Mar 2005

Re: mod_perl server doesn't reply
Stas Bekman 16:15 on 18 Mar 2005

Re: mod_perl server doesn't reply
Anders Nielsen 22:25 on 18 Mar 2005

Re: mod_perl server doesn't reply
Stas Bekman 22:37 on 18 Mar 2005

Re: mod_perl server doesn't reply
Anders Nielsen 14:10 on 20 Mar 2005

Re: mod_perl server doesn't reply
Stas Bekman 21:51 on 21 Mar 2005

Re: mod_perl server doesn't reply
Anders Nielsen 15:53 on 23 Mar 2005

Generated at 15:10 on 27 Mar 2005 by mariachi v0.52