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.
In Spring Boot's build, we currently allocate a 1GB max heap to
checkstyleNohttp:Unfortunately, this isn't always sufficient and the build can still sometimes fail with an OutOfMemoryError:
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.