Skip to content

Resource leakage PoC #20

New issue

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

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

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

seregamorph
Copy link
Owner

@seregamorph seregamorph commented Mar 30, 2025

Track used resources between integration test execution:

  • heap memory
  • number of active threads

TODO add sensors:

  • number of opened file descriptors
  • distinguish server and client network connections
  • number of active docker containers by testcontainers
  • number of loaded classes(?)

Optionally after each test group that share the same config (and accordingly context) it's possible to opt-in call of System.gc() via option -Dtestsmartcontext.handleAfterClassGroup.gc=true. Usually it's a bad practice, but for the sake of better heap reports this can give better clarity, so makes sense to use from time to time.

@seregamorph seregamorph self-assigned this Mar 30, 2025
@seregamorph seregamorph force-pushed the resource-leakage-detector branch from e115560 to 71d0beb Compare April 2, 2025 21:16
@seregamorph seregamorph force-pushed the resource-leakage-detector branch from 71d0beb to 55f7762 Compare May 4, 2025 11:19
@seregamorph seregamorph force-pushed the resource-leakage-detector branch from 55f7762 to 63161a7 Compare May 4, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant