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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:33:39+00:00 2026-05-28T19:33:39+00:00

I am reading through the presentation Building memory efficient Java applications , and saw

  • 0

I am reading through the presentation “Building memory efficient Java applications”, and saw that on slide 11 they ask the question: “How many live collections in a typical heap?”

The answer is 10k to millions.

I will be very humble and say that I do not know where I would begin with this question.

What is a live collection vs a “not live collection”? By collections, do they mean java.util.collections?

Do collections live in the heap? I suppose since they are not allocated on the stack, that only leaves the heap.

What is implied by the revelation that there are 10k to millions of collections living on the heap? I can only assume that this is a bad thing.

  • 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-28T19:33:39+00:00Added an answer on May 28, 2026 at 7:33 pm

    Yes, they are referring to java.util collections. (They go into specifics on each collection type — HashSet, ArrayList, and so on — so yeah.)

    Collections do live on the heap, but once they can be garbage collected — once they’re not referenced by the running application — they are not considered “live.”

    A high number of collections on the heap is not a bad thing — it is just an indication that collections are being used so often as to warrant a closer look at the collection implementations, and specifically their memory efficiency. (It’s arguably a good thing that people are using good abstractions extensively!)

    They’re almost certainly not talking about just one application — I’d frankly assume that they took a number of real-world applications and ran an analysis on those.

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

Sidebar

Related Questions

I'm reading through the Zend Framework coding standards , where they state that curly
Reading through the CKEditor documentation , I see that they have an option to
When reading through parfib.hs code on github, I saw this comment about memory allocation
Reading through this question on multi-threaded javascript, I was wondering if there would be
Reading through some of the questions here, the general concensus seems to be that
Reading through the SendAsync , BeginAsync method illustrations of Socket s, I realized that
While reading through another question here, on creating a URL shortening service, it was
I've been reading through a lot of the rookie Java questions on finalize() and
Reading through some great presentations on low latency computing. They had a reference to
Reading through Thinking in Java i stuck in ex:6 of Inner Classes chapter. Exercise

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.