通过Win+r命令输入cmd进入命令行页面
D:
cd D:\Y4ECSRUN\WGQ4 Java jdk1.8.0 131\bin
D:\Y4ECSRUN\WGQ4 Java jdk1.8.0 131\bin>jps
16528 Jps
6868 Bootstrap
D:\Y4DCSRUN\WGQ4Java jdk1.8.0 131bin>jmap -heap 6868
Attaching to process ID 6868, please wait...
Debugger attached successfully.
Client conpiler detected.
JVM version is 25.131-b11
using thread-local object allocation.
Mark Sweep Conpact GC
Heap Configuration:
MinHeapFreeRatio = 40
WaxHeanFreeRatio = 70
MaxHeapSizeNewSize = 268435456 (256.0MB)
Windows环境下修改“%TOMCAT_HOME%\bin\catalina.bat”文件,在文件开头增加如下设置:
set JAVA_OPTS=-Xms512m -Xmx512m
修改完成后重启tomcat进程生效