httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Vilcans" <mar...@jadestone.se>
Subject RE: [users@httpd] -k config/install launching rotatelogs.exe - bug?
Date Mon, 03 Feb 2003 15:20:11 GMT
I'm posting this again as it looks like you guys missed it the first time (I
got no replies!). :-) Also, it might be related to the bug discussed in the
thread "Children don't die properly".

Here's an executive summary of my post:

Apache 2.0.43 under Windows 2000. Running the command "apache -k config" or
"apache -k install" spawns the logging processes (e.g. rotatelogs.exe) that
are configured with CustomLog with a pipe. These just hang around until we
kill them.

It's easy to recreate, so can't be the only one having this problem. Just
take the default httpd.conf and change the CustomLog line to:

CustomLog "|/apache2/bin/rotatelogs.exe logs/access_%Y-%m-%d.log 86400 +60"
combined

Then run "apache -k install". Check in Task Manager (or, preferably Process
Explorer from www.sysinternals.com). There'll be a rotatelogs.exe running.

I've tried this with Apache 2.0.44 as well. The same problem appears.

I just found out that it is possible to configure apache when starting the
service ("apache -k start -f conf/whatever.conf") instead of using "-k
config". This will help me get around the problem, but it still looks like a
bug, don't you think?

Martin

> -----Original Message-----
> From: Martin Vilcans [mailto:martin@jadestone.se]
> Sent: Thursday, January 30, 2003 5:58 PM
> To: Users@Httpd. Apache. Org
> Subject: [users@httpd] -k config/install launching rotatelogs.exe - bug?
>
>
> We're experiencing problems with lots of rotatelogs.exe processes being
> created on our system. I've searched the archives, but not found anything
> about this. It seems to be a bug in Apache.
>
> We have Apache installed as a service under Windows 2000. Normally, it's
> configured as a proxy which forwards all requests to a JBoss server, but
> during the nights, we reconfigure it to serve static files which say that
> the server is down for nightly updates.
>
> To change the server configuration, we reconfigure Apache using the
> following command:
>
> apache -k config -f <config-file>
>
> What I have discovered is that every time this command is executed, a
> rotatelogs.exe process is created, which apparently runs in the background
> and probably expects input from stdin, but doesn't get any since it's not
> connected to any console. Since we reconfigure the server at least twice a
> day, after a while we have a lot of these processes idling in the system.
>
> The bug appears whenever I run -k install as well. Perhaps it's related to
> the parsing of the configuration file, as this is done both on -k install
> and -k config.
>
> What's really odd is that only one rotatelogs.exe is created. One would
> expect two of them, since we have two pipes to rotatelogs.exe in the
> configuration:
>
> ErrorLog "|/apache2/bin/rotatelogs.exe logs/error_%Y-%m-%d.log 86400 +60"
> .
> .
> SetEnvIfNoCase Request_URI "\.(gif|jpg|css|js|swf)$" dontlog
> .
> .
> CustomLog "|/apache2/bin/rotatelogs.exe logs/access_%Y-%m-%d.log
> 86400 +60"
> combined env=!dontlog
>
> The rotatelogs.exe that sticks is the one with the access log.
>
> Does anyone recognize this problem? This bug is probably related to a
> serious problem we're having, so it would be nice to know if there's a
> solution.
>
> Martin Vilcans
> Developer, Jadestone Group AB
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message