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 4609160
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:56:51+00:00 2026-05-22T00:56:51+00:00

When you start up a JVM WHERE it the PERM GEN allocated? Is it

  • 0

When you start up a JVM WHERE it the PERM GEN allocated? Is it part of the main HEAP or is it in addition to the HEAP size.

for example if I use the following parameters:

-server -Xms10G -Xmx10G -XX:MaxPermSize=1536M 

Is the total size of Java going to be 6G + 512M or 6.5G for Java or is the perm generation setup inside of the HEAP meaning that all running application will have 6G – 512M = 5.5MB for young / tenured(aka OLD) and Perm?

This graphic in 4. Sizing the Generations seems to imply it may be outside of the HEAP but I can’t seem to find some that states the for sure.
http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html

Looking at the output from jstat it would seem it would be on the outside of main HEAP but this may be just the way it is reported.

[jboss@pts03-taps-03 ~]$ jstat -gccapacity PID


 NGCMN    NGCMX     NGC     S0C   S1C       EC      OGCMN      OGCMX       OGC         OC      PGCMN    PGCMX     PGC       PC     YGC    FGC 


 85184.0  85184.0  85184.0 8512.0 8512.0  68160.0 10400576.0 10400576.0 10400576.0 10400576.0  21248.0 1572864.0 1387840.0 1387840.0    431    43


OGCMX = 10400576.0  (almost 10G OLD GEN)  
NGCMX = 85184.0  (OGCMX + NGCMX = very close to 10G NEW GEN)
PGCMX = 1572864.0  (1.5G PERM GEN)

If possible please provide a link to documentation showing you case to be true.

  • 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-05-22T00:56:52+00:00Added an answer on May 22, 2026 at 12:56 am

    -server -Xms10G -Xmx10G -XX:MaxPermSize=1536M

    The total of the heap and perm gen is going to be 11.5 GB. However there are other areas of memory, e.g. direct memory which can be just as big. Another area is shared libraries which is basically a fixed size.

    e.g. you can set

    -mx128m -XX:MaxPermSize=1g

    If the perm gen was insize the heap this would fail.

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

Sidebar

Related Questions

There are lots of parameters for JVM. Some start with - , such as
Does switching activities in Android start a fresh JVM? It seems like each activity
Normally to attach a debuger to a running jvm you would need start the
I start to write a client - server application using .net (C#) for both
I start a .Net server side program on my local workstation, but soon it
What is the minimum memory requirement to start JVM? I have the cheapest VPS
I am getting this error: Exception in thread main java.lang.OutOfMemoryError: Java heap space at
Does every execution of java command start a separate JVM?
I have a perm gen memory leak, that I know. Profiling using jvisualvm shows
is possible to overload a main method? If yes from which method the jvm

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.