• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Advanced Imaging problems

 
Sudharshan Govindan
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
We use Java Advanced Imaging extensively in our project to manipulate images online ( web based ).
When we ran jprobe on screens while the image is being manipulated & being drawn on the screen lots of Memory is consumed. We observed system free memory decreases by 2-3 MB to zoom in on a 60K image !
We have tuned and prevented all kinds of memory leaks from code which is in our control but not much of an improvement. I want to know if there is any one out there who has expertise on Java Advanced Imaging and advise us if there are tweaks that can be done on JAI API calls or use alternate calls that will help reduce memory consumption.
Any feedback & pointers to appropriate URI's is greatly appreciated.
Regards,
Sudharshan
 
makiey bartsch
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to define the new TileCache:
> TileCache cache =JAI.getDefaultInstance).getTileCache();
> long size = 32*1024*1024L; // 32 megs
> cache.setMemoryCapacity(size);
 
Sudharshan Govindan
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Makiey,
Thanx for the input. We will try that option and find out.
Regards,
Sudharshan
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!