Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » java.lang.OutOfMemoryError
java.lang.OutOfMemoryError [message #177055] Fri, 27 October 2006 16:07 Go to next message
Eclipse UserFriend
Originally posted by: fariano2003.yahoo.com

After running my code, I end up with java.lang.OutOfMemoryError and some
of the objects do not show on the screen untill I stretch the window using
the mouse. I do not know if this is a java issue or an Eclipse issue. How
can this problem be investigated/resolved?

Thanks
Re: java.lang.OutOfMemoryError [message #177070 is a reply to message #177055] Fri, 27 October 2006 16:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wayne.beaton._NOSPAM_eclipse.org

Fariano wrote:
> After running my code, I end up with java.lang.OutOfMemoryError and some
> of the objects do not show on the screen untill I stretch the window
> using the mouse. I do not know if this is a java issue or an Eclipse
> issue. How can this problem be investigated/resolved?
>
> Thanks
>
What kind of application is it? Is it Swing-based or Eclipse RCP? Is
there a stack trace?

Did you try bumping up the amount of memory available to Java?

Wayne
Re: java.lang.OutOfMemoryError [message #177094 is a reply to message #177070] Fri, 27 October 2006 16:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fariano2003.yahoo.com

Wayne,
I am using Swing-based Eclipse and I am not familiar with stack trace; I
am new to java. How do I bump up amount of memory to java? Can it be done
through Eclipse?

Thanks
Re: java.lang.OutOfMemoryError [message #177118 is a reply to message #177094] Fri, 27 October 2006 17:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wayne.beaton._NOSPAM_eclipse.org

Fariano wrote:
> Wayne,
> I am using Swing-based Eclipse and I am not familiar with stack trace; I

Is there any output in the Eclipse console?

> am new to java. How do I bump up amount of memory to java? Can it be
> done through Eclipse?

For information about command line options for Java (on Windows), see:

http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/java.ht ml

In Eclipse, open the launch configuration for your application ("Run >
Run..."), switch to the "Arguments" tab, and enter -Xmx256MB (or
something like that) into the "VM Arguments" box.

Wayne
Re: java.lang.OutOfMemoryError [message #177161 is a reply to message #177118] Fri, 27 October 2006 19:31 Go to previous message
Eclipse UserFriend
Originally posted by: fariano2003.yahoo.com

The console shows the OutOfMemory error message (and a list of files it
has problem with). There is a good chance that the problem is the heap
memory. I will change the size and hopefully it would work. Thanks for
the help Wayne.
Previous Topic:execution control with a forms-based editor ?
Next Topic:Using Eclipse with Ruby
Goto Forum:
  


Current Time: Fri Apr 26 19:34:26 GMT 2024

Powered by FUDForum. Page generated in 0.07873 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top