my java application works ~1 day, (I use different libs for processing photo like ffmpeg, javacv, javacpp) and then I see that my app use 9,5Gb RAM.
I don't understand why my app use so a lot of memory.
I set -Xmx6G
In VisualVM I see that heap space size 188M
Meta Space use 141M
May be this helps
I read articles that Java use more RAM than heap space because there are JIT, Heap space, meta space, code, ant etc. But 9.5Gb is a lot of on my mind
Edited:
- Yes my app some times have exceptions java.lang.OutOfMemoryError: Java heap space