It surprised me no end to find out that the when using a Distributed Cache for Coherence, the default number of daemon threads used to process incoming requests was zero, meaning that all work is performed on the service thread for that cache. This will make a major impact when you are using a cache to handle a large number of concurrent requests. Fortunately, it's not hard to fix this.
You inform me, that no Part must be missing if the finest Effects are to be had, but you can not but know how hard it is to be sure.
- "The Case of Charles Dexter Ward", H.P. Lovecraft
Code is not dead if it can still compile,
And with strange rework its death may yield style.
(with apologies to H.P. Lovecraft)
Random thoughts on Java and coding in general.
Thursday, October 28, 2010
Coherence: One thread is not enough!
Subscribe to:
Posts (Atom)