JDK-7142247 : Disable the mmap usage in ZipFile implementation by default
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-02-02
  • Updated: 2017-10-16
  • Resolved: 2017-10-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Fixed
Related Reports
Relates :  
Description
We have a long standing jvm crash issue in ZipFile code as described in #6929479. As the solution we added a system property sun.zip.disableMmap to disable the zipfile to use mmap, when "needed", in jdk7 and the jdk6 update release (6u23?), which seems to solve the problem for people that are aware of the issue. However, we're still seeing people/app run into this crash issue again and again. Given the benefit of using mmap in ZipFile code is getting less-significant (The original ZipFile implementation mmaps in the whole zip/jar file content when the zip/jar file gets opened, in which it helps the performance at some degree when there are multiple jvms are running on the same machine. But the recent ZipFile implementation has changed from this approach by only mapping in the central directory table these days, for various reasons, the performance saving of using mmap is less significant, if any), we are coming to the conslution it migght be better to disable the mmap uage "by default", and then use a particular flag to switch it on, if desirable.

Comments
JDK9 now has a pure Java implementation of ZipFile, no more mmap. See JDK-8142508
16-10-2017

EVALUATION target for jdk8
02-02-2012