[hibernate-issues] [JIRA] (HHH-13979) Performance with JCache/EhCache v3 is three times slower than with old ehcache

Alex Roytman (JIRA) jira at hibernate.atlassian.net
Thu Apr 23 20:58:29 EDT 2020


Alex Roytman ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Aaf412e6c-7e3f-4cbf-8528-13cb0b843224 ) *commented* on HHH-13979 ( https://hibernate.atlassian.net/browse/HHH-13979?atlOrigin=eyJpIjoiYmM2YTljNDZmZTRmNDllNWE4ZjU1N2Y5ZjY1NjYzZTEiLCJwIjoiaiJ9 )

Re: Performance with JCache/EhCache v3 is three times slower than with old ehcache ( https://hibernate.atlassian.net/browse/HHH-13979?atlOrigin=eyJpIjoiYmM2YTljNDZmZTRmNDllNWE4ZjU1N2Y5ZjY1NjYzZTEiLCJwIjoiaiJ9 )

I have a feel it could be in serialization code. I wonder when you put entity into secondary cache I assume you extract its state and thus it can be stored by reference not by value. I wonder if going through JCache API to initialize caches it may by default create by value cache causing unnecessary serialization/deserialization of keys and values all the time. I could not find a declarative way for ehcache to force by-reference model and their docs say that their heap default is by reference but when going through JCache interfaces it defaults to by-value unless set to by-reference during cache initialization. Maybe it is what's happening?

( https://hibernate.atlassian.net/browse/HHH-13979#add-comment?atlOrigin=eyJpIjoiYmM2YTljNDZmZTRmNDllNWE4ZjU1N2Y5ZjY1NjYzZTEiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13979#add-comment?atlOrigin=eyJpIjoiYmM2YTljNDZmZTRmNDllNWE4ZjU1N2Y5ZjY1NjYzZTEiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100125- sha1:63ccdc5 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200424/f271cd17/attachment.html 


More information about the hibernate-issues mailing list