Memory consumption
Nikolaus Rath <[email protected]> Thu, 20 Oct 2005 14:15:37 +0200
| Newsgroups | gmane.comp.lang.perl.modules.mail-box |
|---|---|
| Message-ID | <[email protected]> |
Hello, I just ran into a strange problem: (testmail is a simple mail with one big attachment). [0] nokile:~$ du -h testmail 49M testmail [0] nokile:~$ ulimit -S -v 400000 [258] nokile:~$ perl -e 'use MIME::Parser; use Mail::Message; Mail::Message->coerce((new MIME::Parser)->parse(\*STDIN));' < testmail Out of memory! [1] nokile:~$ perl --version This is perl, v5.8.4 built for i386-linux-thread-multi [0] nokile:~$ dpkg -s libmail-box-perl |grep Version Version: 2.055-1 Using MIME::Parser alone works fine under much harder constraints. But Mail::Message needs more than 400 MB to load the 50 MB mail file. What's going on here? Is there a memory leak? Or should I use another method to get a Mail::Message object? Thanks in advance, --Nikolaus -- Ja zu der Rettung von dem Genitiv!