I have a pretty standard persistence layer setup in my Spring driven application using Hibernate (4.2.15.Final) with EhCache (2.6.9) as 2nd level cache.
Everything w
I know that it is an old question. But it might be useful for somebody. I've got the same warning. I spent a lot of time to solve this issue. In my case EhCache doesn't ignore all hibernate proxy classes. My entity have some fields with lazy association and during sizeof measurement EhCache walk through whole hibernate graph.
Finally I found this page and solve it.