Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Close inspectIT classloader when its context is closed #1280

Closed
mariusoe opened this issue Jan 20, 2022 · 0 comments · Fixed by #1281
Closed

Close inspectIT classloader when its context is closed #1280

mariusoe opened this issue Jan 20, 2022 · 0 comments · Fixed by #1281
Labels
area/agent enhancement New feature or request
Milestone

Comments

@mariusoe
Copy link
Member

Currently, when the agent context is closed, the inspectIT classloader will not be closed. This leads to the problem, that temporary JAR files (e.g. the nested inspectit-core) used by the inspectIT classloader will not be removed on Windows because these files are locked.

In order to be able to remove these JARs once the agent is shutting down, the inspectIT classloader should be closed as well.

@mariusoe mariusoe added enhancement New feature or request area/agent labels Jan 20, 2022
@mariusoe mariusoe added this to the v1.15.0 milestone Jan 20, 2022
heiko-holz pushed a commit that referenced this issue Feb 24, 2022
…ing down (#1281)

* Closing inspectIT class loader when the agent is shutting down

* Using different approach for getting the agent class loader

* Replacing bean event listener with direct call

* Added parameter description to copyResourceToTempJarFile

* Removing magic strings for temporary file names

Co-authored-by: Heiko Holz <heiko.holz@novatec-gmbh.de>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area/agent enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant