Dan Horne wrote:
> Hi 
> 
> I'm not sure if this is the correct place to raise this issue, but since
> some on the list use C::A and Persistent Perl, maybe they can help (the PP
> list seems dead).
> 
> My problem is that over time, my instance script hangs when it uses
> Persistent Perl - it may take a couple of hours before hanging. I've tried
> setting the timeout and the maxruns value quite low
> (#!/usr/local/bin/perperl --  -t120 -r50) but this hasn't helped.
> 
> From my experience, it only occurs when using CGI::Application::Dispatch. I
> have another script that runs with persistent Perl without C::A::D, but it
> hasn't exhibited the hanging problem.

I have never used Persistent Perl so I won't be much help there, but
here are some general suggestions:
  + Do you know where it's hanging? Try putting in lots of debug stuff
to see if it's actually hanging in C::A::D or in some other portion of
your application.
  + You said it only occurs when using C::A::D. Have you tried modifying
that same script that is hanging to not use C::A::D? If so, how long did
you let it run before concluding that it wasn't going to hang?
  + Is the hanging associated with the amount of time it's been running
or the number of requests it's processed?

> My first instinct was that in requiring the application modules at runtime,
> PP's caching of the modules got a bit muddled. I placed explicit "use
> <module>" statements for each module in the instance script, but alas this
> hasn't helped.

That's typically what I do too (under mod_perl in my startup.pl). Again,
 I'm not that familiar with PPerl, so...
Sorry I couldn't be of more help?

-- 
Michael Peters
Developer
Plus Three, LP


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to