3 Replies Latest reply: May 3, 2012 10:09 PM by 906690 RSS

    Why Java VisualVm Could not show running applications of remote server

    906690
      Hi,everyone. I run jstatd in the remote server, and run java visualVM in local ,but the applications running in remote server could not display in the visualVM panel.
      this is local viaualVm Info:
      ===============================================
      Version:
      1.7.0_02 (Build 1320-110325); platform 110131-9c8b3bfb3a1e

      System:
      Windows 7 (6.1) Service Pack 1, amd64 64bit

      Java:
      1.7.0_02; Java HotSpot(TM) 64-Bit Server VM (22.0-b10, mixed mode)

      Vendor:
      Oracle Corporation, http://java.oracle.com/

      Environment:
      GBK; zh_CN (visualvm)

      Userdir:
      C:\Users\Johnny\AppData\Roaming\.visualvm\7

      Clusters:
      C:\Java\jdk1.7.0_02\lib\visualvm\platform
      C:\Java\jdk1.7.0_02\lib\visualvm\visualvm
      C:\Java\jdk1.7.0_02\lib\visualvm\profiler

      有关详细信息,请访问 http://visualvm.java.net。在 NetBeans 平台上构建。
      ==============================================================

      the OS of remote server is CentOS 6. jvm info:
      ==============================================================
      java version "1.7.0_02"
      Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)
      ==============================================================


      start jstatd command is :
      ====================================
      ./jstatd -J-Djava.security.policy=jstatd.all.policy -p 2020
      ====================================


      the content if jstatd.all.policy which in the $JAVA_HOME\bin
      =====================================
      grant codebase "file:${java.home}/../lib/tools.jar" {
      permission java.security.AllPermission;
      };
      =====================================

      whats wrong happened ?

      帖子经 user5950241编辑过