• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java Advanced Imaging problems

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Makiey,
Thanx for the input. We will try that option and find out.
Regards,
Sudharshan
 
Don't count your weasels before they've popped. And now for a mulberry bush related tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic