[Bug 212234] www/trafficserver - memory leak

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Aug 29 10:14:10 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212234

            Bug ID: 212234
           Summary: www/trafficserver - memory leak
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: brodin at durd.net
                CC: gaod at hychen.org
                CC: gaod at hychen.org
             Flags: maintainer-feedback?(gaod at hychen.org)

Hi, 

We are running
[root at musk ~]# pkg info | grep traffic
trafficserver-6.1.1            Fast, scalable and extensible HTTP proxy server

on a couple machines 
[root@<machine> ~]$ uname -a
FreeBSD <machine> 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25
02:10:02 UTC 2016     root at releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC
 amd64

and we are experiencing an incredible memory leak in ATS. Our one machine (#1)
has 24GB of RAM and no swap-space, and our second (#2) machine running ATS has
8GB RAM and 41GB of swap.
Machine #1 fills it memory in about 5 days, and #2 fills its memory and swap in
about 2 weeks i would say.
We have configured ATS to work as an enterprise proxy to the Internet, and as
we have a very good connection to the Internet we have also turned off caching:
CONFIG proxy.config.http.cache.http INT 0

#2:
[root@<machine> ~]# ps axu | grep traffic
www     71099  13.9 66.6 13312772 5565236  -  S    Tue03PM    550:03.28
/usr/local/bin/traffic_server -M --bind_stdout
/var/log/trafficserver/traffic.out --bind_stderr /var/log/tra
root     1059   0.0  0.0    14492       0  -  IWs  -            0:00.00 daemon:
/usr/local/bin/traffic_cop[1060] (daemon)
root     1060   0.0  0.0    64312    1228  -  Ss   27May16      5:17.37
/usr/local/bin/traffic_cop
www     71057   0.0  0.1    86872    5784  -  S    Tue03PM      2:38.92
/usr/local/bin/traffic_manager --bind_stdout /var/log/trafficserver/traffic.out
--bind_stderr /var/log/traff

As there are other services running on the machine they start to be killed
before ATS in restarted:

[root@<machine> ~]# dmesg | grep killed
pid 42896 (traffic_server), uid 80, was killed: out of swap space
pid 1059 (squid), uid 100, was killed: out of swap space
pid 825 (unbound), uid 59, was killed: out of swap space
pid 36800 (traffic_server), uid 80, was killed: out of swap space
pid 28540 (traffic_server), uid 80, was killed: out of swap space
pid 21702 (traffic_server), uid 80, was killed: out of swap space
pid 66863 (traffic_server), uid 80, was killed: out of swap space
pid 1025 (ntpd), uid 0, was killed: out of swap space
pid 247 (traffic_server), uid 80, was killed: out of swap space

Any ideas or are there any tunings we can do?

BR,
David

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list