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

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

Dear knowledgeable PerlMonks,

I recently learned the hard way that Perl is not releasing memory back to the OS (at least on Windows). I create a small Dancer web app that renders a list of emails following an Ajax request. After several days of usage, I noticed that the web page was getting very slow and found out that the Perl process was using 4 GB of memory.

Besides killing and restarting the app on a regular basis, is there a good practice to deal with this situation?

I currently use Plack to start my Dancer web app.

Carl