Skip to content

Commit 37a0493

Browse files
Use heap ratio tunning instead of heap size as it is more flexible (#15)
1 parent 07e6f19 commit 37a0493

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: pmd.groovy

+2-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ class Config {
8080

8181
def execute(command) {
8282
ProcessBuilder builder = new ProcessBuilder(command.split(' '))
83-
builder.environment().put("HEAPSIZE", "256m")
83+
def env = builder.environment()
84+
env.put("JAVA_OPTS", "-XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=30")
8485
Process process = builder.start()
8586
process.consumeProcessOutput(System.out, System.err)
8687
process.waitFor()

0 commit comments

Comments
 (0)