Current location: Hot Scripts Forums » Programming Languages » Everything Java » OutOfMemoryError


OutOfMemoryError

Reply
  #1 (permalink)  
Old 07-20-07, 04:03 AM
utd utd is offline
Newbie Coder
 
Join Date: Sep 2006
Location: richardson,texas
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
OutOfMemoryError

Hi, when i'm trying to execute my project I'm getting an exception which is as follows
Code:
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap s
ce
        at DataAnalysis.kohonen(DataAnalysis.java:472)
        at DataAnalysis.readfile(DataAnalysis.java:376)
        at DataAnalysis$submit.actionPerformed(DataAnalysis.java:215)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown So
ce)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(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)


When I;ve gone through the lines 472,376,215 to find out the exception, I could able to find like at those lines I've blank spaces in the sense that I've left those lines as blank. I didnt have any code at those locations.

I couldn't able to spot where exactly I'm getting that exception.
Could someone please help me out
Reply With Quote
  #2 (permalink)  
Old 10-01-11, 06:19 AM
jon001 jon001 is offline
Newbie Coder
 
Join Date: Sep 2011
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
either you have a bug that never releases memory and objects, or your program just requires a lot of memory. If it is the second case, you can increase the memore with the Java virtual machine parameter -Xmx.

If it is s bug you can use a memory profiler to see which objects are taking the memory.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 05:42 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.