Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

EHCache Server locking

 
sameer sood
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

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.

Thanks,
 
Matthew Brown
Bartender
Posts: 4567
8
  • Mark post as helpful
  • send pies
  • Report post to moderator
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)
 
    Bookmark Topic Watch Topic
  • New Topic