In the last several weeks we've been seeing a lot of confluence instabilities at wikis.sun.com - all of them were related to running out of heap space. Several iterations of increasing Xmx didn't help (we started at 3GB and now we are at 5GB and 64bit JVM).

      I took several memory dumps during outages and analyzed them with Eclipse Memory Analyzer, which repeatedly found two issues:

      • SAXParser memory leaks
      • hundreds of instances of net.sf.hibernate.impl.SessionImpl retaining 750MB+ heap memory

      At the same time I see that the dump contains total of 163 threads. Given that Confluence uses OpenSessionInView pattern, I'd expect to see less than 163 live session instances (since not all the threads are j2ee service threads).

      I'm attaching some annotated screenshots from Eclipse Memory Analyzer.

            [CONFSERVER-14989] Possible net.sf.hibernate.impl.SessionImpl Memory Leaks

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2890420 ] New: CONFSERVER Bug Workflow v4 [ 2982732 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2803041 ] New: JAC Bug Workflow v3 [ 2890420 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2734371 ] New: JAC Bug Workflow v2 [ 2803041 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2399780 ] New: JAC Bug Workflow [ 2734371 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2298735 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2399780 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2233476 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2298735 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2194789 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2233476 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1922960 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2194789 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v3 [ 1726571 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 1922960 ]
            Katherine Yabut made changes -
            Workflow Original: CONF Bug Subtask WF (TEMP) [ 1682402 ] New: Confluence Workflow - Public Facing - Restricted v3 [ 1726571 ]

              alynch Andrew Lynch (Inactive)
              15d9a6950818 Igor Minar
              Affected customers:
              1 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: