1

Iam trying a Compiler in my java Eclipse. And I get the error :

Exception occurred during event dispatching:
java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(Unknown Source)

How to solve this?

Compiler compiles up to 185 files out of 414 files and then gets the exception. The memory is 1024M

6
  • 2
    What do images have to do with a compiler? Commented Sep 20, 2012 at 7:14
  • That should be ample memory usually. Is it always failing on the same file? Is there anything different about the file? (e.g. is it HUGE?) Commented Sep 20, 2012 at 7:15
  • BTW - "185 files" Are these .java files, .jpg or something else? By 'compiler' DYM code compilation? Commented Sep 20, 2012 at 7:16
  • no..its MIB files. and my project contains images Commented Sep 20, 2012 at 7:28
  • Your error implies Runtime OutOfMemoryError. You a saying it complies some out of more files. Does your project attempt to run some files before it compiles all? Do you describe what happens correctly? Commented Sep 20, 2012 at 7:32

2 Answers 2

1

Click on Run configuration in the Eclipse. Choose your application or server tab (which you want to have more memory size).

In the Argument tab, write -Xmx<memory size>. memory size is what you want to set.

Sign up to request clarification or add additional context in comments.

1 Comment

This solves the issue.. But This configuration works in local machine. And when I run the Compiler in another system, the same issue occurs.How to resolve?
1

set your Virtual Memory Argument -Xms128M -Xmx1024M -XX:MaxPermSize=128M like this

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.