Java Programming - Program Crash using -Xprof
My program runs without problems but when
I tried to use the -Xprof flag when running my program
it crashes consistently.
As soon as the program starts and the GUI displays
the entire GUI is unresponsive.
Since none of the menus or window buttons work there isnt
much I can do. After a few moments Windows says its
unresponsive and shuts it down.
I dont have any experience reading (intrepretting) the -Xprof output
but here it is. Im assuming the 2nd to last line implies that some
Threads are being horribly blocked?
Flat profile of 0.70 secs (24 total ticks): main
Interpreted +nativeMethod
4.5%1 +0sun.java2d.SurfaceData.initIDs
4.5%0 +1sun.awt.windows.WDesktopProperties.init
4.5%0 +1java.io.WinNTFileSystem.canonicalize0
4.5%0 +1java.lang.ClassLoader$NativeLibrary.load
4.5%0 +1java.io.RandomAccessFile.open
4.5%1 +0sun.awt.Win32GraphicsDevice.makeColorModel
4.5%0 +1sun.awt.windows.ThemeReader.getBoolean
4.5%1 +0javax.swing.plaf.basic.BasicDesktopPaneUI.<clinit>
4.5%1 +0sun.misc.Service$LazyIterator.<init>
4.5%1 +0sun.font.TrueTypeFont.<init>
4.5%1 +0java.lang.AbstractStringBuilder.append
4.5%1 +0java.util.Hashtable.get
4.5%1 +0AppMenuBar.<init>
4.5%1 +0java.awt.Component.show
4.5%1 +0javax.swing.UIManager.initialize
4.5%1 +0javax.swing.plaf.basic.BasicMenuItemUI.layoutMenuItem
4.5%1 +0sun.awt.FontConfiguration.readFontConfigFile
4.5%1 +0sun.java2d.windows.DDBlitLoops.register
4.5%1 +0javax.swing.plaf.basic.BasicLookAndFeel.initComponentDe
faults
86.4%14 +5Total interpreted
Thread-local ticks:
8.3%2 Blocked (of total)
13.6%3 Class loader
Flat profile of 7.23 secs (13 total ticks): Image Fetcher 1
Thread-local ticks:
100.0%13 Blocked (of total)
Flat profile of 7.24 secs (14 total ticks): Image Fetcher 0
Interpreted +nativeMethod
50.0%1 +0java.awt.MediaTracker.setDone
50.0%1 +0Total interpreted
Thread-local ticks:
85.7%12 Blocked (of total)
50.0%1 Class loader

