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

The Archive Base Latest Questions

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

I have the understanding that perm size is used to store meta data, that

  • 0

I have the understanding that perm size is used to store meta data, that would include byte code, static stuff etc.

My question how does usage of reflection affect the perm size, if it ever does.
I mean if Program-A uses normal way of running objects and Program-B uses reflection all over, how will the perm-sizes of the two programs compare?

  • 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-13T00:58:51+00:00Added an answer on May 13, 2026 at 12:58 am

    The perm space will grow when you execute code that will load new classes or internalize strings. The reflection classes have to be loaded that’s for sure. I’m not sure if the reflection API does use internalized strings heavily but it should not be to hard to find out.

    For example for the method getDeclaredMethod(String name, Class<?>... parameterTypes) the name parameter will be internalized.

    This snippet will nicely fills up the perm space:

    Random random = new Random();
    while(true){
        try {
            X.class.getDeclaredMethod(toBinaryString(random.nextLong()));
        } catch (Exception e) {
        }
    }
    

    alt text http://img4.imageshack.us/img4/9725/permgen.jpg

    In a real world application it will make no difference.

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

Sidebar

Related Questions

I have the understanding that using data access routines directly from presentation code is
From what little understanding of Cassandra I have, it seems that data locality is
My understanding is that when you have a view that's too small to easily
In Mongo my understanding is that you can have databases and collections. I'm working
I have an application which requires 3.5 (not SP1.) My understanding is that SP1
Let me state up front that I have an infantile understanding of Monads. I
I have two basic interface-related concepts that I need to have a better understanding
My understanding of Magento is that you can only have 2 themes loaded at
I have some basic questions around understanding fundamentals of Performance testing. I know that
It's possible that I'm not really understanding how git works here, but I have

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.