Generally, unless it's supposed to run as a server (incoming requests can happen at any time) or start-up time is prohibitive, I prefer the cron-job solution myself anyway.

For example, with the CB stats, I have one app that's constantly running to watch IRC for CB messages. But that's because connecting to IRC and getting into the #cbstream channel can take a while, and I'll lose information if I'm not already in when the message occurs. However, everything else runs as cron jobs: pre-parsing data in the database (every 6 minutes) and creating the stats page (every 60 minutes).

The weak point really is that IRC application. I'm going to have to rewrite it at some point to us cb60 and/or the PM CB interface and gather its data via cron job, too, just for stability.

I've found some evidence of people complaining they run scripts and when the scripts exit,they do not release the memory they acquired back to the operating system

I didn't think that was possible, except maybe in DOS...


In reply to Re: Gargantuan memory consumption issues by Tanktalus
in thread Gargantuan memory consumption issues by spx2

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.