I'll admit: while I've done tons of stuff with Perl, when it comes to mod_perl I have a prejudice. Many things I've tried fail with little explanation ...
I have a home-grown DBI super-class. On making a connection, it writes a row into a table identifying which bit of code made that connection. An END block in the module deletes the row when the connection is broken due to program exit. (This row is useful since we can join it to rows in a view provided by the database system (pg_stat_activity; PostgreSQL) to learn which programs are executing which long-running queries.
All this works just great! Except for the mod_perl scripts. Apparently they record their connections, but the connections never, EVER get deleted. The END blocks aren't executed. According to the mod_perl dox, END blocks are delayed until the child exits or the server restarts. That's fine, but it doesn't appear to be happening. Does anyone have any insights that would get me started on the right debugging trail?
| -- |
| Jeff Boes |
| Database Engineer |
| Nexcerpt, Inc. |
|
|
|
...Nexcerpt...Connecting People With Expertise
|
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.