ByteExceptionM commented on issue #3511:
URL: 
https://github.com/apache/logging-log4j2/issues/3511#issuecomment-2693672301

   Hi, @vy!  
   
   As you can see in the screenshots I provided, the issue isn't limited to 
just the **200 StatusData instances**. The memory usage is caused by an 
**enormous amount of `ConcurrentLinkedQueue$Node` objects**, with **hundreds of 
millions of entries**.
   
   
![Image](https://github.com/user-attachments/assets/afb2e290-07ec-4c9e-a406-78dbb08cfe6b)
   
   I understand that **2.23.1+ introduced major changes**, but I can't simply 
upgrade to **Log4j 2.24.3**, because the Minecraft server (or one of its 
plugins) depends on Log4j **2.22.1**. Unfortunately, I don't have a way to 
fully track which component is responsible for this dependency, so updating is 
difficult at the moment.
   
   As a workaround, I have now set the environment variable: 
`LOG4J_STATUS_ENTRIES=0`
   I will monitor whether this improves the situation.
   
   The second screenshot shows how severe the issue became yesterday, with 
memory usage skyrocketing to **13.9 GB due to `ConcurrentLinkedQueue$Node` 
instances**. I'll report back with findings after running with this new setting.
   
   
![Image](https://github.com/user-attachments/assets/83ed921c-b9f3-4b3b-b8ec-dd1d543803a0)
   
   Thanks again for your help!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to