nio2: NIO.2 file API companion code (streaming 5 GB at -Xmx64m, handle leaks, WatchService, mmap)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KqJyCidz3ZgRyHABv2GVJh
This commit is contained in:
2026-09-30 19:14:31 +00:00
co-authored by Claude Sonnet 5.5
parent f4b732799d
commit 1ac2f6077a
30 changed files with 1072 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
$ uname -sr
Linux 6.18.44-fc-v50
$ nproc
2
$ java -version
openjdk version "25.0.4.1" 2026-08-18 LTS
OpenJDK Runtime Environment Temurin-25.0.4.1+1 (build 25.0.4.1+1-LTS)
OpenJDK 64-Bit Server VM Temurin-25.0.4.1+1 (build 25.0.4.1+1-LTS, mixed mode, sharing)
$ ulimit -n
20000
$ cat /proc/sys/fs/inotify/max_queued_events
16384
$ df -h (data directory, before)
Filesystem Size Used Avail Use% Mounted on
/dev/vda 252G 13G 29G 31% /
$ df -h (data directory, after deleting is done by the exit trap; shown here before)
Filesystem Size Used Avail Use% Mounted on
/dev/vda 252G 18G 25G 43% /