You should query against the indexer. I'm impressed that you got 5s replication to work reliably.
On Mon, Nov 1, 2010 at 4:27 PM, Simon Wistow <si...@thegestalt.org> wrote: > We've been trying to get a setup in which a slave replicates from a > master every few seconds (ideally every second but currently we have it > set at every 5s). > > Everything seems to work fine until, periodically, the slave just stops > responding from what looks like it running out of memory: > > org.apache.catalina.core.StandardWrapperValve invoke > SEVERE: Servlet.service() for servlet jsp threw exception > java.lang.OutOfMemoryError: Java heap space > > > (our monitoring seems to confirm this). > > Looking around my suspicion is that it takes new Readers longer to warm > than the gap between replication and thus they just build up until all > memory is consumed (which, I suppose isn't really memory 'leaking' per > se, more just resource consumption) > > That said, we've tried turning off caching on the slave and that didn't > help either so it's possible I'm wrong. > > Is there anything we can do about this? I'm reluctant to increase the > heap space since I suspect that will mean that there's just a longer > period between failures. Might Zoie help here? Or should we just query > against the Master? > > > Thanks, > > Simon > -- Lance Norskog goks...@gmail.com