-
Notifications
You must be signed in to change notification settings - Fork 584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[question] Is ehcache virtual thread / loom friendly? #3211
Comments
Would also like to know this. Also any suggested patterns for leveraging virtual threads with EH Cache if it's not directly supportive of them yet 🙏 |
It seems no, that ConcurrentHashMap is blocking the carrier thread. ehcache uses a ConcurrentHashMap that is built on synchronized blocks, such as computeIfAbsent. This was the issue noticed when switched spring framework to use virtual threads "org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#0-1" #34 [41] prio=5 os_prio=0 cpu=83638.00ms elapsed=21635.21s tid=0x00007fb31f83b1e0 nid=41 waiting for monitor entry [0x00007fb3208ff000] |
I wonder if ehcache is loom-friendly - e.g. does not pin the platform threads?
The text was updated successfully, but these errors were encountered: