Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Please help.

Apache becomes unresponsive when it encounters an error (as reported in the error logs with an associated 500 HTTP error in the access log). I'm running Apache 2.2.29 in a windows environment with mod_perl (Apache/2.2.29 (Win32) mod_apreq2-20090110/2.8.0 mod_perl/2.0.7 Perl/v5.16.3 ). When a request results in an error all subsequent requests fail. The Apache service is still up and running but requires a restart for requests to begin to process again. I've begun by trying to fix any code that would result in an error but it's difficult to account for them all. Could mod_perl be somehow caching error responses? Is there a way to have Apache recover by itself? (This is an old legacy system which I'm trying to support). Any help would be most appreciated.

Here is a sample of one of the errors encountered:

[error] [client 127.0.0.1] encountered object 'true', but neither allo +w_blessed, convert_blessed nor allow_tags settings are enabled (or TO +_JSON/FREEZE method missing) at C:/legacy.pm line 1234.\n

Discipulus added code tags to the error

Replies are listed 'Best First'.
Re: Apache becomes unresponsive running mod_perl
by Discipulus (Canon) on Jan 15, 2018 at 20:16 UTC
    Hello Anonymous Monk

    If shooting in the dark is permitted i'd go with $json->convert_blessed(1) somewhere in legacy.pm

    See also:

    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.
      Thanks for the reply. Unfortunately that error is just one of many, I'm trying to discover why Apache becomes unresponsive. Sorry my question is so vague, just looking at possible ways to tackle this issue.
A reply falls below the community's threshold of quality. You may see it by logging in.
A reply falls below the community's threshold of quality. You may see it by logging in.