Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-939

[PATCH] CleanerThread never terminates, causes leaks in webapp

    XMLWordPrintableJSON

Details

    Description

      org.apache.batik.util.CleanerThread does not self-terminate, nor is there a way to dispose of it programatically. When using Batik within a webapp, this prevents the webapp's classloader from being garbage collected, eventually causing PermGen: Out of Memory errors after several webapp redeploys. CleanerThread should expose some method that allows for it to be terminated.

      Patch attached which follows the same solution used in geotools package https://fisheye.codehaus.org/browse/GEOT-2742

      Attachments

        1. CleanerThread.java.patch
          3 kB
          Joel Carranza
        2. CleanerThread.java.patch
          3 kB
          Joel Carranza

        Activity

          People

            batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
            jec@gatekeeper.com Joel Carranza
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: