CentOS File Content Lookup:
Find. | Xargs grep-rir "java_opts"-l
-I: Ignores patterns (matching strings valid, valid, valid) and input files (matching file.c file.c file. C) is case-insensitive.
-R: Recursively read all files in each directory.
View the Tomcat process
[root@cc ~]# ps aux | grep Tomcat
Find mirrored files Tomcat JVM parameter configuration process
1. View the configuration of JVM parameters in Tomcat
PS aux | grep Tomcat gets the following information
The memory configuration is too small to start looking.
2, first through the following command to find all the files containing java_opts
Find. | Xargs grep-rir "Java_opts"
3, vi/root/oneinstack/optimize.sh
Locate the following line:
4, with Whereis Tomcat find Tomcat location in/usr/local/tomcat
vi/usr/local/tomcat/bin/setenv.sh
It is found that the file is true and the parameters are defined above (the following figure is the modified parameter)
View the definition parameters in accordance with the parameters of tomcat execution and modify them as shown above.
5, after the modification to restart Tomcat, and then perform PS aux |grep tomcat get the following information
6, this modification is complete.
In another set of TOMCAT7 profiles that are installed by default, configuration parameters are available directly under Tomcat.xml in the Tomcat installation directory.