You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ppkarwasz (via GitHub)" <gi...@apache.org> on 2023/08/01 08:48:16 UTC

[I] MappedByteBuffer unmapping on JDK 9+ (logging-log4j2)

ppkarwasz opened a new issue, #1646:
URL: https://github.com/apache/logging-log4j2/issues/1646

   ## Description
   
   The `MemoryMappedFileAppender` fails to unmap its buffers on JRE 9+: the unmapping code (cf. [`MemoryMappedFileAppender#unsafeUnmap()`](https://github.com/apache/logging-log4j2/blob/92538f9752651f73e7bb66e490efc233959fa143/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/MemoryMappedFileManager.java#L225) requires:
   ```
   --add-opens java.base/java.nio=ALL-UNNAMED
   --add-exports java.base/jdk.internal.ref=ALL-UNNAMED
   ```
   These two permissions are not given by default.
   
   Since Java 9 the cleaner is accessible through `sun.misc.Unsafe#invokeCleaner` instead.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] MappedByteBuffer unmapping on JDK 9+ (logging-log4j2)

Posted by "ppkarwasz (via GitHub)" <gi...@apache.org>.
ppkarwasz closed issue #1646: MappedByteBuffer unmapping on JDK 9+
URL: https://github.com/apache/logging-log4j2/issues/1646


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org