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

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

Replies are listed 'Best First'.
Re^4: Catalyst (app_)server.pl hangs a lot
by miguelele (Beadle) on Nov 04, 2011 at 21:09 UTC

    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

        Thank you. Maybe I do not fully understand the Race conditions problems, but I am the only user of the app, at this moment. So simultaneous access is not happening, and I am just reading, not writing anything

        By the way, it sounds terrible if such problems can arise at any moment, isnīt it?

        My app is still small, but following your advice, I am gonna strip it down to the smallest pieces. Each test must wait five minutes to see if it hangs or not. It is gonna be a long time, as I canīt figure where to look