Uploaded image for project: 'PUBLIC - Liferay Sync'
  1. PUBLIC - Liferay Sync
  2. SYNC-1240

Memory leak caused by failure to close threads

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.1 GA2
    • Fix Version/s: 1.2.2 GA3
    • Component/s: Infrastructure
    • Labels:
      None
    • Fix Priority:
      3
    • Affects Portal Version/s:
      6.1.20 EE GA2
    • OS:
      Windows 7
    • JDK:
      Oracle Sun JDK 7
    • Device Type:
      Desktop

      Description

      After some daily use of Liferay Sync 1.2.1 on Windows, connecting to www.liferay.com portal (6.1 GA2), I have detected a resource leak, Notify and Watcher threads are not stopped at UserSiteRootFolderMonitor.stopMonitor(long accountId).

      The memory usage of Liferay Sync process increase without limit, because there are some threads that never finish.

      Steps to reproduce:

      1. Install Liferay Sync 1.2.1 on Windows
      2. Configure Liferay Sync to syncronize with https://www.liferay.com (To avoid disk usage, you can syncronize all sites except "Guest" and "Liferay University)
      3. Wait until all files are downloaded (1 or 2 hours)
      4. When first sync is done, the problem begins
      5. Thread creation rate is 100 threads/hour
      6. Problem can be verified using "Java VisualVM" and "Process Explorer"

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

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

                Packages

                Version Package
                1.2.2 GA3