When tomcat is started in Linux, the following error occurs: portalreadyinuse.

Source: Internet
Author: User
There are many reasons for this problem, and the title does not indicate the specific problem. Here, I will only talk about my operations, the problems encountered and their solutions, hoping to play a role in attracting others. Start t

There are many reasons for this problem, and the title does not indicate the specific problem.

Here, I will only talk about my operations, the problems encountered and their solutions, hoping to play a role in attracting others.

When tomcat is started, the following error is returned:

Error: Exception thrown by the agent: java. rmi. server. ExportException: Port already in use: 7800; nested exception is:
Java.net. BindException: Address already in use

Check configuration files such as $ {TOMCAT_HOME}/conf/server. xml, context. xml, and web. xml. no port 7800 is configured.

So google search, an article gave me a prompt: https://bowerstudios.com/node/636

Therefore, the answer is found in the $ {TOMCAT_HOME}/bin/catalina. sh startup file.

JAVA_OPTS = "-server-Xms2048m-Xmx2048m-XX: PermSize = 512 m-XX: MaxPermSize = 512 m-Dcom. sun. management. jmxremote-Dcom. sun. management. jmxremote. pwd. file =/opt/app/appcode/jmxremote. password-Dcom. sun. management. jmxremote. ssl = false-Dcom. sun. management. jmxremote. authenticate = false-Dcom. sun. management. jmxremote. port = 7803"
After analysis, because tomcat is not configured by me, I only maintain it, so that I cannot fully master the configuration essence of the installer.
Related Article

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.