1 2 Previous Next 16 Replies Latest reply on Jun 1, 2007 5:17 PM by maxandersen

    Out of Memory

    mcsous

      Hello,

      I'm using Exadel 4.0.4a, but I'm having some one problem. My computer have 1024mb of RAM, and I setted init configurations like instalations instructions on Exadel site. -clean 512mb... and so on. Always I'm receiving Out of memory problem. My jre is 1.6u1.

      Thanks,

      Marcos Sousa

        • 1. Re: Out of Memory
          maxandersen

          did you set the maxpermsize ?

          • 2. Re: Out of Memory
            mcsous

            Yes,

            I used the follow arguments:

            -clean -vmargs -Xms512m -Xmx512m -XX:MaxPermSize=128m

            Thanks

            • 3. Re: Out of Memory
              maxandersen

              and you get outofmemory as soon as you start ?

              weird because I run with about the same settings and don't have a problem.

              • 4. Re: Out of Memory
                mcsous

                No,

                The problem occurs after some time, when I stated Tomcat, open some xhtml and java files and web.xml or faces-config.xml.

                Ps.: I run and eclipse become slow as soon as I start.

                Thanks.

                • 5. Re: Out of Memory
                  maxandersen

                  Are you 100% sure that the settings are actually taking effect ?

                  • 6. Re: Out of Memory
                    fabricio.lemos

                    The same problem occurs with me and with a lot of guys of my work. We are running on Windows (2000 and XP) with 1GB RAM and JDK 1.5. Sometimes a Out of memory message shows and other times the eclipse just crash with no message.

                    • 7. Re: Out of Memory
                      maxandersen

                      damn - I can only get there if i start doing huge hql queries or something that I know eats memory.

                      Are you also running with the permsize set ?

                      I guess i'll need to investigate this some more...would be great with some reproduciable setup.

                      • 8. Re: Out of Memory
                        fabricio.lemos

                        My configurations in eclipse.ini file are:
                        eclipse -clean -vmargs -Xms512m -Xmx512m -XX:MaxPermSize=256m

                        The problem appears at most when I start the Jboss in the Server View or when I open a XHTML file (even a very small one) in the Exadel HTML Editor.

                        I´m using eclipse 3.2.2 and WTP 1.5.4.

                        • 9. Re: Out of Memory
                          maxandersen

                          what platform?

                          • 10. Re: Out of Memory
                            fabricio.lemos

                            Windows 2000 SP4

                            • 11. Re: Out of Memory

                              What is the project size? Did you migrates recently from older Eclipse? What was actually consumed before you have out of memory? Can you try to load Eclipse under remote management like I explain there http://blog.exadel.com/?p=9
                              and see memory graph? 512M for some projects may be really insufficient.

                              • 12. Re: Out of Memory
                                fabricio.lemos

                                It is a really small project. It has only 10 Java classes, 3 XHTML files and some configuration files. The other projects from my workspace are all closed, except for one that is also small.
                                I will try the remote management as described.

                                thank you!

                                • 13. Re: Out of Memory
                                  dgolovin

                                   

                                  "fabricio.lemos" wrote:
                                  My configurations in eclipse.ini file are:
                                  eclipse -clean -vmargs -Xms512m -Xmx512m -XX:MaxPermSize=256m

                                  The problem appears at most when I start the Jboss in the Server View or when I open a XHTML file (even a very small one) in the Exadel HTML Editor.

                                  I´m using eclipse 3.2.2 and WTP 1.5.4.

                                  There are errors in eclipse.ini file, that's the reason of OutOfMemory exception:
                                  1. 'eclipse -clean' should be removed, that's for sure, I've just checked it.
                                  2. Place every parameter on separate line. Your eclipse.ini must look like

                                  -vmargs
                                  -XX:MaxPermSize=256M
                                  -Xmx512M

                                  You can check that eclipse is picked up your parameters through Windows Task Manager. I did it this way. If something is wrong java process uses around 140M (I also have 1G) of memory and never exceeds 150M for big projects.

                                  • 14. Re: Out of Memory
                                    maxandersen
                                    1 2 Previous Next