Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-15365

Force ServiceBuilder to release references to ant classloader to prevent PermGen OOM

    Details

    • Branch Version/s:
      6.0.x, 5.2.x
    • Backported to Branch:
      Committed

      Description

      Since we changed ServiceBuilder to run in current java process, rather than fork a new process. Every time SB is invoked, it loads needed classes. Because the main exit does not terminate the current JVM, it is still holding references to previous ant classloader For task like "ant build-services" which calls SB a lot of times which causes PermGen grows fast, finally leads to OOM.

      This fix force SB to detach reference to ant classloader before exit to help recycle PermGen.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              shuyang.zhou Shuyang Zhou
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                10 years, 3 weeks, 5 days ago

                  Packages

                  Version Package
                  --Sprint - SP
                  6.1.0 CE RC1