Idea Startup Tomcat Invalid: Unable to ping server at Localhost:1099__tomcat

Source: Internet
Author: User
Tags server memory tomcat server

With idea to open a new project, and found that the project has been created and set up with Tomcat, the startup item is invalid, idea should have automatically invoked the browser to open the specified link after the server starts, but there is nothing, and the server does not start the error, but start quickly, Not like at least a few seconds before. Then you open the 127.0.0.1:8080 and nothing is displayed. It should be a startup failure anyway.



Start scheduling Mistakes


First I turn off the idea to start the server. Then from the Tomcat directory in the bin folder directly run Startup.bat, that is, direct black window to start the server, found that there is nothing wrong with the boot, a few days before the deployment of WebApps under the project can still be normal access. Then the server itself is excluded from the problem.


And then basically can determine where idea is configured out of the problem. Think about going through the steps of the previous project to build one more time. It's also the same problem with startup.

Then open the project that was created with idea, start the server, eh, or the same problem, then the project can be run perfectly now. The last time you shut down the idea startup server, you find this prompt to shut down the server:


Then look at the log that starts Tomcat, looking over the following info:

。。。。。。。。。。。
October 03, 2017 1:53:22 pm Org.apache.catalina.startup.VersionLoggerListener log
information: Command line argument:- xms128m
October 03, 2017 1:53:22 pm Org.apache.catalina.startup.VersionLoggerListener log
information: Command line argument: -xmx1024m
October 03, 2017 1:53:22 pm Org.apache.catalina.startup.VersionLoggerListener log
information: Command line Argument:-xx:permsize=128m
October 03, 2017 1:53:22 pm Org.apache.catalina.startup.VersionLoggerListener log
Info: Command line argument:-xx:maxnewsize=256m
October 03, 2017 1:53:22 PM Org.apache.catalina.startup.VersionLoggerListener Log
information: Command line argument:-xx:maxpermsize=1024 .....


Think about it before you catalina.bat a setting in the file:

Set java_opts=-server-xms128m-xmx1024m-xx:permsize=128m-xx:maxnewsize=256m-xx:maxpermsize=1024

This is because the previously deployed project reported a memory overflow problem, I also wrote the article can refer to:

Tomcat server memory overflow error: Outofmemoryerror:permgen space

Think of the possible removal of this configuration should be no problem, try, the programmer is a bit bolder, try to try, always will not let the server collapsed.


Solve

It's perfect to start, like it was before. When you start Tomcat successfully, the specified link opens automatically.


So the problem is not really resolved, why not let me set JVM parameters, find a predecessor's saying:

The java_opts configured in Tomcat covers the java_opts of idea.


That means that this parameter is already configured in idea, so if you want to configure this JVM parameter, you can configure the java_opts parameter directly in idea.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.