Uploaded image for project: 'Lucee Development'
  1. LDEV-960

Previous Lucee engines aren't GC'd when restarting via the admin

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: 4.5.4.008
    • Fix Version/s: 5.0.1.45
    • Labels:
      None

      Description

      When clicking the "restart" button in the Lucee admin, the previous engines are not garbage collected and finalizers do not get run because the application shutdown hooks are keeping a hard reference to the previous engine.

      See the attached screenshot that show the GC roots for a cache provider that is still being held in memory after Lucee was restarted via the admin. There will be duplicate copies of the entire engine in memory for every time the engine has been restarted. I assume the shutdown hooks need to be called manually and then unregistered from the JVM.

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              bdw429s Brad Wood
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: