[jboss-user] [JBoss Portal] - Facing Connection leak ( INACTIVE State) Problem - Jboss Portal 2.7.2

Asheesh Patel do-not-reply at jboss.com
Thu Jul 11 09:28:08 EDT 2013


Asheesh Patel [https://community.jboss.org/people/asheesh.patel] created the discussion

"Facing Connection leak ( INACTIVE State) Problem - Jboss Portal 2.7.2"

To view the discussion, visit: https://community.jboss.org/message/827547#827547

--------------------------------------------------------------
Hi All, 

I am seeing there are many connection in 'INACTIVE' state and are present for more than 12-15 hours. Most of the sessions (around 90%) have executed the below query to JBP_INSTANCE_PER_USER table before moving to inactive state 

Checked from last query executed from v$session table and prev_sql_id 


[org.hibernate.SQL] select persistent0_.PK as PK6_0_, persistent0_.INSTANCE_PK as INSTANCE2_6_0_, persistent0_.SER_STATE as SER3_6_0_, persistent0_.USER_ID as USER4_6_0_, persistent0_.PORTLET_REF as PORTLET5_6_0_ from JBP_INSTANCE_PER_USER persistent0_ where persistent0_.INSTANCE_PK=? and persistent0_.USER_ID=? 


The open connection count is reaching to DB threshold value and the inactive sessions are not getting utilized for serving the new request and DB is creating the new connection. Also I have found the PortalDS connection is running out of connection while checking from JMX console. The in-use connection is touching the maximum connection count and available connection count to zero. 

We are using below environment for our application: 
*Application server:* Jboss Portal Application 2.7.2 
*OS:* Linux 

I also did the code review for connection leak, but seems the above query is getting executed by Jboss internally while user logs-in to application portal. 
Can anyone please help me out, if encountered the similar problem in Jboss portal application server. Let me know if need more information for issue. 


Thanks,
Asheesh Patel
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/827547#827547]

Start a new discussion in JBoss Portal at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2011]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130711/b57022fe/attachment.html 


More information about the jboss-user mailing list