parsemail.sh hanging with large mails

Stephen Finucane stephen at that.guru
Thu Sep 21 23:05:44 AEST 2017


On Thu, 2017-09-21 at 08:43 +0200, David Demelier wrote:
> Hello all,
> 
> It looks like parsemail.sh takes very long time to parse a large mail.
> I have a 20MB mail file and running parsemail.sh on it takes forever
> and starts eating all the memory and CPU time.
> 
> See after 3 minutes:
> 
>   547 www           1 103    0   351M   239M CPU1    1   8:31 100.68%
> python2.7                                        
> 
> 
> What can I do to debug more?

The easiest thing to do here is probably read the main directly with the
'manage.py parsemail --debug <file>' command. There's not a whole of info
output by this so you will probably need to add your own additional logging
(printf debugging ftw) or start that with PDB.

Let me know how you get on.

Stephen


More information about the Patchwork mailing list