Uploaded image for project: 'PicketBox '
  1. PicketBox
  2. SECURITY-603

Long running thread leaks SimpleRole objects

XMLWordPrintable

    • Hide

      I attach a maven project which builds a war file which can be deployed on a JBoss 6.0.0.Final server. One has to add the 'admin' user and role to users.properties and roles.properties. One can invoke the long running call using curl:
      curl -u admin:admin -d '' http://<host>:<port>/simpleroletest-1.0/servletapi/admin/reindex

      Show
      I attach a maven project which builds a war file which can be deployed on a JBoss 6.0.0.Final server. One has to add the 'admin' user and role to users.properties and roles.properties. One can invoke the long running call using curl: curl -u admin:admin -d '' http://<host>:<port>/simpleroletest-1.0/servletapi/admin/reindex

      When invoking a long-running EJB method which makes a bunch of calls to some method in another EJB, then JBoss leaks SimpleRole objects. The SimpleRole objects are not removed by a manually triggered garbage collection.

      The SimpleRole object leakage seems to go away if I remove the security domain in jboss.xml. When running my jboss application during the night JBoss had 4GB of SimpleRole objects.

              mmoyses Marcus Moyses (Inactive)
              mmoyses Marcus Moyses (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: