terminal-recall
terminal-recall copied to clipboard
Excessive off-heap memory consumption
TRCL is eating too much memory, to the point of causing swapfile lag on a 4GB system even after the program is closed and is slowing development. Limiting heap size doesn't work because the issue appears to be off the Java heap.
As such, the JVM is not up-front as to what the real consumption source is:
Possible causes:
- Too many directly-allocated buffers (looking into this)
- Excess off-heap memory usage by JOGAmp
- Excess AMD OpenGL driver memory usage (this should register in Xorg, which is giving a reasonable 200MB under heavy use - and not Java) This used to be an issue but appears to be fixed with the new Omega driver(s).
It'd be nice if TRCL would someday actually use ~805MB of RAM* like VisualVM likes to claim it is (and what I specified it to use) instead of roughly double that.
*Recent memory optimizations mean this max heap size might be pushed down to 512MB in the future.
It maxed at 1.199GB yet managed to push a 4GB linux system to swap.
Partial control. Off-heap is a lot sketchier but there are ways with JVM flags which are being tweaked now.
Persists through JDK 8.