catalina.sh
JAVA_OPTS="-server -showversion -Xms10240m -Xmx10240m -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:ParallelGCThreads=8 -XX:+UseConcMarkSweepGC -Xloggc:../logs/tomcat_gc.log"
View
with jcmd./jcmd 13735 VM.flags
13735:
-XX:CICompilerCount=4 -XX:InitialHeapSize=10737418240 -XX:MaxHeapSize=10737418240 -XX:MaxNewSize=697892864 -XX:MaxTenuringThreshold=6 -XX:MinHeapDeltaBytes=196608 -XX:NewSize=697892864 -XX:OldPLABSize=16 -XX:OldSize=10039525376 -XX:ParallelGCThreads=8 -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+UseFastUnorderedTimeStamps -XX:+UseParNewGC
After running , it is found that there is no tomcat_gc.log
in the logs directory, but if you put
-Xloggc:../logs/tomcat_gc.log
In , there is no problem if you change / logs/tomcat_gc.log to an absolute path.
but I am under the bin path
ls ../logs/
No problem.
what"s going on?