S
syg6
Hello all.
I have a general question about memory usage in JAI. When I issue a
JAI.create() command, like the following:
PlanarImage image = (PlanarImage) JAI.create("fileload", path);
I notice that the javaw.exe process jumps up to something like 50 Mb.
(The image weighs about 3Mb). I have tried everything I know to free up
memory after having processed the image, and nothing seems to work. I
have tried:
cache.flush()
image.dispose()
JAI.disableDefaultTileCache();
image.removeSinks()
No matter what I do the memory doesn't drop. I have read that the JAI
cache frees up space automatically (by deleting images) when more space
is needed. But from what I have seen the cache is not the problem; I do
a cache.flush() and it is emptied out but the memory used by the JVM
remains the same.
Any ideas on what could be happening here?
Thanks in advance,
syg
I have a general question about memory usage in JAI. When I issue a
JAI.create() command, like the following:
PlanarImage image = (PlanarImage) JAI.create("fileload", path);
I notice that the javaw.exe process jumps up to something like 50 Mb.
(The image weighs about 3Mb). I have tried everything I know to free up
memory after having processed the image, and nothing seems to work. I
have tried:
cache.flush()
image.dispose()
JAI.disableDefaultTileCache();
image.removeSinks()
No matter what I do the memory doesn't drop. I have read that the JAI
cache frees up space automatically (by deleting images) when more space
is needed. But from what I have seen the cache is not the problem; I do
a cache.flush() and it is emptied out but the memory used by the JVM
remains the same.
Any ideas on what could be happening here?
Thanks in advance,
syg