1 Reply Latest reply on Feb 25, 2004 4:33 PM by Joachim Van der Auwera

    Memory Leak in Jboss 3.2.3 ?

    jboss.apathy.net Newbie

      I've been doing some development under Jboss 3.2.3 for a while and I'm noticing a problem:

      Each time I place a .ear file in the server's deploy directory, the memory usage for Jboss grows (expected behavior.)

      If I remove the .ear file, the server un-deploys the application, but the memory is not returned, even after some time.

      If I overwrite the .ear file, the server re-deploys the application. Each time this is done, memory usage grows, and is never returned.

      I'm using Jboss 3.2.3, under Mac OS 10.3.2. By default applications are limited to 250mbs of ram. Jboss starts up around 82mb with the .ear already in place. After about 15-17 re-deploys, Jboss triggers an Out-Of-Memory error. At that point it has exceeded the 250mb limit. The computer still has memory, it's just that Jboss has exceeded the limit.

      Am I missing something? It seems as though Jboss takes memory each time a deployment occurs and doesn't return it when things are un-deployed.

      Any help would be appreciated.



        • 1. Re: Memory Leak in Jboss 3.2.3 ?
          Joachim Van der Auwera Expert

          This is known behaviour (listed onder "bugs" somewhere).

          In any case, hot-deploying applications is considered a feature to make it easier on developers. It can be very practical on live systems as well, but is not to be used too often there.

          I think the problem with releasing the memory is that some code etc may still be around which relies on the old classes etc, so it is difficult to know when it can effectively be released.