httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] "Out of memory" logging format
Date Fri, 26 Aug 2005 14:20:07 GMT
On 8/26/05, Udo Rader <udo.rader@bestsolution.at> wrote:
> Yet of course I would like to know the exact time and circumstances when
> such a situtation occurs. When reaching the memory limit, apache
> produces log entries like this:
> 
> -----------CUT-----------
> [...]
> ^GOut of memory (Needed 8164 bytes)
> ^GOut of memory (Needed 8164 bytes)
> ^GOut of memory (Needed 8164 bytes)
> ^GOut of memory (Needed 8164 bytes)
> ^GOut of memory (Needed 8164 bytes)
> FATAL:  erealloc():  Unable to allocate 76 bytes
> -----------CUT-----------
> 
> Now what I would like to have is a more informative logging message,
> such as which URL caused the error.
> 
> Is that possible?

In general, no.  Apache considers out of memory to be an unrecoverable
error, and therefore doesn't try to protect against it in many
different code paths.

On the other hand, there is a new module called mod_log_forensice
included with apache that may help.  It can be used to find requests
that were received but where no response was sent.  These would
probably match up with your out-of-memory crashes.

Joshua.

---------------------------------------------------------------------
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