tomcat start, localhost access memory overflow error .java.lang.outofmemory

tomcat startup error

I did not have time to start tomcat, and yesterday, when activated, tomcat starts correctly, but did not open the corresponding web page. For solving this problem has taken the following steps:
First of all, I find the installation directory tomcat, open the server.xml configuration file in the config directory, see my port services

Because I had to change the port number is 80, so I'm thinking if there are other processes we are using ports 80, 80 so I turn back to 8080, but the attempt does not work, so I conclude that the problem is not the port number.

Then, I began to check the configuration environment variable

The following environment variables to configure Tomcat proper operation

1, the new variable name: CATALINA_BASE, variable value: C: \ tomcat

2, the new variable name: CATALINA_HOME, the variable value: C: \ tomcat

3, open the PATH, add the variable value:% CATALINA_HOME% \ lib;% CATALINA_HOME% \ bin
to determine this issue has nothing to do with the environment variable.
Again, I google search from the Internet, it was suggested that might be the computer firewall is blocking access to the page, I put the computer's firewall all closed, an attempt, the result is still to no avail, some small heart at this moment collapse. ,

(There is a situation easily overlooked: tomcat, no ROOT folder under the webapps directory!

     有经验的人看到这个可能会淡淡的一笑。但对于不知道tomcat启动,输入http://localhost:8080默认进入的是$tomcat/webapps/ROOT路径的人来说,很容易就忽视这个问题。)

Heaven ah, I just overlooked this problem ah. md, I quickly checked the ROOT folder, empty, now my mind is cluttered, hell, ah, my hands are owed day of the ROOT folder of deleted something? Do not say all tears.

I used to extract the tomcat installation once again, to which the ROOT folder copy a thing again, then ok

The project is too large to memory overflow

My project right -debug as-debug configurations-tomcat- vm arguments- add content behind
-Xms512M -Xmx1024M -XX: PermSize = 256m -XX : MaxPermSize = 512m
recompile the project on it

Here Insert Picture Description

Guess you like

Origin blog.csdn.net/weixin_43671743/article/details/89851864