CPU taking 300% while executing LRUMap.reuseMapping

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

CPU taking 300% while executing LRUMap.reuseMapping

Dave

Dear All - Our version of ofbiz has been downloaded 4 years back. For the  last couple of years we have been having a problem where the server goes down every now and then. We now ran jstack when the server is down and here is the problem below. The LRUMap being referenced in the commons-collections is somehow taking up lot of CPU and brings down the whole server. Can anyone suggest a fix to this problem? Your responses will be greatly appreciated


Thread 17170: (state = IN_JAVA)
 - org.apache.commons.collections.map.LRUMap.reuseMapping(org.apache.commons.collections.map.AbstractLinkedMap$LinkEntry, int, int, java.lang.Object, java.lang.Object) @bci=44, line=270 (Compiled frame; information may be imprecise)
 - org.apache.commons.collections.map.LRUMap.addMapping(int, int, java.lang.Object, java.lang.Object) @bci=84, line=243 (Compiled frame)
 - org.apache.commons.collections.map.AbstractHashedMap.put(java.lang.Object, java.lang.Object) @bci=93, line=282 (Compiled frame)
 - org.ofbiz.service.ServiceDispatcher.logService(java.lang.String, org.ofbiz.service.ModelService, int) @bci=37, line=925 (Interpreted frame)
 - org.ofbiz.service.ServiceDispatcher.runSync(java.lang.String, org.ofbiz.service.ModelService, java.util.Map, boolean) @bci=113, line=259 (Interpreted frame)
 - org.ofbiz.service.ServiceDispatcher.runSync(java.lang.String, org.ofbiz.service.ModelService, java.util.Map) @bci=5, line=214 (Interpreted frame)
 - org.ofbiz.service.GenericDispatcher.runSync(java.lang.String, java.util.Map) @bci=19, line=139 (Interpreted frame)
 - sun.reflect.GeneratedMethodAccessor68.invoke(java.lang.Object, java.lang.Object[]) @bci=48 (Interpreted frame)
 - sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=6, line=43 (Compiled frame)
 - java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) @bci=161, line=616 (Compiled frame)
 - bsh.Reflect.invokeMethod(java.lang.reflect.Method, java.lang.Object, java.lang.Object[]) @bci=109 (Compiled frame)
 - bsh.Reflect.invokeObjectMethod(java.lang.Object, java.lang.String, java.lang.Object[], bsh.Interpreter, bsh.CallStack, bsh.SimpleNode) @bci=67 (Compiled frame)
 - bsh.Name.invokeMethod(bsh.Interpreter, java.lang.Object[], bsh.CallStack, bsh.SimpleNode) @bci=267 (Compiled frame)
 - bsh.BSHMethodInvocation.eval(bsh.CallStack, bsh.Interpreter) @bci=84 (Compiled frame)
 - bsh.BSHPrimaryExpression.eval(boolean, bsh.CallStack, bsh.Interpreter) @bci=121 (Compiled frame)
 - bsh.BSHPrimaryExpression.eval(bsh.CallStack, bsh.Interpreter) @bci=4 (Compiled frame)
 - bsh.BSHAssignment.eval(bsh.CallStack, bsh.Interpreter) @bci=98 (Compiled frame)
 - bsh.Interpreter.evalParsedScript(bsh.Interpreter$ParsedScript, bsh.NameSpace) @bci=70 (Compiled frame)
 - bsh.Interpreter.evalParsedScript(bsh.Interpreter$ParsedScript) @bci=6 (Interpreted frame)
 - org.ofbiz.base.util.BshUtil.runBshAtLocation(java.lang.String, java.util.Map) @bci=183, line=164 (Interpreted frame)
 - org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(java.util.Map) @bci=17, line=390 (Interpreted frame)
 - org.ofbiz.widget.screen.ModelScreenAction.runSubActions(java.util.List, java.util.Map) @bci=70, line=120 (Compiled frame)