I have a program that uses a lot of images. It loads alot of images from file, and stores them so they are only loaded once. It also creates multiple BufferedImages, about 400x400, there would be no more than 10 of these.
The images from file total around 6MB. Each BufferedImage should be approx 400x400x4=640KB.
Yet, the memory usage is 500MB!
Some of this will be for the rest of the program, but I'm pretty sure that the images are taking up most of the space.
Does anyone know what to do about this? Or an alternative to BufferedImage that uses less memory?