Taras Puchko
-
2012-06-25
JVM Crash extracting 7z file with 96M heap
Java wrapper for 7z archiver engine
Brought to you by:
boris_brodski
I'm using Kubuntu 12.04, jdk-7u5-linux-x64, IntelliJ IDEA 11.1.2, and sevenzipjbinding-4.65-1.05-rc-extr-only-AllPlatforms.zip
I've downloaded http://download-ln.jetbrains.com/idea/ideaIC-11.1.2.tar.gz, unpacked it and compressed with maximum compression:
7z a -mx=9 idea-IC-117.418.7z idea-IC-117.418
Uncompressing the resulting 7z file with 7-Zip-JBinding works fine with default JVM settings, but I'm getting JVM crash with reduced heap, i.e. when running with a JVM argument "-Xmx96M" or less. Please see the log file attached.
It would be reasonable to throw OutOfMemoryError or SevenZipException in such cases.