Skip to content

Memory problem with large archives #33

Description

@draeger

I am trying to pack 73,455 SBML files, which I have all in one List<File>, into one single COMBINE archive. It takes hours and then crashes with this message:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
	at java.base/java.util.Arrays.copyOf(Arrays.java:3537)
	at java.base/java.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:185)
	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem$FileRolloverOutputStream.toByteArray(ZipFileSystem.java:2222)
	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem$DeflatingEntryOutputStream.close(ZipFileSystem.java:2038)
	at java.base/java.nio.file.Files.copy(Files.java:3172)
	at java.base/java.nio.file.CopyMoveHelper.copyToForeignTarget(CopyMoveHelper.java:126)
	at java.base/java.nio.file.Files.copy(Files.java:1308)
	at de.unirostock.sems.cbarchive.CombineArchive.addEntry(CombineArchive.java:577)
	at de.unirostock.sems.cbarchive.CombineArchive.addEntry(CombineArchive.java:755)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions