Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to increase the Java Heap size ?

807601Feb 24 2008 — edited Feb 24 2008
Hi

I am new to java. I have created a java application and i configured in Eclipse. While running my application it throws an error that

"Exception in thread "Thread-21" java.lang.OutOfMemoryError: Java heap space"

i have used threads in my application. Then i searched some forums regarding this. The answer i got is "Increase the java heap size" using
"java -Xms64m -Xmx256m prog" in command prompt. while running.

But i am not running my application in command prompt. I used Eclipse to run my application. Here my ultimate question is how to set the heap size while running the application in Eclipse and where to set in Eclipse.

Kindly help me.

Regards
Ramesh E
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2008
Added on Feb 24 2008
6 comments
439 views