Skip to content

Reduce memory requirements of checkstyleNohttp #60

@wilkinsona

Description

@wilkinsona

In Spring Boot's build, we currently allocate a 1GB max heap to checkstyleNohttp:

tasks.named("checkstyleNohttp").configure {
    maxHeapSize = "1g"
}

Unfortunately, this isn't always sufficient and the build can still sometimes fail with an OutOfMemoryError:

A failure occurred while executing org.gradle.api.plugins.quality.internal.CheckstyleAction
> An unexpected error occurred configuring and executing Checkstyle.
  > java.lang.OutOfMemoryError: GC overhead limit exceeded
    > GC overhead limit exceeded

Looking at some data from ge.spring.io, @mhalbritter and I have both seen this failure in the last 7 days. We could just bump the max heap size but a gigabyte already feels excessive for a check that can, presumably, be performed on a file-by-file basis.

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