on 02-06-2012 9:02 AM
I am getting java heap space error with following details in my console when i am trying to load a stack bar chart.
Exception in thread "AWT-EventQueue-2" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferUShort.<init>(Unknown Source)
at java.awt.image.Raster.createPackedRaster(Unknown Source)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
at sun.awt.image.SunVolatileImage.getBackupImage(Unknown Source)
at sun.awt.image.VolatileSurfaceManager.getBackupSurface(Unknown Source)
at sun.awt.image.VolatileSurfaceManager.initialize(Unknown Source)
at sun.awt.image.SunVolatileImage.<init>(Unknown Source)
at sun.awt.image.SunVolatileImage.<init>(Unknown Source)
at java.awt.GraphicsConfiguration.createCompatibleVolatileImage(Unknown Source)
at java.awt.GraphicsConfiguration.createCompatibleVolatileImage(Unknown Source)
at javax.swing.RepaintManager.getVolatileOffscreenBuffer(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at com.sap.xmii.applet.common.BaseApplet.paint(BaseApplet.java:840)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
My java version is Java - 6 Update 22
MII version - 12.1.8 Build 24
Kindly help me to solve this.
Thanks in advance.
Selva
Hi Selvakumar
This means that Java on your machine (where you are viewing the applet( is running low on heam memory and you need to increase it. This can be done in the following way (if your machine is a Windoes machine).
1. Go to Control Panel
2. Select Java (Or Java Plug-in)
3. Select Tab Java
4. You should see either "Java Applet Runtime Settings" or "Java Application Runtime Settings" or both or "Java Runtime Environment Settings".
5. Select view button next to either "Java Applet Runtime Settings" or "Java Runtime Environment Settings" (whichever is available). In my system I have Java 6 64bit on Windows 7 and I see only "Java Runtime Environment Setting". I have another system with Java 1.5 on XP (Pretty old machine) and I have the 2 options mentioned earlier. Not sure when this changed.
6. In the next screen in the Runtime Parameter section enter the value -Xmx<someinteger>m where some integer is the value in MBs you want for the heap. this should depend on your Ram and other properties.
If you want to know the current value of your heap you can try the URL
http://www.duckware.com/support/javahelp.html
Regards
Partha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Partha,
Thanks for your very quick reply,
My System java Memory was 91 MB .
If i double it also i am getting the similar error.
I have checked it in other 3 of our machines and similar thing is happening.
Its happening only with the stack bar chart in one particular page.
Rest other charts are loading fine.
Thanks,
Selva
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.