Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit37a0493

Browse files
Use heap ratio tunning instead of heap size as it is more flexible (#15)
1 parent07e6f19 commit37a0493

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎pmd.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ class Config {
8080

8181
defexecute(command) {
8282
ProcessBuilder builder=newProcessBuilder(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)

[8]ページ先頭

©2009-2025 Movatter.jp