---
title: "使用jconsole的疑惑"
author: "fang9159"
date: "2008-04-15T09:29:20Z"
tags: []
categories: ["企业架构"]
slug: "jconsole"
draft: false
lastmod: "2008-04-15T09:29:20Z"
id: 182779
url: "https://fang9159.iteye.com/blog/182779"
---

最近系统出现内存溢出，堆空间不够，我想用jconsole看一看堆里面内存的情况，
我用的应用服务器是tomcat，端口：7080
我是用我本机做服务器，那我为tomcat做了下配置：-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.port=7080
-Dcom.sun.management.jmxremote

接着我就通过eclipes的tomcat插件启动，会报如下的错误：
java.net.BindException: Address already in use: JVM_Bind:7080。


端口被占掉了，我去掉-Dcom.sun.management.jmxremote.port=7080
tomca启动就是正常。

请问怎样解决这样的问题