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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:00:37+00:00 2026-05-16T09:00:37+00:00

We have recently upgraded one of our applications from Java 1.4 to Java 6.

  • 0

We have recently upgraded one of our applications from Java 1.4 to Java 6.

With some load & performance tests, we observed that available memory stayed in general at much lower levels in Java 6 than at what it used to be with Java 1.4.

After some profiling on the app with Java 6, we noticed that many objects no longer referenced by any other objects (i.e. candidates for garbage collection) stayed in memory and were apparently never garbage collected. We took that as the explanation for the lower available memory.

Question is: did the way garbage collection behaves changed from Java 1.4 to Java 6?

  • 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-16T09:00:38+00:00Added an answer on May 16, 2026 at 9:00 am

    did the way garbage collection behaves changed from Java 1.4 to Java 6?

    Definitely!

    Java 1.4 to Java 6 is a pretty long timespan (almost 5 years between the initial releases and more than 8 years between the initial 1.4 release and the current Java 6 release, according to this wiki article).

    Many changes and optimizations are applied in that time and you should not really care as long as your program still works.

    Having more used memory only means that the JVM doesn’t waste time with garbage collection when it doesn’t need to. If you want it to use less memory, then you should reduce the maximum heap (or otherwise tweak the JVM parameters; this article explains how to do that in Java 5, much of the advice is still applicable).

    It’s somewhat different if you actually get OutOfMemoryError that you didn’t get previously. Then you should check how you use weak and soft references or as a last resort try to find out if you hit a JVM bug.

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

Sidebar

Ask A Question

Stats

  • Questions 490k
  • Answers 490k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Just gzip.GzipFile(fileobj=handle) and you'll be on your way -- in… May 16, 2026 at 9:51 am
  • Editorial Team
    Editorial Team added an answer If you're lucky enough to be able to target ASP.NET… May 16, 2026 at 9:51 am
  • Editorial Team
    Editorial Team added an answer Sounds to me as if your intranet's gate to the… May 16, 2026 at 9:51 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

We've recently upgraded one of our SSRS2005 servers to SSRS2008 and have found that
Our dev server was recently upgraded to PHP v5.2.13. With that upgrade we have
I have an old (around 5 years) enterprise application that I manage. Recently we
We recently upgraded our PHP and apache versions on our server. Prior to this
I have recently added the reCaptcha library for CodeIgniter (by copying files from the
I'm trying to better understand why one of our database update scripts failed to
I'm currently working on a quite big (and old, sigh) code base, recently upgraded
I recently upgraded jQuery to 1.4.2 and jQuery-UI to 1.8.2. Mistake or not, I
I recently upgraded a Flex 3 project to Flex 4 MX Only and prior
I have recently started using the -Wall compiler switch in an attempt to improve

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.