http://www.perlmonks.org?node_id=935787


in reply to Re: Catalyst (app_)server.pl hangs a lot
in thread Catalyst (app_)server.pl hangs a lot

Wowo, I have returned to my computer and the last page I tested has finally rendered!!. Las action took 968.4581s. So the server script does not hangs. It is heavily delayed!!.

I wonder how I can monitor the action even deeper

  • Comment on Re^2: Catalyst (app_)server.pl hangs a lot

Replies are listed 'Best First'.
Re^3: Catalyst (app_)server.pl hangs a lot
by Anonymous Monk on Nov 04, 2011 at 03:49 UTC

    I wonder how I can monitor the action even deeper

    Finding such a huge delay should be easy, just look for one of sleep, DBI...execute, or for(1..1_000_000){ DoSomethingExpensive(); }

    This being a Catalyst app, look in your model

      Well, it seems like a time out of some kind. About FIVE minutes

      I can repeat the same action (reload the page) as many or as few times as I want. Then I leave it for a while, about five minutes, and when I reload the page (even from another computer) I get the weird big delay again.

      Can you imagine what can have such five minutes timeout? DBI configuration or something?

        Can you imagine what can have such five minutes timeout? DBI configuration or something?

        I already imagined 3 things

        4 might be race conditions (lock flock fork thread)

        and 5 is of course MAGICK

        You have to start narrowing things down, so turn logging on, or insert your bunches of print statements, and figure out where it hangs

        Fix every error or warning your encounter

        Repeat repeat repeat until its fixed