Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit 403c8db

Browse files
committed
Merge pull request #6 from c9/tune-google
Tune performance & memory use
2 parents 1195a72 + f00a760 commit 403c8db

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

bin/mvn-c9.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ _check_git() {
9595
ask_clone "workspace not ready: not a git repository"
9696
fi
9797

98-
if [[ "$(git ls-files)" == "" && "$(git ls-files --others --exclude-standard)" == "" ]]; then
98+
if [[ "$(git ls-files --others --exclude-standard)" == "" ]] &&
99+
[[ "$(git ls-files)" == "" || $(git ls-files | sort | tr $'\n' -) =~ ^(.gitignore-)?(LICENSE-)?(README-)?$ ]]
100+
then
99101
ask_clone "workspace not ready: empty file tree"
100102
fi
101103
}

runners/mvn_gcloud_deploy.run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"working_dir": "$project_path",
1111
"env" : {
1212
"JAVA_HOME": "/usr/lib/jvm/java-8-oracle",
13-
"MAVEN_OPTS": "'-Xms32m'"
13+
"MAVEN_OPTS": "-XX:MaxNewSize=64m -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:+CMSParallelRemarkEnabled -XX:+UseTLAB -XX:ParallelGCThreads=6"
1414
}
1515
}

runners/mvn_gcloud_run.run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"working_dir": "$project_path",
1010
"env" : {
1111
"JAVA_HOME": "/usr/lib/jvm/java-8-oracle",
12-
"MAVEN_OPTS": "'-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xms32m'"
12+
"MAVEN_OPTS": "-XX:MaxNewSize=64m -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:+CMSParallelRemarkEnabled -XX:+UseTLAB -XX:ParallelGCThreads=6"
1313
}
1414
}

runners/mvn_gcloud_watch.run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"working_dir": "$project_path",
1111
"env" : {
1212
"JAVA_HOME": "/usr/lib/jvm/java-8-oracle",
13-
"MAVEN_OPTS": "'-XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xms32m'"
13+
"MAVEN_OPTS": "-XX:MaxNewSize=64m -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:+CMSParallelRemarkEnabled -XX:+UseTLAB -XX:ParallelGCThreads=6"
1414
}
1515
}

0 commit comments

Comments
 (0)