Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-1058

Jars in web tmp dir locked on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5.3
    • 2.7.0
    • Broker
    • None
    • Windows

    Description

      The embedded jetty web server's WebAppClassloader holds up webapp's jar files and does not release them after close. For that reason the web app's temp dir cannot be cleaned up on Windows. (Other platforms like Linux doesn't prevent a force delete of files even they are not released).
      As long as this behavior exists we need to have a workaround to let
      the tmp dir be cleaned up.
      It is possible that we use a 'customized' classloader to replace jetty's
      WebAppClassloader, in which we manually iterate every JarFile resources
      and close them.

      Attachments

        Activity

          People

            gaohoward Howard Gao
            gaohoward Howard Gao
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 20m
                2h 20m