DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24462>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24462

mod_jk-1.2.5/Apache 1.3.28 - file descriptor leak on SIGHUP/SIGUSR1





------- Additional Comments From [EMAIL PROTECTED]  2003-11-07 03:02 -------

>>> How are your logs config'ed?

Below are the log configuration directives for one vhost:

<VirtualHost 172.19.30.41>
    JkLogFile logs/localhost/one_mod_jk_log
    JkLogLevel debug
  ....
</VirtualHost>

Below is the log configuration for the second virtual host:

<VirtualHost 172.19.30.41>
    JkLogFile logs/localhost/two_mod_jk_log
    JkLogLevel debug
  ....
</VirtualHost>

(172.19.30.41 is a NameVirtualHost).  These are the only JkLogFile directives.


>>> You have 3 log files, correct?

Just two logfiles; but after sending apache successive SIGHUPs to apache, there are 
multiple
file descriptors open to each logfile.  (More SIGHUPs = more open descriptors to each 
file).


>>> Are all 3 of them seeing output?

Both log files are seeing output.  The output appears to be normal.


>>> Crank up your debug level and verify that all 3 are actually active.

Both logfile are active -- looking at the logs themselves, they appear normal.

I've done this as an experiment.  Hopefully it will help.

  - raise log level to info (otherwise, same as shown above)

  - added a few calls to jk_log in jk_util.c; one in
    jk_open_file_logger(), immediately after the log file is opened,
    another in jk_close_file_logger, immediately before the file is
    closed.  (Both log the logger's address, and fileno of it's FILE).  
    Both of these lines contain the string "SREVILAK".

  - stop Apache, delete logfiles.

  - Start apache, send a series of 5 sighups

  - Stop apache

  - Attached the contents of both JkLogFiles.  Appended to that is
    a diff of jk_util.c, in case you want to see where the log
    statements are.

This is the puzzling thing.  Immediately after starting the server,
file desriptors 5 & 7 were open to "one_mod_jk_log".  Immediately
before stopping the server, file descriptors 5, 7, 9, 11, 13, 15 and
20.  The logging I added seems to show each of the files getting an
fclose(), but the descriptor is never released. :(

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to