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

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

I'm writing my first Dancer app (not impressed so far, it's opaque to profilers), and I've just discovered that my Dancer::Session::Storable sessions are blocking. There's no warnings, but some session reads are taking 30 seconds, slowing down the whole application.

I've tried a couple of other session plugins, but they had other problems (YAML sessions would occasionally vanish, PSGI sessions don't seem to save anything). Storable seemed to be the most stable, but maybe there is something general going on? I'm only having this problem in my production environment, not in development.

Grateful for any ideas.


- Boldra

Replies are listed 'Best First'.
Re: Dancer Session timeout
by chromatic (Archbishop) on Apr 13, 2012 at 05:56 UTC
      I hadn't seen that - thanks - it's convenient, fast and pretty.

      I added a sleep to Dancer::_session(), but NYTProf still isn't showing any of them, so the opacity remains.

Re: Dancer Session timeout
by Anonymous Monk on Apr 13, 2012 at 01:12 UTC
    Check the difference between your development.yml and production.yml files.
Re: Dancer Session timeout
by Anonymous Monk on Apr 12, 2012 at 15:52 UTC
    post code

      Thanks for your ideas, but I think that a problem which I can't reliably reproduce when running the entire app in development isn't going to lend itself to a code snippet demonstrating the problem.

      It's an intermittant problem. If I had a technique to narrow it down to a code snippet, it would no longer be a problem.