Home>

I. Problem description

One I came to the company today,When starting tomcat server in intellij idea, I got the error shown below:

Error:Agent throws exception error:java.rmi.server.exportexception:port already in use:1099;nested exception is:java.net.bindexception:address already in use:jvm_bind

Here it is that port 1099 is occupied by other processes.

Solution

Find out the processes occupying port 1099,Enter the windows command and see what process is using port 1099

Use the command:netstat -aon | findstr 1099Find out the processes occupying port 1099,As shown below:

Then close the process occupying the port:taskkill -f -pid 3756

This will start tomcat normally. The problem is solved successfully.

The following is the error we encountered when starting tomcat under Linux:portalreadyinuseLet me share the solution.

There are many reasons for this problem.The title does not explain the specific issue.

Just say my operation here,Problems encountered and their solutions,Hope to play a role in attracting bricks and stones.

Start tomcat, the error is as follows:

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

Checked configuration files such as ${tomcat_home} /conf/server.xml, context.xml, web.xml,No place to configure port 7800 was found.

So googling, an article gave me tips:

So from${tomcat_home} /bin/catalina.shThe answer was found in the startup file.

java_opts="-server -xms2048m -xmx2048m -xx:permsize=512m -xx:maxpermsize=512m -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 analyzing it,Because tomcat is not configured by me,I only maintain it.Therefore, the essence of the configuration of the installer cannot be fully grasped.

  • Previous Solution to the problem that the submenu on the left side of yii2 cannot be highlighted
  • Next Php object-oriented programming difference between self and static