I'm getting a java.lang.outofmemoryerror: java heap space exception.
I downloaded VisualVM to try and monitor.
It seems the heap size increases but never decreases, however the heap that's used stays reasonable flat, with the odd spike.
So the heap size doesn't seem to adjust down, only up, and I eventually get the exception. The system I'm using has 12GB of RAM so, no problem there.
it's the first time I have used VisualVM, so unsure what to look for