You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by "skip@thedevers" <sk...@thedevers.org> on 2008/04/10 01:59:54 UTC

LRUMap problem; resetting LRU

I am getting this error in the log during a data import with debug=WARN.
Dont recall ever seeing it before.  When this happens, the CPU pegs and no
further imports happen.

Here is the code (from ServiceDispatcher) where the error originates from:

    private RunningService logService(String localName, ModelService
modelService, int mode) {
        // set up the running service log
        RunningService rs = new RunningService(localName, modelService,
mode);
        if (runLog == null) {
            runLog = new LRUMap(lruLogSize);
        }
        try {
            runLog.put(rs, this);
        } catch (Throwable t) {
            Debug.logWarning("LRUMap problem; resetting LRU [" +
runLog.size() + "]", module);
            runLog = new LRUMap(lruLogSize);
            try {
                runLog.put(rs, this);
            } catch (Throwable t2) {
                Debug.logError(t2, "Unable to put() in reset LRU map!",
module);
            }
        }
        return rs;
    }

Anyone have any idea what the source of the problem is.  This happens after
about 4000 records are imported, so adding System.out stuff or stacktraces
would not be possible.

Skip
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.8/1363 - Release Date: 4/7/2008
8:56 AM