tianji icon indicating copy to clipboard operation
tianji copied to clipboard

Agent memory leak

Open qhy040404 opened this issue 1 year ago • 1 comments

After running for a period of time, about a month, the agent's memory will leak from the initial 8MB to about 300MB, which is not friendly to some servers with limited memory.

qhy040404 avatar Sep 27 '24 00:09 qhy040404

emmm, any screenshots?

moonrailgun avatar Sep 27 '24 22:09 moonrailgun

image This instance started running on October 1 and has been running for 17 days.

image And this is the memory usage after restarting the reporter.

qhy040404 avatar Oct 17 '24 14:10 qhy040404

image This problem can also be reproduced under Linux.

image

After restart

qhy040404 avatar Oct 17 '24 14:10 qhy040404

Had the same under ubuntu 24 lts. One agent with 496 mb ram usage. Restarted and now its using only a few mb ram. Im not sure but are the agents pushing the data to the server? Maybe this is causing the leak cause i removed the server and had not edited the agent.

gbzret4d avatar Oct 17 '24 17:10 gbzret4d

ok, thanks. i will check it. thanks for your report.

moonrailgun avatar Oct 18 '24 17:10 moonrailgun

I think its has been fixed in recently version.

please try it, and let me know if its still has problem, thanks

moonrailgun avatar Oct 23 '24 18:10 moonrailgun