Lock acquire timeout on what resource?
Is there any way to find out which resource thrown this timeout error?
I did trial and error. Set high values to each entry under infinispan and finally found the correct one.
<cache-container name="web" default-cache="dist" module="org.wildfly.clustering.web.infinispan">
<distributed-cache name="dist" batching="true" mode="ASYNC" owners="2" l1-lifespan="0">
<locking isolation="REPEATABLE_READ" acquire-timeout="300000" concurrency-level="1000"/> ----> Added
When I set this to 5minutes, timeout error gone. This was happening when I uploaded a file with large size. I wonder why it is using cache for file upload. This upload action class is in request scope. Can you share more details on this?
Is your web application marked as clustered, through the use of <distributable/> tag in the web.xml? Is that intentional?
Yes, it is marked as clustered through the use of <distributable/> tag in the web.xml. We need to add HA and scalability to the application. Is there any other way to do this?