Resolving stack and heap memory overflow methods to set the environment memory variables:
1, in the running interface (CMD enter) to run the command: java-xms256m-xmx1024m, maintain the upper and lower memory parameters, maximum memory can not miss the system memory 1/4, minimum memory can not be less than the maximum memory of 1/4
2, in the Tommcat/bin path, if the installation version of the need for Service.bat files, this file in the decompression version.
3, in the operating interface (CMD entry)
Run command: CD Tommcat/bin into the appropriate directory,
Run command: Service.bat install TOMCAT5
Run the command again: Tomcat5.exe//us//tomcat5--jvmms=256--jvmmx=1024
Stackoverflowerror is a stack memory overflow hint.
Java Heap space is a heap memory overflow hint.
Heap: Used to store variable values.
Stacks: Used to store variable names.
For example: String str= "Shenyang";
Heap Stores Str. Stack storage Shenyang.