jQuery in Action, 3rd edition
The moose likes Object Relational Mapping and the fly likes EHCache Server locking Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply locked New topic

EHCache Server locking

sameer sood
Ranch Hand

Joined: Dec 05, 2007
Posts: 30

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.


Sameer Sood
SCJP 1.5 (93%), SCWCD 1.5 (95%)
Matthew Brown

Joined: Apr 06, 2010
Posts: 4543

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.

(Duplicate of http://www.coderanch.com/t/542386/java/java/EHCache-Server-locking)
I agree. Here's the link: http://aspose.com/file-tools
subject: EHCache Server locking
It's not a secret anymore!