Out Of Memory Exception Erorr
1 Answer(s)      3 years and 8 months ago
Posted in : Java Beginners

hello how are you?I hope you are fine I'm using jgrasp program my problem is in java programming my program compiled with no problem but when I run it this exception appears: Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"

I searched a lot in this subject but I didn't really understand very well I understood that I have to increase the program memory but I don't know how?! *I gone to run>>>run arguments then text Box appears I write in it :-Xmx2024m but nothing happened.((I'm not sure this a right way or not)) if you know the solution please help me,I will be thankful. if not thank you for your reading.

View Answers

October 15, 2012 at 3:29 PM

Hi Could you share the code and steps to reproduce the issue, looks like there is a memory leak in your java code.

Related Tutorials/Questions & Answers:
Out Of Memory Exception Erorr
Out Of Memory Exception Erorr  hello how are you?I hope you are fine... with no problem but when I run it this exception appears: Exception... understood that I have to increase the program memory but I don't know how?! *I gone
Index Out of Bound Exception
Index Out of Bound Exception       Index Out of Bound Exception  are the Unchecked Exception... the compilation of a program. Index Out of Bound Exception Occurs  when
memory  what is memory
Memory   what is the different between heap memory and stack memory ? please explain with example
memory   hi i am jane pls explain the difference between heap memory and stack memory
Out of bounce exception in the string reverse program - Java Beginners
Out of bounce exception in the string reverse program  In the given program below this is taken from ur site but when i am executing it.It is giving an exception like string out of bounce.So please give me the correct solution
memory management
memory management  memory management in java
heap and stack memory
is referred as temporary memory,if you come out of the program the memory... after v came out from the program]. While HEAP memory is referred as permanent memory,memory allocated for the object will be maintained even if we came out
exception  chek in and check out exception in java   Please visit the following link: Checked and Unchecked Exception
memory management
memory management  Why objects store in heap
Phantom memory
Phantom memory  What is phantom memory
Phantom memory
Phantom memory  hello,, What is phantom memory
memory allocation
memory allocation  If we assign memory malloc(5) and access more than the assigned memory then what will happen? 1.segmentation error 2.memory leak 3.program will not compile 4.Your view
memory layout
memory layout  how much space does each segement(data,stack,heap,static) holds in memory? memory here refers to ram or hard disk
heap memory
heap memory  how long is the object stored in heap memory persist
Memory Management
Memory Management  how can we manage memory in iphone development???   hello, you can read all the memory management rules from http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MemoryMgmt
Java memory optimization
Java memory optimization  When you think about optimization, what is the best way to find out the time/memory consuming process?  Hi, You can use memory dump and then analyze it to find the process/java code in your
Memory Allocation
Memory Allocation  What Is The Order Of Execution Of Statement 1) Statement Enclosed in {}. 2) Static 3) Public Static Void Main()   When jvm loads a class, static block is executed first, then main method. And at last
memory allocation
memory allocation   class Bird { { System.out.print("b1 "); } public Bird() { System.out.print("b2 "); } } class Raptor extends Bird { static... of execution of statement ? memory allocation ?  The code uses static
Java memory leak
Java memory leak  What is memory leak
arguments are not equalto two,throw a user defined exception "invalid parameter exception" ,otherwise display the two parameters.   Here is an example... is not equal to two then invalid parameter exception is thrown ,otherwise display the two
exception  what is the use of catch block even though we have predefined exception object
defined checked exception ââ?¬Å?InvalidCharcterFoundExceptionââ?¬Â? and creater a block of codes that will handle the exception
exception  example for numberformat exception   Hi Friend, Try the following code: class NumberFormatExceptionEx{ public static void...); } catch(Exception e){ System.out.println(e
Exception  whis is the Arithmetic Exception in java? or define Arithmetic Exception with exp?   Arithmetic Exception occurs, when you divide a number by zero. Example public class TryCatch { public static void main
Exception  public class FooException extends Exception { public..."); } public void calculate() throws FooException, Exception { try { int.... ex.printStackTrace(); System.exit(1); } catch(Exception ex
Exception   I was creating a table dynamically but it shows exception i.e shown down Suplier created0 Suplier created0 Suplier created0 Product created0 Product created0 Product created0 Product created0 could not fetch initial
user defined unchecked exception  can we create user defined unchecked exceptions? if so what is the exact use of it in real time?   Please visit the following links: http://www.roseindia.net/java/java-exception/user
exception  Identify the reason for SQLException exception, which is encountered when the developer tries to run the following code snippet to insert..."); ps.executeUpdate(); } catch(Exception e
Creating a memory leak with Java
Creating a memory leak with Java  Creating a memory leak with Java