I am having problem with multiple long running session happening in Oracle DB causing performance issues. Can anyone point out what parameter I need to change to alleviate this pain in the Database front. Or point out what is the problem.
We recently upgraded to jdk1.8 and Jboss 7.1.1EAP server from JDK1.6 and Jboss4.3.0GA and from Oracle SuSE to Linux Environment. The Database has not changed at all. Before this upgrade everything was working fine.
The standalone.xml has the following entries for datasource:
<datasource jndi-name="java:jboss/datasources/icamDataSrc" pool-name="icamDataSrc" enabled="true" use-java-context="true">
<connection-url>xxxxxxxxxx</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<driver>oracle</driver>
<pool>
<min-pool-size>0</min-pool-size>
<max-pool-size>500</max-pool-size>
</pool>
<security>
<user-name>xxxxx</user-name>
<password>xxxxxx</password>
</security>
<validation>
<valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleValidConnectionChecker"/>
<background-validation>true</background-validation>
<stale-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleStaleConnectionChecker"/>
<exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleExceptionSorter"/>
</validation>
DBA Comments : We have been noticing that there are session locks happening resulting into such slowness as there is application level concurrency happening.
Today, I have noticed that there were sessions locking/blocking each other.
CAM_APP@cghcts000000822.corporate.ge.com ( SID=1031 ) is blocking CAM_APP@cghcts000000817.corporate.ge.com ( SID=587 )
CAM_APP@cghcts000000822.corporate.ge.com ( SID=1031 ) is blocking CAM_APP@cghcts000000818.corporate.ge.com ( SID=587 )
@pwdbl0927pp02 ( SID=1031 ) is blocking
CAM_APP@cghcts000000817.corporate.ge.com ( SID=587 )
@pwdbl0927pp02 ( SID=1031 ) is blocking
CAM_APP@cghcts000000818.corporate.ge.com ( SID=587 )
CAM_APP@cghcts000000822.corporate.ge.com ( SID=1031 ) is blocking CAM_APP@cghcts000000822.corporate.ge.com ( SID=392 )
@pwdbl0927pp02 ( SID=1031 ) is blocking
CAM_APP@cghcts000000822.corporate.ge.com ( SID=392 )
Updates/Inserts/Deletes are all happening at the same time on the same table, and this pattern is seen since yesterday. Please review the jobs running and understand why such difference. This is an application locking that is happening, I do not see any issues with the database here.