java.lang.OutOfMemoryError: Java heap space

Jive Software Open Source | Matt Tucker | 10 years ago
  1. 0

    Loading large transcrpts freezes the entire UI and can cause OOM (below). We need to: 1) Not load transcripts in the UI thread and show a progress icon. 2) Load a max amount of data. I think we should start at the end of the file and read backwards for up to 500kb. Anything more than that we should not show. Is it possible to page data in and out of a swing text area? If so, we could do it at 100KB at a time or something? Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space at javax.swing.text.GapContent.allocateArray(Unknown Source) at javax.swing.text.GapVector.resize(Unknown Source) at javax.swing.text.GapVector.shiftEnd(Unknown Source) at javax.swing.text.GapContent.shiftEnd(Unknown Source) at javax.swing.text.GapVector.open(Unknown Source) at javax.swing.text.GapVector.replace(Unknown Source) at javax.swing.text.GapContent.insertString(Unknown Source) at javax.swing.text.AbstractDocument.handleInsertString(Unknown Source) at javax.swing.text.AbstractDocument.insertString(Unknown Source) at org.jivesoftware.spark.ui.ChatArea.insertText(ChatArea.java:262) at org.jivesoftware.spark.ui.ChatArea.insert(ChatArea.java:243) at org.jivesoftware.spark.ui.ChatArea.setText(ChatArea.java:191) at org.jivesoftware.spark.ui.TranscriptWindow.insertHistoryMessage(Trans criptWindow.java:387) at org.jivesoftware.sparkimpl.plugin.transcripts.ChatTranscriptPlugin$6$ 1.doRun(ChatTranscriptPlugin.java:289) at org.jivesoftware.spark.util.SwingTimerTask.run(SwingTimerTask.java:26 ) 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)

    Jive Software Open Source | 10 years ago | Matt Tucker
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    Loading large transcrpts freezes the entire UI and can cause OOM (below). We need to: 1) Not load transcripts in the UI thread and show a progress icon. 2) Load a max amount of data. I think we should start at the end of the file and read backwards for up to 500kb. Anything more than that we should not show. Is it possible to page data in and out of a swing text area? If so, we could do it at 100KB at a time or something? Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space at javax.swing.text.GapContent.allocateArray(Unknown Source) at javax.swing.text.GapVector.resize(Unknown Source) at javax.swing.text.GapVector.shiftEnd(Unknown Source) at javax.swing.text.GapContent.shiftEnd(Unknown Source) at javax.swing.text.GapVector.open(Unknown Source) at javax.swing.text.GapVector.replace(Unknown Source) at javax.swing.text.GapContent.insertString(Unknown Source) at javax.swing.text.AbstractDocument.handleInsertString(Unknown Source) at javax.swing.text.AbstractDocument.insertString(Unknown Source) at org.jivesoftware.spark.ui.ChatArea.insertText(ChatArea.java:262) at org.jivesoftware.spark.ui.ChatArea.insert(ChatArea.java:243) at org.jivesoftware.spark.ui.ChatArea.setText(ChatArea.java:191) at org.jivesoftware.spark.ui.TranscriptWindow.insertHistoryMessage(Trans criptWindow.java:387) at org.jivesoftware.sparkimpl.plugin.transcripts.ChatTranscriptPlugin$6$ 1.doRun(ChatTranscriptPlugin.java:289) at org.jivesoftware.spark.util.SwingTimerTask.run(SwingTimerTask.java:26 ) 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)

    JIRA | 10 years ago | Matt Tucker
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    Loading large transcrpts freezes the entire UI and can cause OOM (below). We need to: 1) Not load transcripts in the UI thread and show a progress icon. 2) Load a max amount of data. I think we should start at the end of the file and read backwards for up to 500kb. Anything more than that we should not show. Is it possible to page data in and out of a swing text area? If so, we could do it at 100KB at a time or something? Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space at javax.swing.text.GapContent.allocateArray(Unknown Source) at javax.swing.text.GapVector.resize(Unknown Source) at javax.swing.text.GapVector.shiftEnd(Unknown Source) at javax.swing.text.GapContent.shiftEnd(Unknown Source) at javax.swing.text.GapVector.open(Unknown Source) at javax.swing.text.GapVector.replace(Unknown Source) at javax.swing.text.GapContent.insertString(Unknown Source) at javax.swing.text.AbstractDocument.handleInsertString(Unknown Source) at javax.swing.text.AbstractDocument.insertString(Unknown Source) at org.jivesoftware.spark.ui.ChatArea.insertText(ChatArea.java:262) at org.jivesoftware.spark.ui.ChatArea.insert(ChatArea.java:243) at org.jivesoftware.spark.ui.ChatArea.setText(ChatArea.java:191) at org.jivesoftware.spark.ui.TranscriptWindow.insertHistoryMessage(Trans criptWindow.java:387) at org.jivesoftware.sparkimpl.plugin.transcripts.ChatTranscriptPlugin$6$ 1.doRun(ChatTranscriptPlugin.java:289) at org.jivesoftware.spark.util.SwingTimerTask.run(SwingTimerTask.java:26 ) 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)

    Jive Software Open Source | 10 years ago | Matt Tucker
    java.lang.OutOfMemoryError: Java heap space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    OutOfMemory Exception : java heap space

    Google Groups | 6 months ago | deepak singh
    java.lang.OutOfMemoryError: Java heap space* *java.lang.OutOfMemoryError: Java heap space*
  6. 0

    OutOfMemory Exception : java heap space

    Google Groups | 6 months ago | deepak singh
    java.lang.OutOfMemoryError: Java heap space* *java.lang.OutOfMemoryError: Java heap space*

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at javax.swing.text.GapContent.allocateArray()
    2. Java RT
      AbstractDocument.insertString
      1. javax.swing.text.GapContent.allocateArray(Unknown Source)
      2. javax.swing.text.GapVector.resize(Unknown Source)
      3. javax.swing.text.GapVector.shiftEnd(Unknown Source)
      4. javax.swing.text.GapContent.shiftEnd(Unknown Source)
      5. javax.swing.text.GapVector.open(Unknown Source)
      6. javax.swing.text.GapVector.replace(Unknown Source)
      7. javax.swing.text.GapContent.insertString(Unknown Source)
      8. javax.swing.text.AbstractDocument.handleInsertString(Unknown Source)
      9. javax.swing.text.AbstractDocument.insertString(Unknown Source)
      9 frames
    3. org.jivesoftware.spark
      TranscriptWindow.insertHistoryMessage
      1. org.jivesoftware.spark.ui.ChatArea.insertText(ChatArea.java:262)
      2. org.jivesoftware.spark.ui.ChatArea.insert(ChatArea.java:243)
      3. org.jivesoftware.spark.ui.ChatArea.setText(ChatArea.java:191)
      4. org.jivesoftware.spark.ui.TranscriptWindow.insertHistoryMessage(TranscriptWindow.java:387)
      4 frames
    4. org.jivesoftware.sparkimpl
      ChatTranscriptPlugin$6$1.doRun
      1. org.jivesoftware.sparkimpl.plugin.transcripts.ChatTranscriptPlugin$6$1.doRun(ChatTranscriptPlugin.java:289)
      1 frame
    5. org.jivesoftware.spark
      SwingTimerTask.run
      1. org.jivesoftware.spark.util.SwingTimerTask.run(SwingTimerTask.java:26)
      1 frame
    6. Java RT
      EventDispatchThread.run
      1. java.awt.event.InvocationEvent.dispatch(Unknown Source)
      2. java.awt.EventQueue.dispatchEvent(Unknown Source)
      3. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      4. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      5. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      6. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      7. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      8. java.awt.EventDispatchThread.run(Unknown Source)
      8 frames