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的数据了。

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

机场信息系统研究员

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值