Take the 2-minute tour ×

Does TarArchiveOutputStream from Apache Commons IO load contents in memory before writing to file? I want to write large files to a tarball. The size of files is a few GB. I am using org.apache.commons.compress.archivers.tar.TarArchiveOutputStream class for creating tarball. Will it eat all my memory while creating large files?

share|improve this question
If it were eating all your memory, wouldn't it be obvious just from testing it? I suggest you test it as it may be unsuitable for reasons you haven't thought of. –  Peter Lawrey Mar 15 '12 at 9:37
It's most unlikely. It might retain the directory information in memory but hardly the contents. Otherwise it would be basically useless for everybody. –  EJP Mar 15 '12 at 9:59
add comment


Your Answer



Browse other questions tagged or ask your own question.