I'm interested in the matter (abandoned services in Perl since the day of "service could not start in a timely fashion".. error)
I have installed your service and now i'm monitoring it for the next 4 hours, with:
#PID perl -E "for(1..240){system qq(tasklist /fi \"PID eq 17360\" /n +h);sleep 60}" # UPDATE: RESULTS perl.exe 17360 Services 0 + 9.136 K # 240x60 sec after.. perl.exe 17360 Services 0 + 16.768 K #it leaked 31.8K every minute

UPDATE: The increment seems to me constant over time even if not so regular:
perl -lanE "$res{$F[-2]}++;END{print map{qq($_ = $res{$_}\n)} sort {$a +<=>$b} keys %res}" c:\SCRIPTS\leakedmemory.log = 283 # blanks lines emitted by 'tasklist' 9.136 = 1 9.268 = 4 9.396 = 4 9.572 = 1 9.720 = 4 9.848 = 4 9.976 = 4 10.104 = 4 10.360 = 8 10.488 = 4 10.616 = 5 10.744 = 4 10.872 = 4 11.128 = 8 11.384 = 8 11.644 = 9 11.900 = 8 12.156 = 9 12.412 = 8 12.668 = 8 12.924 = 9 13.184 = 8 13.440 = 8 13.696 = 8 13.700 = 1 13.952 = 8 14.208 = 8 14.464 = 9 14.720 = 8 14.724 = 1 14.976 = 8 15.236 = 8 15.492 = 8 15.496 = 1 15.748 = 8 16.004 = 6 16.008 = 1 16.256 = 1 16.260 = 6 16.512 = 9 16.768 = 5
The leak even if little is yet noticeable: the working set is passed fro 9.136K to 9.848K in 15 minutes. Private bytes also are arising. I'm using also Process Explorer. I think you need to investigate further. Have you some holidays? look at this article: identifying-memory-leak-with-process-explorer-and-windbg and share your results! in the meantime I have not enough time to investigate.
I'll tell you more

L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

In reply to Re^3: Win32::Daemon memory leak by Discipulus
in thread win32::daemon memory leak by tbsky

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.