Skip to content

OutOfMemoryError - issue with metrics #452

@EdgarsM

Description

@EdgarsM

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions