LRUMap problem; resetting LRU

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

LRUMap problem; resetting LRU

SkipDever
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