-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
Application fails with OutOfMemoryError
after several days without restart. Issue is caused by Spring Boot issue #13895 - there is no possibility to disable request auto timing using property management.metrics.web.server.auto-time-requests
. Value of this property should be set to false in case of spring-cloud-gateway otherwise it might be an issue if URIs contains path variables with large cardinality. Instead of recording single metric with placeholders multiple metrics will be created.
Seems like issue #171 was related to same root cause - in case of #171 removing micrometer dependency removed MeterRegistry
from class-path and as a result org.springframework.boot.actuate.autoconfigure.metrics.web.servlet.WebMvcMetricsAutoConfiguration
got disabled by rule @ConditionalOnBean(MeterRegistry.class)
.