地址已在使用:JVM_Bind java [英] Address already in use: JVM_Bind java

查看:30
本文介绍了地址已在使用:JVM_Bind java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时每当我重新启动应用程序时,它是建立在爪哇支柱Mysql 和 Jboss 4.05 版本我收到错误,因为地址已经在使用:JVM_Bind

Some times whenever I restart the application, which is built on Java Struts Mysql and Jboss 4.05 Version I get the error as Address already in use: JVM_Bind

我知道的唯一解决方法是重新启动机器并重试,它会起作用.其他有时我会按 Ctrl-Alt-Del 并停止所有与 Java 相关的进程,有时这也有效.

Only fix that i know is to restart the machine and try again, it will work. Else Some times I do Ctrl-Alt-Del and Stop all the process related to Java, some times this also works.

但是确切的原因是什么,我们如何才能防止这个问题?

But what is the exact reason and how can we prevent this problem ?

推荐答案

地址已被使用:JVM_Bind

Address already in use: JVM_Bind

表示某些其他应用程序已经在侦听您当前应用程序尝试绑定的端口.

means that some other application is already listening on the port your current application is trying to bind.

您需要做的是,更改当前应用程序的端口或更好;只需找出已经运行的应用程序并杀死它.

what you need to do is, either change the port for your current application or better; just find out the already running application and kill it.

在 Linux 上,您可以使用以下命令找到应用程序 pid,

on Linux you can find the application pid by using,

netstat -tulpn

这篇关于地址已在使用:JVM_Bind java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆