Hi all,
I've developed a java application for large image editing on windows xp: the used jdk version 7 build 75. I fixed memory leaks problems but I keep having troubles with memory management. I use the jvm parameter -XX:+AggressiveHeap and it seems to work fine for quite all images, except for big ones for which I cannot get any operative system handles to display them; the same images are displayed instead on win 7 or win 8.
I've seen on some forums that it is a problem of heap fragmentation and I'm pretty sure that it is the reason, in fact I've replaced the -XX:+AggressiveHeap parameter with -XX:UseG1GC that compacts heap and images are correctly displayed also on windows xp: but that solution is not resolutive because I have many out of memory errors now. Here below my questions:
- if I keep using -XX:+AggressiveHeapbut I need to know if there are some compatible jvm parameters to compact heap
- if I use G1 GC collector I need some jvm parameter to avoid out of memory errors: I set Xmx parameter to max RAM value but the problem still remains
Any suggestions are welcome.
Regards