Memory leak when mod_ssl is used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux