I just inherited a desktop application that is under performing on simple tasks. Running jvisualvm to profile the code I noticed the method sun.awt.image.ImageFetcher.run
is responsible for the majority of the time, taking over 5 seconds when displaying a simple form.
I checked the entire codebase and the only images were small png icons (< 1kb each) and the icons from awt itself, and found no reference to external images.
What could be happening here? Is ImageFetcher
triggering other code (which the profiler doesn't show) or is there some reason for image loading taking this long?