https://issues.apache.org/bugzilla/show_bug.cgi?id=53435
Priority: P2
Bug ID: 53435
Assignee: [email protected]
Summary: Memory leak when mod_ssl is used
Severity: normal
Classification: Unclassified
OS: Linux
Reporter: [email protected]
Hardware: PC
Status: NEW
Version: 2.4.1
Component: mod_ssl
Product: Apache httpd-2
Hello,
I installed httpd 2.4.2 on CentOS6.2(64bit).
It seems like httpd leaks memory when mod_ssl is used.
When I start up httpd with mod_ssl, and when I issue "apachectl graceful",
it seems like httpd leaks memory.
If I issue "apachectl graceful" 1000 times, ps command shows
the memory usage gets bigger like below:
====Before 1000 times graceful restart====
# ps -elfy | head -1
S UID PID PPID C PRI NI RSS SZ WCHAN STIME TTY TIME
CMD
# ps -elfy | grep httpd | grep -v grep
S root 3816 1 0 80 0 4136 25683 poll_s 15:00 ? 00:00:00
/opt/testhttpd/bin/httpd
S daemon 3818 3816 0 80 0 5216 111748 pipe_w 15:00 ? 00:00:00
/opt/testhttpd/bin/httpd
S daemon 3819 3816 0 80 0 5220 111748 pipe_w 15:00 ? 00:00:00
/opt/testhttpd/bin/httpd
S daemon 3820 3816 0 80 0 5220 111748 pipe_w 15:00 ? 00:00:00
/opt/testhttpd/bin/httpd
#
====After 1000 times graceful restart====
# ps -elfy | head -1
S UID PID PPID C PRI NI RSS SZ WCHAN STIME TTY TIME
CMD
# ps -elfy | grep httpd | grep -v grep
S root 3816 1 6 80 0 97320 48673 poll_s 15:00 ? 00:01:23
/opt/testhttpd/bin/httpd
S daemon 28584 3816 0 80 0 97448 134738 pipe_w 15:19 ? 00:00:00
/opt/testhttpd/bin/httpd
S daemon 28585 3816 0 80 0 95416 134738 pipe_w 15:19 ? 00:00:00
/opt/testhttpd/bin/httpd
S daemon 28588 3816 0 80 0 97460 134738 pipe_w 15:19 ? 00:00:00
/opt/testhttpd/bin/httpd
#
You can reproduce this by:
1. start httpd with mod_ssl loaded.
2. issue "apachectl graceful" 1000 times.
I configured my httpd with following:
# ./configure --prefix=/opt/testhttpd --with-included-apr
If I start up httpd without mod_ssl, memory usage does not get bigger
even after 1000 times graceful restart.
The evidence is below:
====Before 1000 times graceful restart====
# ps -elfy | head -1
S UID PID PPID C PRI NI RSS SZ WCHAN STIME TTY TIME
CMD
# ps -elfy | grep httpd | grep -v grep
S root 25061 1 0 80 0 2632 18365 poll_s 15:43 ? 00:00:00
/opt/testhttpd/bin/httpd
S daemon 25063 25061 0 80 0 4504 104430 pipe_w 15:43 ? 00:00:00
/opt/testhttpd/bin/httpd
S daemon 25064 25061 0 80 0 4504 104430 pipe_w 15:43 ? 00:00:00
/opt/testhttpd/bin/httpd
S daemon 25065 25061 0 80 0 4508 104430 pipe_w 15:43 ? 00:00:00
/opt/testhttpd/bin/httpd
#
====After 1000 times graceful restart====
# ps -elfy | head -1
S UID PID PPID C PRI NI RSS SZ WCHAN STIME TTY TIME
CMD
# ps -elfy | grep httpd | grep -v grep
S daemon 17566 25061 0 80 0 4784 104430 pipe_w 16:01 ? 00:00:00
/opt/testhttpd/bin/httpd
S daemon 17567 25061 0 80 0 4788 104430 pipe_w 16:01 ? 00:00:00
/opt/testhttpd/bin/httpd
S daemon 17568 25061 0 80 0 4792 104430 pipe_w 16:01 ? 00:00:00
/opt/testhttpd/bin/httpd
S root 25061 1 0 80 0 3264 18365 poll_s 15:43 ? 00:00:06
/opt/testhttpd/bin/httpd
#
Are there memory leaks in mod_ssl module?
Thanks,
Tadanori
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]