OK,

This is the something I posted in fair detail to the mason users group, but I didn't get much response... so let's try this from a more abstract perspective.

If I have a perl module that test rock solid from the command line at accessing and returning its data, but starts failing and failing more often the longer its in service, when running through Apache/mod_perl/mason... how do I go about debugging this?

So far I'm using Data Dumper on the PM and CGI sides and using various print statements in the PM and I haven't made any headway. I think that something may have been caching even though I restart apache each time I make a change to the PM, because I was getting out of date data when I dumped the object. I do an opendir as the basis to getting the data and put an "or die 'dead'" on the end. It didn't fire on failure at first, but once I got past the caching thing, it started showing up when the system failed.

Any ideas or methods would be greatly appreciated.

Also, I'm pretty thourogh about testing the perl modules with test scripts, testing for results over many iterations, but it is apparent that I need similar testing of the pm/cgi/apache/mod_perl/mason components working as a whole. Can anyone point me at some documents discussing best or even good practices for this?

Thanks,


--Jimbus aka Jim Babcock
Wireless Data Engineer and Geek Wannabe
jim-dot-babcock-at-usa-dot-com

In reply to mason/mod_perl/apache debugging and testing by jimbus

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.