[Design of JBoss Web Services] - JAX-WS 2.1 and JBoss 4.2.2
by Marlboro
Hi,
I'm deploying our J2EE application with JAX-WS 2.1 on JBoss 4.2.2GA. Unfortunately I have suspition that JBoss and JAX-WS cause memory leaks because approximately after 24 hours with heavy load, JBoss crashes with OutOfMemory exception. And this happens when JAVA tries to allocate more than 2 GB of ram (Windows server 2003, 4 GB ram, 2x quad core Intel Xeon).
When I started my investigation, I used native memory profiler which showed that large memory is allocated from zip.dll. This is why I decided to take a look at class loader.
I found that in runtime a lot of classes are loaded by __JVM_DefineClass__ and org.jboss.mx.loading.UnifiedClassLoader3.
Below you can see how the number of loaded classes grows and also you can see classes which are loaded more than once. Also there is a link to screenshot from performance monitor with memory graphs http://www.3dspace.cz/perfmon.jpg.
JBoss started
Total classes: 8829
Class: 'com.upek.services.webutils.ServiceStatusServlet' count: 3x
Class: 'org.jboss.mq.il.http.servlet.HTTPServerILServlet' count: 2x
After 1 Operation
Total classes: 10501
Class: 'com.upek.services.webutils.ServiceStatusServlet' count: 3x
Class: 'org.jboss.mq.il.http.servlet.HTTPServerILServlet' count: 2x
After 25minuts of running
Total classes: 23441
Class: 'com.upek.services.crs.AuthChallenge$JaxbAccessorF_string2' count: 42671x
Class: 'com.upek.services.prov.ActivationResponse$JaxbAccessorF_transactionPacket' count: 42669x
Class: 'com.upek.services.prov.KeyProvision$JaxbAccessorF_string5' count: 42667x
Class: 'com.upek.services.crs.AuthChallengeResponse$JaxbAccessorF_result' count: 21336x
Class: 'com.upek.services.prov.Activate$JaxbAccessorF_arg3' count: 21335x
Class: 'com.upek.services.prov.KeyProvisionContinueResponse$JaxbAccessorF_result' count: 21334x
Class: 'com.upek.services.webutils.ServiceStatusServlet' count: 3x
Class: 'org.jboss.mq.il.http.servlet.HTTPServerILServlet' count: 2x
After 1hour of running
Total classes: 45340
Class: 'com.upek.services.crs.AuthResponseResponse$JaxbAccessorF_result' count: 107913x
Class: 'com.upek.services.prov.ActivationResponse$JaxbAccessorF_transactionPacket' count: 107893x
Class: 'com.upek.services.prov.KeyProvision$JaxbAccessorF_string5' count: 107891x
Class: 'com.upek.services.prov.DeviceInfo$JaxbAccessorF_publicX509SwEncryptKey' count: 107890x
Class: 'com.upek.services.prov.GetDeviceInfo$JaxbAccessorF_string2' count: 107889x
Class: 'com.upek.services.prov.IsActivated$JaxbAccessorF_string2' count: 107887x
Class: 'com.upek.services.crs.AuthChallengeResponse$JaxbAccessorF_result' count: 53957x
Class: 'com.upek.services.prov.ActivateContinue$JaxbAccessorF_arrayOfbyte2' count: 53947x
Class: 'com.upek.services.prov.KeyProvision$JaxbAccessorF_arrayOfbyte1' count: 53946x
Class: 'com.upek.services.prov.KeyProvisionContinueResponse$JaxbAccessorF_result' count: 53945x
Class: 'com.upek.services.prov.GetDeviceInfoResponse$JaxbAccessorF_result' count: 53944x
Class: 'com.upek.services.webutils.ServiceStatusServlet' count: 3x
Class: 'org.jboss.mq.il.http.servlet.HTTPServerILServlet' count: 2x
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173739#4173739
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173739
15 years, 8 months
[Design of JBoss IIOP on JBoss] - Configuration of Jboss with corba failed
by fatma
Hi all,
I am trying to configure the jboss server (4.2.0) to use corba instead of RMI.
So , I have done the following changes:
- I modify the file jndi.properties by adding the following lines:
java.naming.factory.initial=com.sun.jndi.cosnaming.CNCtxFactory
java.naming.provider.url=corbaloc::lidev206:5528/JBoss/Naming/root
and in the jboss.xml file I have included for each bean description the following entry:
<invoker-proxy-binding-name>iiop</invoker-proxy-binding-name>
But when starting the jboss server, I have the exception described below:
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: lidev206; port: 5528"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2172)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2193)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.(SocketOrChannelConnectionImpl.java:205)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.(SocketOrChannelConnectionImpl.java:218)
at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:101)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:152)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:118)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:211)
at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:345)
at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:205)
at com.sun.jndi.cosnaming.CNCtx.(CNCtx.java:69)
at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:32)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.(InitialContext.java:175)
at org.jboss.security.plugins.JaasSecurityManagerService.lookupCachePolicy(JaasSecurityManagerService.java:540)
at org.jboss.security.plugins.JaasSecurityManagerService.registerSecurityDomain(JaasSecurityManagerService.java:498)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.security.plugins.JaasSecurityDomain.startService(JaasSecurityDomain.java:403)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:490)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)
at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket(DefaultSocketFactoryImpl.java:60)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.(SocketOrChannelConnectionImpl.java:188)
... 75 more
Best Regards,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173592#4173592
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173592
15 years, 8 months