<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: LockAcquisitionException while adding content in repository. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/lockacquisitionexception-while-adding-content-in-repository/m-p/243511#M196641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your error message is documented here&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://publib.boulder.ibm.com/infocenter/db2luw/v8/topic/com.ibm.db2.udb.doc/core/rsql0900.htm" rel="nofollow noopener noreferrer"&gt;http://publib.boulder.ibm.com/infocenter/db2luw/v8/topic/com.ibm.db2.udb.doc/core/rsql0900.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SQL0911N The current transaction has been rolled back because of a deadlock or timeout. Reason code 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reason code 2 is&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;transaction rolled back due to deadlock. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a perfectly normal occurrence when there are multiple competing transactions. In a transaction collision, one transaction will win and the others will have to be retried. Normally Alfresco's RetryingTransactionHelper will handle such LockAcquisitionExceptions by retrying the transaction after a random 'back off' interval, up to the number of times configured in&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;server.transaction.max-retries&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco will only give up and log the exception if this number of retries is exceeded. The default is 40. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is why, in the default Alfresco log4j configuration we have the following setting, which stops Hibernate from logging exceptions which are handled and retried by Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.logger.org.hibernate.util.JDBCExceptionReporter=fatal&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the first thing to check is that your log configuration isn't allowing org.hibernate.util.JDBCExceptionReporter to report INFO, WARN or ERROR messages. I am not sure how this is controlled in Websphere, and I have a feeling that the default Websphere settings might be letting these through. So it may well be that you can ignore these messages if you can confirm they are coming from JDBCExceptionReporter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the transactions are actually getting retried 40 times and still failing then this suggests that the server is seriously overloaded. I would be surprised if this is the case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could experiment with different values for these parameters to see how it affects the frequency of these errors&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;server.transaction.max-retries&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;server.transaction.min-retry-wait-ms&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;server.transaction.max-retry-wait-ms&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;server.transaction.wait-increment-ms&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Aug 2009 11:03:40 GMT</pubDate>
    <dc:creator>dward</dc:creator>
    <dc:date>2009-08-28T11:03:40Z</dc:date>
    <item>
      <title>LockAcquisitionException while adding content in repository.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lockacquisitionexception-while-adding-content-in-repository/m-p/243510#M196640</link>
      <description>Hi,I am facing one issue while running test script through Jmeter, issue is related to dead lock in Alfresco.Following is the environment I am having&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;erver:Websphere v7.0Database&lt;IMG id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;B2Alfresco Version:2.1.1Testing tool: JmeterI have developed one test script, which tests Alfresco’s Add Content Functi</description>
      <pubDate>Fri, 28 Aug 2009 09:00:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lockacquisitionexception-while-adding-content-in-repository/m-p/243510#M196640</guid>
      <dc:creator>rupeshsawaliya1</dc:creator>
      <dc:date>2009-08-28T09:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: LockAcquisitionException while adding content in repository.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lockacquisitionexception-while-adding-content-in-repository/m-p/243511#M196641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your error message is documented here&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://publib.boulder.ibm.com/infocenter/db2luw/v8/topic/com.ibm.db2.udb.doc/core/rsql0900.htm" rel="nofollow noopener noreferrer"&gt;http://publib.boulder.ibm.com/infocenter/db2luw/v8/topic/com.ibm.db2.udb.doc/core/rsql0900.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SQL0911N The current transaction has been rolled back because of a deadlock or timeout. Reason code 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reason code 2 is&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;transaction rolled back due to deadlock. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a perfectly normal occurrence when there are multiple competing transactions. In a transaction collision, one transaction will win and the others will have to be retried. Normally Alfresco's RetryingTransactionHelper will handle such LockAcquisitionExceptions by retrying the transaction after a random 'back off' interval, up to the number of times configured in&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;server.transaction.max-retries&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco will only give up and log the exception if this number of retries is exceeded. The default is 40. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is why, in the default Alfresco log4j configuration we have the following setting, which stops Hibernate from logging exceptions which are handled and retried by Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;log4j.logger.org.hibernate.util.JDBCExceptionReporter=fatal&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the first thing to check is that your log configuration isn't allowing org.hibernate.util.JDBCExceptionReporter to report INFO, WARN or ERROR messages. I am not sure how this is controlled in Websphere, and I have a feeling that the default Websphere settings might be letting these through. So it may well be that you can ignore these messages if you can confirm they are coming from JDBCExceptionReporter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the transactions are actually getting retried 40 times and still failing then this suggests that the server is seriously overloaded. I would be surprised if this is the case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could experiment with different values for these parameters to see how it affects the frequency of these errors&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;server.transaction.max-retries&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;server.transaction.min-retry-wait-ms&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;server.transaction.max-retry-wait-ms&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;server.transaction.wait-increment-ms&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2009 11:03:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lockacquisitionexception-while-adding-content-in-repository/m-p/243511#M196641</guid>
      <dc:creator>dward</dc:creator>
      <dc:date>2009-08-28T11:03:40Z</dc:date>
    </item>
  </channel>
</rss>

