重现步骤

[步骤]

zhcxkj-bus-shopee内存溢出


[结果]

存在很大的list数据

堆栈文件:


java堆栈 of org.springframework.amqp.rabbit.RabbitListenerEndpointContainer#13-4
    at com.zhcxkj.bus.shopee.application.executor.strategy.operate.ShopeeDeleteStrategyCmdExe.createQueueList(com.zhcxkj.center.strategy.comprehensive.client.shopee.dto.ShopeeListingFilterTemplateDTO, com.zhcxkj.bus.shopee.client.shopee.dto.ShopeeStrategySourceMQTaskQry) (line: 141)
    at com.zhcxkj.bus.shopee.application.executor.strategy.operate.ShopeeDeleteStrategyCmdExe.createQueueList(com.zhcxkj.center.strategy.comprehensive.client.shopee.dto.ShopeeListingFilterTemplateDTO, com.zhcxkj.bus.shopee.client.shopee.dto.ShopeeStrategySourceBaseMQTaskQry) (line: 40)
    at com.zhcxkj.bus.shopee.application.executor.strategy.ShopeeStrategyBusCmdExe.execute(com.zhcxkj.bus.shopee.client.shopee.dto.ShopeeStrategySourceBaseMQTaskQry) (line: 70)
    at com.zhcxkj.bus.shopee.application.service.shopee.ShopeeStrategyService.operateStrategy(com.zhcxkj.bus.shopee.client.shopee.dto.ShopeeStrategySourceMQTaskQry, java.lang.Integer) (line: 86)
    at com.zhcxkj.bus.shopee.application.event.handler.shopee.ShopeeStrategyHandler.handleSourceOperateStrategy(java.lang.String, java.lang.Integer) (line: 58)
    at com.zhcxkj.bus.shopee.adapter.consumer.shopee.ShopeeStrategyConsumer$2.handler(java.lang.String) (line: 55)
    at com.zhcxkj.bus.shopee.adapter.consumer.shopee.ShopeeStrategyConsumer$2.handler(java.lang.Object) (line: 52)
    at com.zhcxkj.common.rabbitmq.handler.BaseRabbitMqHandler.onMessage(boolean, boolean, java.lang.Object, com.rabbitmq.client.Channel, org.springframework.amqp.core.Message, com.zhcxkj.common.rabbitmq.handler.IRabbitMqListener) (line: 85)
    at com.zhcxkj.common.rabbitmq.handler.BaseRabbitMqHandler.onMessage(boolean, java.lang.Object, com.rabbitmq.client.Channel, org.springframework.amqp.core.Message, com.zhcxkj.common.rabbitmq.handler.IRabbitMqListener) (line: 62)
    at com.zhcxkj.bus.shopee.adapter.consumer.shopee.ShopeeStrategyConsumer.consumerSourceOperateStrategy(com.rabbitmq.client.Channel, org.springframework.amqp.core.Message) (line: 52)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method, java.lang.Object, java.lang.Object[ ])
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[ ]) (line: 77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[ ]) (line: 43)
    at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[ ]) (line: 568)
    at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.doInvoke(java.lang.Object[ ]) (line: 169)
    at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(org.springframework.messaging.Message, java.lang.Object[ ]) (line: 119)
    at org.springframework.amqp.rabbit.listener.adapter.HandlerAdapter.invoke(org.springframework.messaging.Message, java.lang.Object[ ]) (line: 75)
    at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(org.springframework.amqp.core.Message, com.rabbitmq.client.Channel, org.springframework.messaging.Message) (line: 262)
    at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.invokeHandlerAndProcessResult(org.springframework.amqp.core.Message, com.rabbitmq.client.Channel, org.springframework.messaging.Message) (line: 208)
    at org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.onMessage(org.springframework.amqp.core.Message, com.rabbitmq.client.Channel) (line: 147)
    at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(org.springframework.amqp.rabbit.listener.api.ChannelAwareMessageListener, com.rabbitmq.client.Channel, java.lang.Object) (line: 1670)
    at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.actualInvokeListener(com.rabbitmq.client.Channel, java.lang.Object) (line: 1589)
    at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer$$Lambda$1498+0x0000000802aaafa0.invokeListener(com.rabbitmq.client.Channel, java.lang.Object)
    at jdk.internal.reflect.GeneratedMethodAccessor302.invoke(java.lang.Object, java.lang.Object[ ])
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[ ]) (line: 43)
    at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[ ]) (line: 568)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(java.lang.Object, java.lang.reflect.Method, java.lang.Object[ ]) (line: 344)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint() (line: 198)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed() (line: 163)
    at org.springframework.retry.interceptor.RetryOperationsInterceptor$1.doWithRetry(org.springframework.retry.RetryContext) (line: 97)
    at org.springframework.retry.support.RetryTemplate.doExecute(org.springframework.retry.RetryCallback, org.springframework.retry.RecoveryCallback, org.springframework.retry.RetryState) (line: 329)
    at org.springframework.retry.support.RetryTemplate.execute(org.springframework.retry.RetryCallback, org.springframework.retry.RecoveryCallback) (line: 225)
    at org.springframework.retry.interceptor.RetryOperationsInterceptor.invoke(org.aopalliance.intercept.MethodInvocation) (line: 122)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed() (line: 186)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[ ]) (line: 215)
    at org.springframework.amqp.rabbit.listener.$Proxy2276.invokeListener(com.rabbitmq.client.Channel, java.lang.Object)
    at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.invokeListener(com.rabbitmq.client.Channel, java.lang.Object) (line: 1577)
    at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doExecuteListener(com.rabbitmq.client.Channel, java.lang.Object) (line: 1568)
    at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.executeListener(com.rabbitmq.client.Channel, java.lang.Object) (line: 1512)
    at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.doReceiveAndExecute(org.springframework.amqp.rabbit.listener.BlockingQueueConsumer) (line: 993)
    at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.receiveAndExecute(org.springframework.amqp.rabbit.listener.BlockingQueueConsumer) (line: 940)
    at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$1600(org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer, org.springframework.amqp.rabbit.listener.BlockingQueueConsumer) (line: 84)
    at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.mainLoop() (line: 1317)
    at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run() (line: 1223)
    at java.lang.Thread.run() (line: 833)

[期望]

降低数据量
历史记录  
  1. 2025-12-02 20:55:12, 由 吴荣发 创建。
  2. 2025-12-02 20:57:54, 由 任芳涛 指派给 韦思成。
    修改了 指派给,旧值为 "liletong",新值为 "weisicheng"。
  3. 2025-12-02 21:17:56, 由 韦思成 解决,方案为 历史bug(180天以上) 。
    修改了 解决方案,旧值为 "",新值为 "history"。
    修改了 解决版本,旧值为 "",新值为 "trunk"。
    修改了 解决日期,旧值为 "",新值为 "2025-12-02 21:17:08"。
    修改了 指派给 ,旧值为 "weisicheng",新值为 "wurongfa"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "weisicheng"。

    删除策略服务,转需求优化

  4. 2025-12-08 14:55:52, 由 吴荣发 编辑。
    修改了 解决时效,旧值为 "0",新值为 "0.37"。
  5. 2025-12-08 14:56:33, 由 吴荣发 编辑。
    修改了 测试责任人,旧值为 "",新值为 "hujian"。
  6. 2025-12-08 14:56:36, 由 吴荣发 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "wurongfa",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "wurongfa"。
    修改了 关闭日期,旧值为 "",新值为 "2025-12-08 14:56:36"。
所属项目 技术中心-需求池
所属模块 多平台   shopee
所属计划
所属迭代
Bug类型
严重程度 一般
优先级 P1
Bug状态 已关闭
业务部门 技术研发中心
影响功能
开发责任人 韦思成
测试责任人 胡坚
解决时效 0.37
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2025-12-08 14:56:36
截止日期 0000-00-00
上线时间 0000-00-00 00:00:00
上线时效 -1
操作系统
浏览器
关键词
抄送给
所属迭代
相关需求
相关任务
由谁创建 吴荣发 于 2025-12-02 20:55:12
影响环境 生产环境-线上测试
由谁解决 韦思成 于 2025-12-02 21:17:08
解决版本 主干
解决方案 历史bug(180天以上)
由谁关闭 吴荣发 于 2025-12-08 14:56:36
最后修改 吴荣发 于 2025-12-08 14:56:36
相关Bug