A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
EHCache Server locking
Joined: Dec 05, 2007
Jun 20, 2011 03:08:48
I am trying to improve performance of my application.
The problem we are facing right now is with EH Cahe 1.4.1. Whenever it tries to refresh data from DB. If the Db is slow the whole application gets locked down.
Considering ver 2.4.2 of ehcache which has many improvements obviously, I can see a new parameter 'clearOnFlush'. Just wanted to know if this can help me solve the problem.
Also I am considering changing the strategy used while refreshing data, concurrency-strategy. would be great if someone can suggest which one shall apply here.
Information is not quite clear on net.
SCJP 1.5 (93%), SCWCD 1.5 (95%)
Joined: Apr 06, 2010
Jun 20, 2011 03:22:04
Hi Sameer. Can you please avoid posting the same question more than once? Otherwise people might waste their time trying to answer a question that's already been answered.
Thanks. I'll lock this one, and discussion can take place on the other.
I agree. Here's the link:
subject: EHCache Server locking
Problem with ehcache
Why use MemCache for database results caching when hibernate and spring does it all
How to start a daemon thread at application startup in a Spring application
Hibernate query cache issue
Hibernate caching- Which caching to use for performance ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015