https://bz.apache.org/bugzilla/show_bug.cgi?id=64068
Bug ID: 64068
Summary: Tomcat failes to start when JVM start option specified
for new line by "\" on linux.
Product: Tomcat 8
Version: 8.5.49
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ----
Tomcat 8.5.49 can't read the JVM start options written in srvstart.sh and
failes to start when using "\"on linux.
/usr/local/tomcat/bin/catalina.sh: line 468: -Xmx2560m: command not found
/usr/local/tomcat/bin/catalina.sh: line 469: -Djdk.tls.ephemeralDHKeySize=2048:
command not found
/usr/local/tomcat/bin/catalina.sh: line 470: -server: command not found
/usr/local/tomcat/bin/catalina.sh: line 471: -Dignore.endorsed.dirs=: command
not found
export JAVA_OPTS="
-Xmx2048m \
-XX:NewSize=768m \
-XX:MaxNewSize=768m \
-XX:MetaspaceSize=128m \
-XX:MaxMetaspaceSize=512m \
-XX:SurvivorRatio=2 \
-XX:MaxTenuringThreshold=15 \
-XX:TargetSurvivorRatio=90 \
-XX:ReservedCodeCacheSize=480m \
-XX:NonNMethodCodeHeapSize=15m \
-XX:+UseParallelOldGC \
-Xlog:gc*=info:file=${CATALINA_HOME}/logs/gc.${DATE_TIME}.log:time,level,tags:filesize=200m,filecount=30
"
export CATALINA_OPTS="
-server \
-Dsun.nio.cs.map=Windows-31J/Shift_JIS \
-Duser.timezone=JST
"
Tomcat 8.5.34 shows normal log, so I think Linux bash pursing is also normal.
Therefore, I try to add "\" to srvstart.sh where there was no "\"( <- add ).
Then, Tomcat 8.5.49 can read the options and start successfully.
Is this a bug? or The specification of Tomcat 8.5.49 or later?
I guess that catalina.sh refactored in 8.5.49 has some bugs about parsing "\".
export JAVA_OPTS="\ <- add "\"
-Xmx2048m \
-XX:NewSize=768m \
-XX:MaxNewSize=768m \
-XX:MetaspaceSize=128m \
-XX:MaxMetaspaceSize=512m \
-XX:SurvivorRatio=2 \
-XX:MaxTenuringThreshold=15 \
-XX:TargetSurvivorRatio=90 \
-XX:ReservedCodeCacheSize=480m \
-XX:NonNMethodCodeHeapSize=15m \
-XX:+UseParallelOldGC \
-Xlog:gc*=info:file=${CATALINA_HOME}/logs/gc.${DATE_TIME}.log:time,level,tags:filesize=200m,filecount=30\
<- add "\"
"
export CATALINA_OPTS="\ <- add "\"
-server \
-Dsun.nio.cs.map=Windows-31J/Shift_JIS \
-Duser.timezone=JST\ <- add "\"
"
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]