fix #138
This commit is contained in:
parent
a21aff7b45
commit
b93e053482
1 changed files with 23 additions and 2 deletions
|
@ -35,7 +35,9 @@
|
|||
"ro", "ru", "sv", "th", "tr", "zh_CN", "zh_TW", "zh" }</property>
|
||||
-->
|
||||
<property name="logFilePath">@System@getProperty("fess.log.file").replaceAll(".out", "_crawler.out")</property>
|
||||
<property name="crawlerJavaOptions">new String[] {
|
||||
<property name="crawlerJavaOptions">
|
||||
@System@getProperty("java.version").startsWith("1.7") ?
|
||||
new String[] {
|
||||
"-Djava.awt.headless=true",
|
||||
"-server",
|
||||
"-Xmx512m",
|
||||
|
@ -50,7 +52,26 @@
|
|||
"-XX:+UseStringCache",
|
||||
"-XX:+UseTLAB",
|
||||
"-XX:+DisableExplicitGC"
|
||||
}</property>
|
||||
}
|
||||
:
|
||||
new String[] {
|
||||
"-Djava.awt.headless=true",
|
||||
"-server",
|
||||
"-Xmx512m",
|
||||
"-XX:MaxMetaspaceSize=128m",
|
||||
"-XX:+UseG1GC",
|
||||
"-XX:InitiatingHeapOccupancyPercent=45",
|
||||
"-XX:MaxGCPauseMillis=200",
|
||||
"-XX:+UseTLAB",
|
||||
"-XX:+DisableExplicitGC"
|
||||
}
|
||||
<!-- G1GC Options
|
||||
"-XX:NewRatio=2",
|
||||
"-XX:SurvivorRatio=8",
|
||||
"-XX:MaxTenuringThreshold=15",
|
||||
"-XX:G1ReservePercent=10",
|
||||
-->
|
||||
</property>
|
||||
<!--
|
||||
"-XX:+OptimizeStringConcat",
|
||||
"-XX:+UseCompressedStrings",
|
||||
|
|
Loading…
Add table
Reference in a new issue