kamon-io / kanela

The Kamon Instrumentation Agent
Apache License 2.0
68 stars 22 forks source link

/tmp full, would be nice to clean jar files in tmp after use (and empty tmp directories) #130

Open gbrd opened 3 years ago

gbrd commented 3 years ago

Depending cleaning strategy of the os, /tmp can become full because of kanela jar files (/tmp/kanela-agent-1.0.9.*.jar) Could this file be deleted after use ? (is it downloaded each time or extracted ?) It would be nice !

(I have a lot of /tmp/tmpXXX empty directory too ..)

ivantopo commented 3 years ago

Hey @gbrd, may I ask what Operating System and Java versions are you using? I'm running Kamon apps with the bundle all the time locally and never see those files in /tmp.

I opened this tiny PR to (hopefully) address the issue: https://github.com/kamon-io/Kamon/pull/1036

gbrd commented 3 years ago

Hi @ivantopo and thanks for your reactivity ! We use openjdk 11 We saw the problem on centos-7.
And on my laptop on ubuntu, each time my application starts I have one more kanela-agent-1.0.9.jarXXX.jar in /tmp/ Should I do something specific to exit more cleanly kamon/kanela ?