DB2运行时报的错误

昨天,在SilkPerformer中对Commerce做了WarmUp了1500个stress类型的scenario,结果今天早上起来看的时候,报告了7个错误,查看了这几个错误,都出在同一个错误上,即创建商品的报价这一步出错,同事提醒说可能是压力测试中,数据量大,系统资源分配不过来,报出了这样的错误。

 

我查看了Commerce中的SystemOut.log日志,错误日志如下:

Caused by: COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/6000] SQL0911N  The current transaction has been rolled back because of a deadlock or timeout.  Reason code "
2".  SQLSTATE=40001

        at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throw_SQLException(SQLExceptionGenerator.java(Compiled Code))
        at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throw_SQLException(SQLExceptionGenerator.java(Inlined Compiled Code))
        at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.check_return_code(SQLExceptionGenerator.java(Inlined Compiled Code))
        at COM.ibm.db2.jdbc.app.DB2ResultSet.next(DB2ResultSet.java(Compiled Code))
        at com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.next(WSJdbcResultSet.java(Compiled Code))
        at com.ibm.commerce.foundation.internal.server.services.dataaccess.workspace.util.impl.PhysicalDataHelperProviderImpl.getResourceStatusForJob(PhysicalDataHelperProvi
derImpl.java(Compiled Code))
        at com.ibm.commerce.foundation.internal.server.services.dataaccess.workspace.PhysicalWorkspaceDataContainerImpl.removeDeletedRecords(PhysicalWorkspaceDataContainerIm
pl.java(Compiled Code))
        at com.ibm.commerce.foundation.internal.server.services.dataaccess.workspace.PhysicalWorkspaceDataContainerImpl.preInvokeSave(PhysicalWorkspaceDataContainerImpl.java
(Compiled Code))
        at com.ibm.commerce.foundation.server.services.dataaccess.PhysicalDataContainerImpl.preInvokeSave(PhysicalDataContainerImpl.java(Inlined Compiled Code))
        at com.ibm.commerce.foundation.server.services.dataaccess.PhysicalDataContainerImpl.save(PhysicalDataContainerImpl.java(Compiled Code))
        at com.ibm.commerce.foundation.server.services.dataaccess.bom.mediator.AbstractChangeBusinessObjectPartMediatorImpl.applyChanges(AbstractChangeBusinessObjectPartMedi
atorImpl.java(Compiled Code))
        at com.ibm.commerce.foundation.server.command.bod.bom.AbstractChangeNounPartUsingBusinessObjectMediatorCmdImpl.save(AbstractChangeNounPartUsingBusinessObjectMediator
CmdImpl.java(Compiled Code))
        at com.ibm.commerce.foundation.server.command.bod.AbstractChangeNounPartActionCmdImpl.performExecute(AbstractChangeNounPartActionCmdImpl.java(Compiled Code))
        at com.ibm.commerce.foundation.internal.server.command.impl.CommandTarget.executeCommand(CommandTarget.java(Compiled Code))
        at com.ibm.ws.cache.command.CommandCache.executeCommand(CommandCache.java(Compiled Code))
        at com.ibm.websphere.command.CacheableCommandImpl.execute(CacheableCommandImpl.java(Compiled Code))
        at com.ibm.commerce.foundation.server.command.bod.AbstractChangeBusinessObjectDocumentCmdImpl.performAction(AbstractChangeBusinessObjectDocumentCmdImpl.java(Compiled
 Code))
        at com.ibm.commerce.foundation.server.command.bod.AbstractActionBusinessObjectDocumentCmdImpl.performExecute(AbstractActionBusinessObjectDocumentCmdImpl.java(Compile
d Code))
        at com.ibm.commerce.foundation.server.command.bod.BusinessObjectCommandTargetImpl.executeCommand(BusinessObjectCommandTargetImpl.java(Compiled Code))
        at com.ibm.ws.cache.command.CommandCache.executeCommand(CommandCache.java(Compiled Code))
        at com.ibm.websphere.command.CacheableCommandImpl.execute(CacheableCommandImpl.java(Compiled Code))
        at com.ibm.commerce.foundation.server.command.bod.BusinessObjectDocumentProcessor.processBusinessObjectDocument(BusinessObjectDocumentProcessor.java(Compiled Code))
        at com.ibm.commerce.marketing.facade.server.MarketingFacadeImpl.changeActivity(MarketingFacadeImpl.java(Inlined Compiled Code))
        at com.ibm.commerce.marketing.facade.server.EJSLocalStatelessMarketing_0e493592.changeActivity(EJSLocalStatelessMarketing_0e493592.java(Compiled Code))
        at sun.reflect.GeneratedMethodAccessor219.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
        at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
        at com.ibm.commerce.foundation.internal.client.services.invocation.impl.LocalEJBInvocationBindingImpl.invoke(LocalEJBInvocationBindingImpl.java(Compiled Code))
        at com.ibm.commerce.foundation.internal.client.services.invocation.InvocationService.invoke(InvocationService.java(Compiled Code))
        ... 47 more
        at com.ibm.commerce.foundation.server.services.dataaccess.PhysicalDataContainerImpl.preInvokeSave(PhysicalDataContainerImpl.java(Inlined Compiled Code))
        at com.ibm.commerce.foundation.server.services.dataaccess.PhysicalDataContainerImpl.save(PhysicalDataContainerImpl.java(Compiled Code))
        at com.ibm.commerce.foundation.server.services.dataaccess.bom.mediator.AbstractChangeBusinessObjectPartMediatorImpl.applyChanges(AbstractChangeBusinessObjectPartMedi
atorImpl.java(Compiled Code))
        at com.ibm.commerce.foundation.server.command.bod.bom.AbstractChangeNounPartUsingBusinessObjectMediatorCmdImpl.save(AbstractChangeNounPartUsingBusinessObjectMediator
CmdImpl.java(Compiled Code))
        at com.ibm.commerce.foundation.server.command.bod.AbstractChangeNounPartActionCmdImpl.performExecute(AbstractChangeNounPartActionCmdImpl.java(Compiled Code))
        at com.ibm.commerce.foundation.internal.server.command.impl.CommandTarget.executeCommand(CommandTarget.java(Compiled Code))
        at com.ibm.ws.cache.command.CommandCache.executeCommand(CommandCache.java(Compiled Code))
        at com.ibm.websphere.command.CacheableCommandImpl.execute(CacheableCommandImpl.java(Compiled Code))
        at com.ibm.commerce.foundation.server.command.bod.AbstractChangeBusinessObjectDocumentCmdImpl.performAction(AbstractChangeBusinessObjectDocumentCmdImpl.java(Compiled
 Code))
        at com.ibm.commerce.foundation.server.command.bod.AbstractActionBusinessObjectDocumentCmdImpl.performExecute(AbstractActionBusinessObjectDocumentCmdImpl.java(Compile
d Code))
        at com.ibm.commerce.foundation.server.command.bod.BusinessObjectCommandTargetImpl.executeCommand(BusinessObjectCommandTargetImpl.java(Compiled Code))
        at com.ibm.ws.cache.command.CommandCache.executeCommand(CommandCache.java(Compiled Code))
        at com.ibm.websphere.command.CacheableCommandImpl.execute(CacheableCommandImpl.java(Compiled Code))
        at com.ibm.commerce.foundation.server.command.bod.BusinessObjectDocumentProcessor.processBusinessObjectDocument(BusinessObjectDocumentProcessor.java(Compiled Code))
        at com.ibm.commerce.marketing.facade.server.MarketingFacadeImpl.changeActivity(MarketingFacadeImpl.java(Inlined Compiled Code))
        at com.ibm.commerce.marketing.facade.server.EJSLocalStatelessMarketing_0e493592.changeActivity(EJSLocalStatelessMarketing_0e493592.java(Compiled Code))
        at sun.reflect.GeneratedMethodAccessor219.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))

 

一看这些日志,“The current transaction has been rolled back because of a deadlock or timeout.”果然是系统资源分配不上来导致的。没办法,只好做WarmUp1000scenario的数据了。

 

 

 

你可能感兴趣的:(sql,exception,IBM,db2,测试)