trusteddomainproject / OpenARC

Open source ARC implementation
BSD 2-Clause "Simplified" License
135 stars 45 forks source link

Memory leak in OpenARC-1.0.0.Beta.0 #97

Open jeredfloyd opened 6 years ago

jeredfloyd commented 6 years ago

There appears to be a memory leak in OpenARC-0.1.0. It has been consuming an increasing amount of memory on my system, and is disproportionate to the similar OpenDKIM:

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND

opendkim  9894  0.0 53.6 1570348 1096412 ?     Ssl  Jan18   7:25 /usr/local/sbin/openarc -c /etc/openarc.conf
opendkim 29899  0.0  0.5 690144 11228 ?        Ssl  Feb18   1:46 /usr/sbin/opendkim -x /etc/opendkim.conf

Signing mode only, my openarc.conf is below:

AuthservID        mailhub.convivian.com
Syslog            yes
Mode            s
Socket            local:/var/spool/postfix/var/run/opendkim/openarc.sock
PidFile                 /var/spool/postfix/var/run/opendkim/openarc.pid

OversignHeaders        From
Domain            convivian.com
KeyFile            /etc/opendkim/keys/convivian.com
Selector        default

UserID                    opendkim

InternalHosts        0.0.0.0/0
InternalHosts        ::/0

Any pointers on how to debug?

jcbf commented 6 years ago

Have you checked #86 ?

jeredfloyd commented 6 years ago

Yes, seems likely my leak is one of those -- do you consider it "safe" to run the devel branch in production, or are there plans for a new release soon?

jcbf commented 6 years ago

No ideia about the new release but I'm using 0.1.0 with this patch and have a watchdog that restarts opoenarc if it uses too much memory.

AntiFreeze commented 6 years ago

@jeredfloyd a new release should be coming in the near future

jeredfloyd commented 6 years ago

I am still observing this issue in OpenARC-1.0.0.Beta.0; if anything it appears to have worsened. Any debugging tips?