I have a general purpose Apache 2.0 running mod_perl2. It works great with a single perl web application running, however when I have more than one I occasionally see the error message "Can't locate object method foo...", and then the script dies.

All of these errors generally occur in a module I wrote called dataManager, which is a wrapper for DBI that encapsulates sql requests into methods. Each application has their own copy of this module, with different methods depending on what DB it needs to access. I am not using any exotic modules, all modules/scripts/etc use strict, and there is a total of 1 'our' variable in the whole mess. The apache server is using prefork and spawning fifty or so processes, and this issue always seems to occur after some time (i.e., not when apache is starting up).

How can I go about troubleshooting this? The problem only comes up with multiple applications sometimes, but the only solution I've found is to restart apache. Any ideas on what I can try?

Thanks!

In reply to Intermittant module problem with mod_perl by jupe

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.