The weather is good today, and the sleep is messy.
--- Xingyunpi
Tossing alumnus system because the data volume is too large, it's really hard to figure out something... when running yesterday, a sudden error occurs, Java. lang. outofmemoryerror: Java heap space, which is obviously out of memory and then checked on the network. There are a lot of solutions. The results are all like this:
"
Solution: manually set hEAP size
Modify tomcat_hOme/bin/CATalina. Sh
Set java_opts =-Xms32m-xmx512m
You canSave and change.
"
According to this instruction, the bin directory under Tomcat is found, but I am wondering if Catalina. sh/Catalina. Cat exists. How can this happen...
I saw the bin directory of Tomcat 5.5 on someone else's computer yesterday. Then I saw that it was decompressed when I installed it on the virtual machine. I suddenly realized that well, my tomcat is installed, so today I downloaded a decompressed version, which seems to be better than the installed version.
Now, let's record the differences between the installation version and the pressure version:
For the installed version of Tomcat (I seem to have been using it ):
(1) In fact, it saves a lot of problems such as the configuration environment than the decompressed version, so it should be simple. after installation, enter http: // localhost: 8080/in the browser to display the information about successful tomcat installation.
(2) there will be no configuration files in the folder. Therefore, in the tomcat_home \ bin directory, there are only a few files:
Specifically, atat6.exe is used to start the service. You can double-click it to start the Tomcat service. The configuration files in this folder seem to be missing ..
For the decompressed version of Tomcat:
(1) first take a look at the files in the tomcat_home \ bin directory:
Obviously, startup. BAT (in Windows) enables the service and has the Catalina. BAT/Catalina. Sh (Linux) that I want ).
(2) Let's take a look at the configuration environment variables:
You do not need to configure environment variables for the installation version. You can simply double-click the startup Service icon, but the decompressed version does not work. Configure the environment variables as follows:
The variables to be configured include: java_home tomcat_home classpath (some JDK will be available after it is installed. If not, configure it)
Specific Configuration:
Java_home: JDK installation directory;
Tomcat_home: tomcat installation directory;
Classpath: lib directory under Tomcat and JDK.
My configuration parameters are as follows:
Understanding what they mean is the same as understanding relative paths and absolute paths.
(3) start Tomcat:
Double-click the Startup file of the installation version, but the decompressed version must be controlled through the CMD window:
Find the bin directory of Tomcat and execute startup to start it:
When you run startup, the following box is displayed, prompting that the startup is successful:
After the configuration is complete, enter http: // localhost: 8080/in the address bar.
Okay, that's all you have to say.
Add the download path of the decompressed tomcat version (actually the official website ):
Http://tomcat.apache.org/download-60.cgi