ハイバネート 3.3.x、ehcache 2.2.x
一度に多数のユーザーを公開しようとすると、次のエラーが発生します。なぜこれが起こるのか、これを修正する方法について何か考えはありますか? ユーザーの一括読み込みの前にこのキャッシュを無効にする方法はありますか?
17:17:50,140 WARN [AbstractReadWriteEhcacheAccessStrategy] Cache
persistence.unit:unitName=my.ear/my-ejb-1.0.0.jar#my.com.mycompany.User.phones Key com.mycompany.User.phones#9915 Lockable : null
A soft-locked cache entry was expired by the underlying Ehcache.
If this happens regularly you should consider increasing the cache timeouts and/or capacity limits
EDIT1:
このエラーは、JPA 呼び出しを介して多数のユーザーをデータベースに一括ロードしようとすると発生します。ティアダウンフックを介してキャッシュマネージャーをシャットダウンしません。