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

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.

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

Replies are listed 'Best First'.
Re^4: Archive::tar - out of memory - 3,2GB
by demichi (Beadle) on Jun 13, 2014 at 12:14 UTC
    okay .. can you recommend another way of archiving/zipping where I can fix this issue?

      If you have an external tar executable, I would use that to create the tar file and append the files to the archive. There seems to be Archive::Tar::Wrapper, which should make switching from Archive::Tar trivial.

      There also is Archive::Tar::Stream, which has a different API but should be able to just append files with the ->AddFile() call.