How to fix “Unable to acquire lock after 15 seconds” errors in Wildfly

前端 未结 1 1456
礼貌的吻别
礼貌的吻别 2021-02-13 13:01

I have a web application that is , but also deployed to stand alone instances of Wildfly for local development work. Sometimes we have calls t

相关标签:
1条回答
  • 2021-02-13 13:55

    I believe the answer is to update the infinispan configuration like this, which increases the lock timeout to 60 seconds.

    <cache-container name="web" default-cache="passivation" module="org.wildfly.clustering.web.infinispan">
                    <local-cache name="passivation">
                        <locking isolation="REPEATABLE_READ" striping="false" acquire-timeout="60000"/>
                        <transaction mode="BATCH"/>
                        <file-store passivation="true" purge="false"/>
                    </local-cache>
                    <local-cache name="persistent">
                        <locking isolation="REPEATABLE_READ" striping="false" acquire-timeout="60000"/>
                        <transaction mode="BATCH"/>
                        <file-store passivation="false" purge="false"/>
                    </local-cache>
                </cache-container>
    
    0 讨论(0)
提交回复
热议问题