I have an app that uses a 2400x1800 buffered Image (which I know it takes a lot of resources), but it works perfectly more than 90% of the time. Takes 130 mb of RAM and uses 5% of CPU.
The problem is that, 10% of the time, it has a big lag and consumes only 40 to 50 mb RAM and uses 50% of CPU. Why didn't it eat the same memory?
I know I should post some code, but the app is really big, a link to something that might talk a bit about this particular issue would be of great help.