-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MappedByteBuffer not release due to JDK11 does not support sun.misc.Cleaner #39
Comments
@0tanks Do you have an example for how to reproduce this issue? I tried running the unit tests and didn't see any output from the |
I am grad that you are looking on it. Refer to the test code below, and the screenshots after running for 1hrs+ (Ubuntu 22.04 + openjdk11) import com.leansoft.bigqueue.BigQueueImpl; public class Test {
} |
Hi,
MappedPageImpl current using sun.misc.Cleaner to clean up the mapped byte buffer of the index/data page files.
class sun.misc.Cleaner doest not exist in JDK11, for those app run on JDK11 will have issue on disk release.
with Ubuntu 18/OpenJDK11, use below command you can see the deleted files, and there didn't didn't release, until restart the app.
lsof -p | grep DEL
use htop command will see the process with high VIRT (run to 100G+)
There have sun.misc.Unsafe.invokeCleaner(java.nio.ByteBuffer directBuffer) available able to resolve that issue.
patch.diff.tar.gz
The text was updated successfully, but these errors were encountered: