Closed kaicao closed 1 year ago
Typically the cause is a statement that calls Application-provided code and that code blocks, thereby locking up the statement/partition-lock. Check the application user-defined functions, extension code, static methods, event methods for blocking code.
Thank you @bernhardttom !
Hi,
Please help understand what would cause long locking of WriteLock when
EPEventServiceImpl#sendEventBean
.We observed that application threads are waiting for WriteLock of
StatementAgentInstanceLockRW
when sending event to Esper some times.The throughput of inputting threads towards Esper decreased significantly to nearly 0 eps, and by multiple thread dumps the similar waiting for lock situation is observed as shown below:
Could you help us understand what can cause such WriteLock not getting unlocked for long time? If it can be statement related, what kind of statement expressions are more likely to cause such situation? So we can look into further.
Thank you!