rqueue icon indicating copy to clipboard operation
rqueue copied to clipboard

Message consumption completed, rqueue related objects were not reclaimed, resulting in memory leakage

Open mahuihong opened this issue 1 year ago • 2 comments

The version I am using is <groupId>com.github.sonus21</groupId> <artifactId>rqueue-spring-boot-starter</artifactId> 2.13.1-RELEASE The following is the rqueue object information in the JVM heap memory printed using jmap after running for a period of time

image

mahuihong avatar Jan 01 '25 07:01 mahuihong

The strange thing about this issue is that the same code running on different machines may not necessarily reproduce

mahuihong avatar Jan 01 '25 08:01 mahuihong

I don't think this issue is direcly related to Rqueue, can you also force gc and see if the count goes down. The count for all Rqueue objects is the same: 249,003. How many messages per second are you processing? Could there be a deadlock or similar issue? Additionally, can you filter out the names of all Rqueue classes involved?

sonus21 avatar Jan 01 '25 17:01 sonus21