Closed
Description
Hi!
I have a somewhat complicated Spring Boot app, with a large number of tests.
When running the tests, it seems to be accumulating a lot of threads, one of which there is multiple instances of and is called "SimplePauseDetectorThread_0", which I traced down to this dependency
| | | \--- io.micrometer:micrometer-core:1.1.1
| | | +--- org.latencyutils:LatencyUtils:2.0.3
This seems to happen on Spring Boot 2.0.6 as well as 2.1.1.
A typical test may look like this:
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.MOCK)
@ActiveProfiles(profiles = {"test"})
public class MyTest {
[...]
My actuator config looks like this:
management.endpoints.enabled-by-default=false
management.endpoint.prometheus.enabled=true
management.endpoints.web.base-path=/
management.endpoints.web.exposure.include=prometheus
management.endpoints.web.path-mapping.prometheus=prometheus
spring.metrics.prometheus.enabled=true
Please see the attached screenshots:
Please tell me if I can be of further assistance.
Thanks!
Metadata
Metadata
Assignees
Labels
No labels