facebook

What is the maximum values for -Xmx and -XXMaxPermSize

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #304222 Reply

    anandshah
    Member

    I would like to know what is the maximum value I can set for

    -vmargs
    -Xmx512m
    -XX:MaxPermSize=256m
    -XX:ReservedCodeCacheSize=64m

    In the myeclipse.ini file.

    Note that I have a quad core, 64-bit windows 2008 server with 8 Gb of RAM so I would like to go as high as 2 Gb if possible.

    -Anand

    #304232 Reply

    Anand,
    Is there any specific reason, why you want to increase the memory? Are you getting any out of memory errors?
    Increasing the memory values can cause the VM to fail immediately.
    Please refer to the following post
    https://www.genuitec.com/forums/topic/8-0-cannot-edit-myeclipse-ini-to-increase-memory-usage/

    #304233 Reply

    anandshah
    Member

    Hi Shalini,

    No, I have not yet received any out of memory errors. My code base is extremely large and as soon as I startup eclipse, I see it using most of the memory I assigned – probably for indexing all existing java files. So, I was going by the rule of thumb – the more memory I give myeclipse, the more information it can store in memory and the faster it should be in terms of response time.

    I am able to successfully update the memory upto

    -vmargs
    -Xmx1048m
    -XX:MaxPermSize=512m
    -XX:ReservedCodeCacheSize=64m

    But not go any further. If this is the maximum that MyEclipse can go than that is fine.

    #304267 Reply

    Loyal Water
    Member

    anandshah,
    There isn’t a limit persay — it’s just when you set the arguments too high for your machine’s capacity, weird things start happening.

    Like if I have 1 GB of physical RAM, and set Xmx1024m, I’ve seen situations where the VM will *crash* on startup, but if I back it down to like 512, it’s fine.

    I guess the max arguments you have pointed out are just fine.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: What is the maximum values for -Xmx and -XXMaxPermSize

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