Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-19 Thread Wesley Wu
Hi Scott, I believe I've fixed this issue by adding @ApplicationScoped and @RequestedScoped annotation to my beans. :) Thanks for your efforts. -Wesley 2010/8/18 Wesley Wu wumen...@gmail.com: Hi Scott, Thanks for the checking. Today I double checked the CDI spec and got some new

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-19 Thread Wesley Wu
2010/8/20 Scott Ferguson f...@caucho.com: I still think there's a chance for a Resin leak; I just don't understand where it's coming from. I think so. The same code worked fine (no leak) in Resin 4.0.5. It shouldn't matter what context you're injecting from, as long as you're creating a new

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-19 Thread Scott Ferguson
Wesley Wu wrote: 2010/8/20 Scott Ferguson f...@caucho.com: I still think there's a chance for a Resin leak; I just don't understand where it's coming from. I think so. The same code worked fine (no leak) in Resin 4.0.5. Do you have access to the eclipse mat program or some

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-19 Thread Wesley Wu
I'll tried to do so. 2010/8/20 Scott Ferguson f...@caucho.com: Wesley Wu wrote: 2010/8/20 Scott Ferguson f...@caucho.com: I still think there's a chance for a Resin leak; I just don't understand where it's coming from. I think so. The same code worked fine (no leak) in Resin 4.0.5. Do

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-17 Thread Wesley Wu
Hi Scott, Thanks for the checking. Today I double checked the CDI spec and got some new knowledge. Nearly all my beans were not annotated with any scope, so that they should be @Dependent. Some of the beans were created (not injected) in a servlet filter via a static ObjectFactory. I think the

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-16 Thread Scott Ferguson
Wesley Wu wrote: Hi Scott, The memory leak circumstance was not spotted in Resin 4.0.5 and early 4.0.x versions. One of the inject path is: * A filter CmsPageFilter dispatch a request to a Jsp page through javax.servlet.RequestDispatcher.forward(request, response) * Jsp page called a

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-13 Thread Scott Ferguson
Wesley Wu wrote: Hi Scott, I've applied the 4.0.10 snapshot and the Alarm issue went away. Thanks. But Resin consumed all memory after certain hours and resulted in a halt or restart. I did a jrockit flight recording and found there was a slow heap increase during various GCs. The

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-13 Thread Wesley Wu
Hi Scott, The memory leak circumstance was not spotted in Resin 4.0.5 and early 4.0.x versions. One of the inject path is: * A filter CmsPageFilter dispatch a request to a Jsp page through javax.servlet.RequestDispatcher.forward(request, response) * Jsp page called a BeanMethod custom jsp tag *

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-13 Thread Wesley Wu
My BeanManager wrapper code @Singleton @Startup public class MDIObjectFactory { private static BeanManager beanManager; private static BeanManager getBeanManager() { if (beanManager == null) { try {

[Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-11 Thread Wesley Wu
Hi Scott, I've applied the 4.0.10 snapshot and the Alarm issue went away. Thanks. But Resin consumed all memory after certain hours and resulted in a halt or restart. I did a jrockit flight recording and found there was a slow heap increase during various GCs. The recording file shows the