We are currently caching all of our hibernate objects and queries using ehcache. We use the OpenSessionInViewFilter to lazily access our objects. The site behaves normally and performs very well under light load, but we experience inconsistant behaviour when we send a lot of requests to application when the cache is empty. Basically many of the initial requests return with data missing . As the cache builds up, the data starts to appear.
I was wondering if anyone else has experienced this same behavior. Is there some kind of synchronization issue I am missing in regards the hibernate cache? Any help would be greatly appreciated. Thanks!