[jboss-dev-forums] [Design of EJB 3.0] - Re: EJB3 Classloader Leak (EJBTHREE-1442)
wolfc
do-not-reply at jboss.com
Thu Sep 11 10:28:57 EDT 2008
The proxy ends up in the ejb3-connectors class loader, which is wrong. This happens for every remote invocation.
This shows why:
Heap walker - Allocations
| Session: JBoss 5.x on localhost
| Time of export: Thursday, September 11, 2008 4:14:46 PM CEST
| JVM time: 83:33
|
| Current object set: 1 instance of java.lang.Class
| Selection steps: 4 selection steps, 16 bytes shallow size
|
| 0.0% - 0 bytes - 0 alloc. org.jboss.remoting.transport.socket.ServerThread.run
| 0.0% - 0 bytes - 0 alloc. org.jboss.remoting.transport.socket.ServerThread.dorun
| 0.0% - 0 bytes - 0 alloc. org.jboss.remoting.transport.socket.ServerThread.processInvocation
| 0.0% - 0 bytes - 0 alloc. org.jboss.remoting.transport.socket.ServerThread.completeInvocation
| 0.0% - 0 bytes - 0 alloc. org.jboss.remoting.ServerInvoker.invoke
| 0.0% - 0 bytes - 0 alloc. org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke
| 0.0% - 0 bytes - 0 alloc. org.jboss.aop.Dispatcher.invoke
| 0.0% - 0 bytes - 0 alloc. java.lang.reflect.Method.invoke
| 0.0% - 0 bytes - 0 alloc. org.jboss.ejb3.proxy.factory.session.SessionProxyFactoryBase.createProxyBusiness
| 0.0% - 0 bytes - 0 alloc. org.jboss.ejb3.proxy.factory.ProxyFactoryBase.createProxyConstructor
| 100.0% - 16 bytes - 1 alloc. java.lang.Class.getConstructor
The proxy should have ended up in the same class loader as the business interface. That's the job of the ObjectFactory.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4175879#4175879
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4175879
More information about the jboss-dev-forums
mailing list