FULL PRODUCT VERSION :
java version "1.7.0_40"
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux xps 3.11.0-8-generic #15-Ubuntu SMP Fri Sep 20 04:11:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
When creating and closing many memory mapped files, the following error appears (in this case after about 7000 files were openned and closed.
java.lang.Error: Cleaner terminated abnormally
at sun.misc.Cleaner$1.run(Cleaner.java:147)
at sun.misc.Cleaner$1.run(Cleaner.java:144)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.Cleaner.clean(Cleaner.java:144)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:141)
Caused by: java.io.IOException: Cannot allocate memory
at sun.nio.ch.FileChannelImpl.unmap0(Native Method)
at sun.nio.ch.FileChannelImpl.access$000(FileChannelImpl.java:40)
at sun.nio.ch.FileChannelImpl$Unmapper.run(FileChannelImpl.java:787)
at sun.misc.Cleaner.clean(Cleaner.java:142)
... 1 more
REGRESSION. Last worked in version 7u40
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Open RandomAccessFiles, create mappings and close them, repeatedly.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The error message shouldn't happen at all but if it does, it should be more meaningful. e.g. it should say it cannot allocate memory while de-allocating memory.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Don't open, map and close files so fast.
java version "1.7.0_40"
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux xps 3.11.0-8-generic #15-Ubuntu SMP Fri Sep 20 04:11:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
When creating and closing many memory mapped files, the following error appears (in this case after about 7000 files were openned and closed.
java.lang.Error: Cleaner terminated abnormally
at sun.misc.Cleaner$1.run(Cleaner.java:147)
at sun.misc.Cleaner$1.run(Cleaner.java:144)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.Cleaner.clean(Cleaner.java:144)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:141)
Caused by: java.io.IOException: Cannot allocate memory
at sun.nio.ch.FileChannelImpl.unmap0(Native Method)
at sun.nio.ch.FileChannelImpl.access$000(FileChannelImpl.java:40)
at sun.nio.ch.FileChannelImpl$Unmapper.run(FileChannelImpl.java:787)
at sun.misc.Cleaner.clean(Cleaner.java:142)
... 1 more
REGRESSION. Last worked in version 7u40
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Open RandomAccessFiles, create mappings and close them, repeatedly.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The error message shouldn't happen at all but if it does, it should be more meaningful. e.g. it should say it cannot allocate memory while de-allocating memory.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
Don't open, map and close files so fast.
- relates to
-
JDK-8067751 OOMEInReferenceHandler.java fails: Cleaner terminated abnormally
-
- Resolved
-
-
JDK-8066859 java/lang/ref/OOMEInReferenceHandler.java failed with java.lang.Exception: Reference Handler thread died
-
- Closed
-