Skip to content

Resource leak when using Maven plugin #559

Closed
@J-N-K

Description

@J-N-K

Recently we started using spotless in openHAB (http://github.com/openhab/openhab-addons). We are currently not able to do a full build (around 260 sub-projects) with checks enabled due to resource issues. It seems that this does not depend on the OS as it shows on our Unix-based CI and also on local builds under Windows.

  • [3.6.1] maven version
  • [1.30.0] spotless version
  • [4.13.0] eclipse version

A first analysis can be found here: openhab/openhab-addons#7449 (comment). Looking at a heap dump it seems that the SpotlessCache is instantiated with a new FeatureClassloader each time a check is called but never cleared.

The pom including the configuration can be found here: https://github.com/openhab/openhab-addons/blob/2.5.x/pom.xml

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions