You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/08/04 00:12:58 UTC
DO NOT REPLY [Bug 40183] New: - suspect memory leak for rotatelogs
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40183>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40183
Summary: suspect memory leak for rotatelogs
Product: Apache httpd-2
Version: 2.0.55
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P3
Component: Other Modules
AssignedTo: bugs@httpd.apache.org
ReportedBy: yen.chang@alcatel.com
I use rotatelogs utility which comes with apache 2.0.55 to maintain various
logs. For unknown reasons, the process which manages access_log uses lots of
memory. The following is a snapshot of "top" results. In the production system,
it uses 2.5 G out of total 4 G memory. I suspect there are memory leak in this
program. Please investigate. Thanks.
last pid: 28090; load averages: 0.01, 0.11, 0.15
17:01:08
71 processes: 70 sleeping, 1 on cpu
CPU states: 99.3% idle, 0.0% user, 0.7% kernel, 0.0% iowait, 0.0% swap
Memory: 2048M real, 1340M free, 410M swap in use, 13G swap free
PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
29404 root 69 0 10 136M 79M sleep 33:05 0.00% java
15073 root 4 58 0 37M 35M sleep 0:23 0.00% rotatelogs
227 root 20 58 0 9960K 4216K sleep 0:05 0.00% syslogd
13564 root 3 59 0 6832K 4136K sleep 0:00 0.00% httpd
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 40183] - rotatelogs leaks memory
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40183>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40183
------- Additional Comments From serai@lans-tv.com 2008-01-28 07:10 -------
(In reply to comment #3)
> IMHO this would SEGFAULT if we fail to open a new logfile
Exactly. My patch was very random. Thanks for review.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 40183] - rotatelogs leaks memory
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40183>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40183
serai@lans-tv.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |PatchAvailable
Version|2.0.55 |2.3-HEAD
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 40183] - rotatelogs leaks memory
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40183>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40183
jorton@redhat.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Other Modules |support
Summary|suspect memory leak for |rotatelogs leaks memory
|rotatelogs |
------- Additional Comments From jorton@redhat.com 2006-12-11 07:00 -------
It looks like the memory use of rotatelogs will be proportional to the number of
times it has re-opened the log file; it needs to be using subpools and clearing
them etc to have constant memory use. (pools are grrrrreat!)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 40183] - rotatelogs leaks memory
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40183>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40183
------- Additional Comments From serai@lans-tv.com 2008-01-25 15:43 -------
Created an attachment (id=21431)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=21431&action=view)
workaround against trunk
make a pool for logfile and clear it in each apr_file_open.
I made this patch in a short glance so there might be better solutions.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 40183] - rotatelogs leaks memory
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40183>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40183
serai@lans-tv.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |FixedInTrunk
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 40183] - rotatelogs leaks memory
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40183>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40183
------- Additional Comments From rpluem@apache.org 2008-01-28 06:52 -------
IMHO this would SEGFAULT if we fail to open a new logfile and have to reuse the
old one. So I committed a slightly modified version of your patch to trunk as
r615901 (http://svn.apache.org/viewvc?rev=615901&view=rev). Given the typical
frequency of logfile reopenings I guess we can afford the apr_pool_create /
apr_pool_destroy overhead.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 40183] - rotatelogs leaks memory
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40183>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40183
serai@lans-tv.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |serai@lans-tv.com
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org