Dtynin
DIIDevHeads IoT Integration Server
•Created by Dtynin on 6/7/2024 in #middleware-and-os
Why does Linux allocate so much virtual memory for Java compared to the heap size?
@Middleware & OS Hey guys, Why does Linux allocate so much virtual memory for Java compared to the heap size? Is there a way to fix this? Windows seems to behave differently
I tried setting a smaller heap (128 MB) but virtual memory stays high (210 MB).
-Default heap size: 64 MB
-Virtual memory used: 240 MB (causing problems!)
ulimit -v
doesn't help - setting it too low prevents the app from running.3 replies