4 Replies Latest reply: Jul 17, 2013 12:50 AM by user10228719 RSS

    BLOCKED Threads by oracle.jdbc.driver.T2CConnection.t2cCreateState(Native Method)

    user10228719

      Hello ,

       

      We use apache DBCP  for connection pooling .We noticed that while retrieving the connection from pool we have many BLOCKED Thread.

      Thread dump shows that all the BLOCKED thread are blocked by a thread "HTTP Worker [@551419738]"  which is in RUNNABLE state and executing a native call..

       

      oracle.jdbc.driver.T2CConnection.t2cCreateState(Native Method)

       

      As I understand ,Native methods remain always in RUNNABLE state.. The method can be blocked on IO, any other event waiting or just long cpu intense task... or endless loop..

      Does any one came across this problem? any help in this regard is appreciated.

       

       

       

      "HTTP Worker [@44459726]" Id=21347 BLOCKED on java.lang.Class@6c58681e owned by "HTTP Worker [@551419738]" Id=21356

          at com.server.helper.EJBUtil.getResolvedConnection(EJBUtil.java:784)

          at com.server.helper.EJBUtil.getConnection(EJBUtil.java:773)

          at com.server.ws.messagingmonitor.MessagingMonitorHelper.logRequestIntoMessagingMonitor(MessagingMonitorHelper.java:460)

          at com.server.ws.messagingmonitor.MessagingMonitorHelper.logRequestIntoMessagingMonitor(MessagingMonitorHelper.java:427)

          at com.server.ws.valueobject.WSRequestLogger.doLogging(WSRequestLogger.java:22)

          at com.server.ws.service.MarketingService.saveDeal(MarketingService.java:84)

          at com.server.ws.service.MarketingService.saveMarketingDeal(MarketingService.java:31)

          at sun.reflect.GeneratedMethodAccessor857.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          ...

       

      "HTTP Worker [@2057972516]" Id=21346 BLOCKED on java.lang.Class@6c58681e owned by "HTTP Worker [@551419738]" Id=21356

          at com.server.helper.EJBUtil.getResolvedConnection(EJBUtil.java:784)

          at com.server.helper.EJBUtil.getConnection(EJBUtil.java:773)

          at com.server.ws.messagingmonitor.MessagingMonitorHelper.logRequestIntoMessagingMonitor(MessagingMonitorHelper.java:460)

          at com.server.ws.messagingmonitor.MessagingMonitorHelper.logRequestIntoMessagingMonitor(MessagingMonitorHelper.java:427)

          at com.server.ws.valueobject.WSRequestLogger.doLogging(WSRequestLogger.java:22)

          at com.server.ws.service.MarketingService.saveDeal(MarketingService.java:84)

          at com.server.ws.service.MarketingService.saveMarketingDeal(MarketingService.java:31)

          at sun.reflect.GeneratedMethodAccessor857.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          ...

       

      "HTTP Worker [@1709806738]" Id=21357 BLOCKED on java.lang.Class@6c58681e owned by "HTTP Worker [@551419738]" Id=21356

          at com.server.helper.EJBUtil.getResolvedConnection(EJBUtil.java:784)

          at com.server.helper.EJBUtil.getConnection(EJBUtil.java:773)

          at com.server.ws.messagingmonitor.MessagingMonitorHelper.logRequestIntoMessagingMonitor(MessagingMonitorHelper.java:460)

          at com.server.ws.messagingmonitor.MessagingMonitorHelper.logRequestIntoMessagingMonitor(MessagingMonitorHelper.java:427)

          at com.server.ws.valueobject.WSRequestLogger.doLogging(WSRequestLogger.java:22)

          at com.server.ws.service.MarketingService.saveDeal(MarketingService.java:84)

          at com.server.ws.service.MarketingService.saveMarketingDeal(MarketingService.java:31)

          at sun.reflect.GeneratedMethodAccessor857.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

          at java.lang.reflect.Method.invoke(Method.java:597)

          ...

       

      "HTTP Worker [@551419738]" Id=21356 RUNNABLE (in native)

          at oracle.jdbc.driver.T2CConnection.t2cCreateState(Native Method)

          at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:414)

          at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:552)

          at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:162)

          at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:53)

          at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)

          at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)

          at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)

          at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148)

          at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)

       

      Message was edited by: user10228719