Lucee icon indicating copy to clipboard operation
Lucee copied to clipboard

LDEV-3854 - Performance/page spool lock contention

Open xdecock opened this issue 4 years ago • 0 comments

Rewrote the PageSpool code to rely on java8 atomic operations, this allows to remove the synchronized that were all over the place, reducing contention.

Furthermore, the cleanup has been implemented with an high / low watermark and compare and swap, to avoid removing a page that has just been regenerated.

https://luceeserver.atlassian.net/browse/LDEV-3854 (was https://luceeserver.atlassian.net/browse/LDEV-2904)

https://dev.lucee.org/t/blocked-requests-each-minute-on-5-3-8-x-under-load/8943

xdecock avatar Sep 29 '21 06:09 xdecock