in reply to Archive::tar - out of memory - 3,2GB

The FAQ of Archive::Tar warns about this problem and also tells possible workardounds.

As a very easy workaround maybe switching to a 64bit Perl will make more memory available than the 3.2 GB you seem to get now.

  • Comment on Re: Archive::tar - out of memory - 3,2GB

Replies are listed 'Best First'.
Re^2: Archive::tar - out of memory - 3,2GB
by demichi (Beadle) on Jun 13, 2014 at 09:23 UTC
    Hi Corion, thanks for your reply.

    So Archive::Tar->iter would be the solution, right?
    But for me it is not clear from the examlpe how I can add the files with this to a tar/gzip as it is saying it is reading the tarball.

    Can you help me with a code example how I can add files with this method?

    Thanks a lot.
    regards
    de Michi

      It seems that Archive::Tar will always create the archive in memory before writing it out and has no incremental way of building an archive.

        okay .. can you recommend another way of archiving/zipping where I can fix this issue?