I have been performance-testing JBoss (3.0.2, JDK 1.4, Windows 2000 Server) and discovered (by OptimizeIt) that a static member of org.apache.log4j.NDC-class keeps references to all old threads in a Hashtable. Every time a client makes a call to JBoss a new Thread is created and because of NDC keeps a reference to it, it will never be garbage collected. Is it anyone that have any idea about if this a normal behaviour or what is causing this??
NDC been discussed in the dev list recently, you should check the archives.
There might be a fix in 3.03 or more likely in 3.04 but I can't remember for sure.