I posted a message on the forums on this today and started to seach the lists...)
The call to remove makes NDC's more or less unusable for usercode, since any call to an EJB (or other stuff where a remove() is done) clears the NDC and the info is lost.
Would it be possible to only do removes when the thread dies? I assume
that there are places in the JBoss code that "knows" when the thread death occurs.
My current workaround is to use MDC instead and it seems to work as I want this far. Have not done any heavy testing on it though.
Regards /Mikael
At 10:57 2002-10-15 -0700, you wrote:
Okay.
I added the two calls to NDC.remove() and the maximum heap size now stays stable. I will try to get the changes integrated ASAP, pending Scott's approval.
++jeff
On Friday 11 October 2002 10:16 am, Jeffrey Wescott wrote: > Okay. I'll add those two remove() calls and post my findings. > > ++jeff > > On Thursday 10 October 2002 15:53, Scott M Stark wrote: > > Maybe, add a remove there as well and see if the problem goes away. > > > > xxxxxxxxxxxxxxxxxxxxxxxx > > Scott Stark > > Chief Technology Officer > > JBoss Group, LLC > > xxxxxxxxxxxxxxxxxxxxxxxx > > > > ----- Original Message ----- > > From: "Jeffrey Wescott" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, October 10, 2002 3:03 PM > > Subject: Re: [JBoss-dev] Possible leak in JBoss due to > > org.apache.log4j.NDC usage mistake? > > > > > > It's also used in the LoggingInterceptor, actually, whenever invokeHome > > is called. Perhaps that one is more problematic? > > > > ++jeff > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Jboss-development mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-development > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development