facebook

Getting VM heap errors

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #393035 Reply

    bijurk
    Participant

    MyEclipse Enterprise Workbench
    Version: 2015 Stable 2.0
    Build id: 13.0.0-20150518

    Here’s the error:
    Error occurred during initialization of VM
    Could not reserve enough space for object heap

    1. Use MyEclipse to run an instance of the application on the local Tomcat server using DEBUG mode.
    2. Stop that instance.
    3. Recompile the application with some change.
    4. Publish the changes to the Tomcat installation.
    5. Restart the app in DEBUG mode

    Settings used for running the Tomcat server:
    -Xms512m -Xmx1024m -XX:MaxPermSize=256m

    Any ideas?

    Thanks,
    Biju

    #393049 Reply

    support-swapna
    Moderator

    Biju,

    Sorry that you are seeing this issue.

    If you are working with a 32 bit JVM, then changing the heap size to smaller would probabaly help. Try with -Xms256m -Xmx512m -XX:MaxPermSize=256m and see how it works.

    Please check the suggestions on these threads and see if they help :
    http://stackoverflow.com/questions/14023940/tomcat-not-starting-not-able-to-reserve-enough-space-for-object-heap
    http://blog.paulgu.com/java/6-common-errors-in-setting-java-heap-size/

    I suggest you also check on development forums for more information about the memory settings for Tomcat according to the VM.

    Let us know how it works for you.

    –Swapna
    MyEclipse Support

    #393938 Reply

    bijurk
    Participant

    Swapna:

    I am using 64-bit JVM.
    Also, with the lower settings our application does not work.

    Thanks,
    Biju

    #394112 Reply

    support-swapna
    Moderator

    Biju,

    Can you please give us some more information?

    1. Can you please clarify if you have tried increasing the memory settings since you are on 64 bit JVM ? Does that work?
    2. I assume you are working with external installation of Tomcat. Can you please start the Tomcat from outside MyEclipse and check if the issue persists ?
    3.Do you see the issue only when you restart the app in Debug mode and not at all times ?
    4. Let us know how much memory you have.

    –Swapna
    MyEclipse Support

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Getting VM heap errors

You must be logged in to post in the forum log in