Skip to content

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
@seregamorph seregamorph force-pushed the master branch 2 times, most recently from a466b74 to 18e820b Compare November 3, 2025 20:34
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.

2 participants