Method One: Modify the virtual memory in eclipse to configure Tomcat to use the JRE
Method Two: Modify the Tomcat%tomcathome%/bin/catalina.bat
add-xms256m-xmx512m after the%debug_opts%
you can see it in the status of the Tomcat management page
If not "%jpda%" = = "goto DOJPDA
If not "%security_policy_file%" = = "goto dosecurity
%_execjava%%java_opts%%catalina_opts%%debug_opts%-xms256m-xmx512m-djava.endorsed.dirs= "%JAVA_ENDORSED_DIRS%"- Classpath "%classpath%"-dcatalina.base= "%catalina_base%"-dcatalina.home= "%catalina_home%"-djava.io.tmpdir= "% catalina_tmpdir% "%mainclass%%cmd_line_args%%action%
Goto END
:d osecurity
%_execjava%%java_opts%%catalina_opts%%debug_opts%-djava.endorsed.dirs= "%java_endorsed_dirs%"-classpath "% classpath% "-djava.security.manager-djava.security.policy=="%security_policy_file% "-Dcatalina.base="%CATALINA_ Base% "-dcatalina.home="%catalina_home% "-djava.io.tmpdir="%catalina_tmpdir% "%mainclass%%CMD_LINE_ARGS%%ACTION%
Goto END
:d OJPDA
If not "%security_policy_file%" = = "goto DOSECURITYJPDA
%_execjava%%java_opts%%catalina_opts%%jpda_opts%%debug_opts%-xms256m-xmx512m-djava.endorsed.dirs= "%JAVA_ endorsed_dirs% "-classpath"%classpath% "-dcatalina.base="%catalina_base% "-dcatalina.home="%CATALINA_HOME% "- Djava.io.tmpdir= "%catalina_tmpdir%"%mainclass%%cmd_line_args%%action%
Goto END
:d OSECURITYJPDA
%_execjava%%java_opts%%catalina_opts%%jpda_opts%%debug_opts%-xms256m-xmx512m-djava.endorsed.dirs= "%JAVA_ endorsed_dirs% "-classpath"%classpath% "-djava.security.manager-djava.security.policy=="%SECURITY_POLICY_FILE% "- Dcatalina.base= "%catalina_base%"-dcatalina.home= "%catalina_home%"-djava.io.tmpdir= "%CATALINA_TMPDIR%"% mainclass%%cmd_line_args%%action%
Goto END