Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if eclipse starts tomcat and reports an error OOM?

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Eclipse start tomcat error OOM how to do, I believe that many inexperienced people do nothing about this, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

The background of the problem:

The project could have started normally without any problems. Today, I changed a new branch, checked out again, opened a new workspace, checked out the project from the new svn address, followed the same set of operations. After checking out, update maven project did not have a task error prompt. It was strange that the name of the project became capitalized. When I saw that the name of the project matched with the pom file was capitalized, I thought someone had changed it. Anyway, there should be no problem with the same svn. Configure the same server in eclipse, use the same jdk,tomcat, start very happy, and finally log in and report an error OOM permgen space, then I set the jvm parameter, and then start the login is still this error, and then I open the original normal project, start its server access, and find from console that it prints the following information more than my new server.

-Xms1024m-Xmx1024m-XX:MaxPermSize=256m-XX:MaxNewSize=256

The parameters set above are not printed at startup because there are many colons in the configuration, the configuration is not correct, and everything is normal after adding the correct configuration.

The strange thing is that in the original normal startup server, the following jvm parameters are not configured with these things, but they are printed out. I don't know that these command line argument will also be configured from × × ×. Tomcat catalina.bat uses the same. I took a look at it and didn't have any of these things. I forgot where I added these. Write it down first.

After reading the above, have you mastered the method of how eclipse starts tomcat to report an error OOM? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report