OutOfMemoryError « Development « Java Swing Q&A





1. Tool for java.lang.OutOfMemoryError: Java heap space , Java Swing Application    stackoverflow.com

I am working with a Java Swing Application. I am getting java.lang.OutOfMemoryError: Java heap space. I am not able to figure out which method is creating many objects or if there ...

2. Processing: Out of Memory error    stackoverflow.com

I'm using Processing. Here is the entirety of my sketch:

import guicomponents.*;

PImage backgroundImage;

void setup() {      
  size(911, 715); 
  backgroundImage = loadImage("Floorplan.png");
}
void draw() ...

3. java.lang.OutOfMemoryError: Java heap space in JasperReports    stackoverflow.com

In my swing application when I am going to print, following exception is given.but not always, like trice a time. it occurs when the following code is executed in jasper ...

4. java.lang.OutOfMemoryError    coderanch.com

hi ever played with the memory options of the JVM? for the java command in jdk 1.1.x they were: -mxNNm (to set heap size to NN MB) -msNNm (to set stack size to NN MB) for java2, i'm not sure but i think they changed - have a look at the manpages! hth Daniel

5. HELP: Using MediaTracker causes OutOfMemoryError    coderanch.com

The only thing I can think of, if indeed loading the images is the problem, is that the VM is so busy loading all 129 images, it doesn't get a chance to request more memory from the system and that's what causes it to run out of memory. Try loading the images in blocks of 10 or 20. Call Thread.yield() at ...

6. Getting Exception "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space    coderanch.com

Hi, I am trying to write a simple editor. Please see below for the code. When I try to open a big file of size more than 1 MB, I am getting the above exception. package swing_programs; import java.awt.*; import java.awt.event.ActionEvent; import java.io.*; import javax.swing.*; import javax.swing.filechooser.*; import javax.swing.text.*; import javax.swing.text.IconView; public class Editor extends JFrame { private JTextComponent textComp; private ...

8. how to solve this ERROR --java.lang.OutOfMemoryError: Java heap space    java-forums.org

I am Trying to read one TEXT file line by line. file size is approx. 7 MB or it contain approx. 35000 line of text. i am processing that file and export data into another file. mean while after some line i get error like below, java.lang.OutOfMemoryError: Java heap space After this error process stop. my application is in Java Swing ...