Hi,

I'm currently trying to use a Daemon which was originally written for unix.

It seems as if there are several memory leaks in the daemon's source code but I'm unable to detect the objects that are causing them. That's sort of a big issue since the daemon is using more and more memory if running for several hours.

The script I'm talking about is called SpamAssassin, with its Daemon "SpamD". I'm using ActivePerl (5.8.9.827).

I've tried to identify the problem by using the Devel::Leak::Object package, but not really sure how to use it. This is what I got when leaving the script:

Jul 12 12:42:56.660 [1296] info: spamd: server killed by SIGINT, shutt +ing down Tracked objects by class: DB_File::BTREEINFO 2 DB_File::HASHINFO 2 DB_File::RECNOINFO 2 Errno 1 IO::Socket 3 IO::Socket::INET 1 Mail::SpamAssassin 1 Mail::SpamAssassin::Bayes 1 Mail::SpamAssassin::BayesStore::DBM 1 Mail::SpamAssassin::Conf 1 Mail::SpamAssassin::Conf::Parser 1 Mail::SpamAssassin::DnsResolver 1 Mail::SpamAssassin::Locker::Win32 1 Mail::SpamAssassin::Logger::Stderr 1 Mail::SpamAssassin::NetSet 7 Mail::SpamAssassin::Plugin::AutoLearnThreshold 1 Mail::SpamAssassin::Plugin::Bayes 1 Mail::SpamAssassin::Plugin::BodyEval 1 Mail::SpamAssassin::Plugin::Check 1 Mail::SpamAssassin::Plugin::DKIM 1 Mail::SpamAssassin::Plugin::DNSEval 1 Mail::SpamAssassin::Plugin::FreeMail 1 Mail::SpamAssassin::Plugin::HTMLEval 1 Mail::SpamAssassin::Plugin::HTTPSMismatch 1 Mail::SpamAssassin::Plugin::Hashcash 1 Mail::SpamAssassin::Plugin::HeaderEval 1 Mail::SpamAssassin::Plugin::ImageInfo 1 Mail::SpamAssassin::Plugin::MIMEEval 1 Mail::SpamAssassin::Plugin::MIMEHeader 1 Mail::SpamAssassin::Plugin::Pyzor 1 Mail::SpamAssassin::Plugin::Razor2 1 Mail::SpamAssassin::Plugin::RelayEval 1 Mail::SpamAssassin::Plugin::ReplaceTags 1 Mail::SpamAssassin::Plugin::SPF 1 Mail::SpamAssassin::Plugin::SpamCop 1 Mail::SpamAssassin::Plugin::URIDNSBL 1 Mail::SpamAssassin::Plugin::URIDetail 1 Mail::SpamAssassin::Plugin::URIEval 1 Mail::SpamAssassin::Plugin::VBounce 1 Mail::SpamAssassin::Plugin::WLBLEval 1 Mail::SpamAssassin::Plugin::WhiteListSubject 1 Mail::SpamAssassin::PluginHandler 1 Mail::SpamAssassin::SpamdForkScaling 1 Mail::SpamAssassin::SubProcBackChannel 1 Mail::SpamAssassin::Util::TieOneStringHash 1 Math::BigInt 1 Net::DNS::Resolver 1 NetAddr::IP 8 POSIX::SigRt 1 Win32::API 14 Win32::Registry 7


I've already tried to weaken some references, but as I'm still a novice in Perl, it didn't led to a satisfying result.



Any hints on this?

Daniel

In reply to How to detect and avoid memory leaks on Windows by posti

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.