Spring Framework
  1. Spring Framework
  2. SPR-6775

significant memory consumption in 3.0 vs 2.x

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0 GA
    • Fix Version/s: 3.0.1
    • Component/s: Core
    • Labels:
      None

      Description

      Quoting from the forums:

      I'm trying to migrate my application from 2.5.6 to 3.0.0. Surprisingly I can see a significant higher memory consumption in 3.0.0. The DefaultListableBeanFactory uses 8.5 mb in spring 2.5.6 and about 90 mb in spring 3.0.0. As far as I can see, a large part of the memory consumption is due to the usage of CachingMetadataReaderFactory.

        Activity

        Hide
        Costin Leau added a comment -

        Replaced the basic map with a fixed LRU cache.

        Show
        Costin Leau added a comment - Replaced the basic map with a fixed LRU cache.

          People

          • Assignee:
            Costin Leau
            Reporter:
            Costin Leau
            Last updater:
            Trevor Marshall
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              4 years, 11 weeks, 5 days ago