Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problems with memory performances on windows xp

user13025435Apr 2 2015 — edited Apr 2 2015

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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 30 2015
Added on Apr 2 2015
0 comments
138 views