Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8625949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:54:10+00:00 2026-06-12T07:54:10+00:00

Is the author suggesting that setting the initial perm size and maximum perm size

  • 0

Is the author suggesting that setting the initial perm size and maximum perm size values to the same value can prevent full GCs from happening?

A memory space, either Old or Permanent, is full and to accommodate new objects or classes, it needs 
to be expanded towards its max size, if the relevant parameters have different values. In other words, if 
‐Xms and ‐Xmx have different values and if the size of Old needs be increased from ‐Xms towards ‐Xmx 
to accommodate more objects, a FullGC is called. Similarly, if ‐XX:PermSize and ‐XX:MaxPermSize have 
different values and the Permanent Space needs to be increased towards ‐XX:MaxPermSize to 
accommodate new java classes, a FullGC is called. This can be avoided by always setting ‐Xms and ‐Xmx 
as well as ‐XX:PermSize and ‐XX:MaxPermSize to the same value.

Java Performance Tuning Whitepaper:
http://mfinocchiaro.files.wordpress.com/2008/07/java-virtual-machine-neutral.pdf

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T07:54:12+00:00Added an answer on June 12, 2026 at 7:54 am

    I think he is saying that.

    But I don’t think he is right. Certainly, I don’t recall ever having seen this mentioned in any official Sun / Oracle documents.

    Note that:

    • The linked “white paper” is not an Oracle / Sun document.
    • The author is not an Oracle / Sun employee.
    • The paper is rather old, and refers to Java 4 and Java 5 JVMs.

    It should be possible to get evidence one way or the other for this by turning on GC logging and seeing if there is a correlation between full GCs and heap expansions.


    I have (often) heard that setting the initial and max heap sizes to be the same reduces JVM warmup overheads. It is the assertion / implication that each heap expansion is preceded by a full GC that I am dubious about.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The author wrote that whenever the value of point changes the value of myRect's
Author, Committer and Pusher can be different person in Git, but git didn't store
As the author of a C# application, I found that troubleshooting issues reported by
I have a mysql table that is full of text that is latin encoded.
we have an author that wants to be able to easily bookmark various articles
I want to author an anchor tag that executes some JavaScript and then proceeds
I am considering starting a project so that I can learn more and keep
I'm receiving an error from roxygenize() that I can't understand. I have a package
A WP user with the role Author can post articles. On the blog in
I want to teach myself enough machine learning so that I can, to begin

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.