Uploaded image for project: 'Commons Daemon'
  1. Commons Daemon
  2. DAEMON-248

jsvc does not expose java.rt.vmArgs monitor information for Java Attach API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.0.2
    • None
    • Jsvc
    • None

    Description

      Run a process using jsvc.exec

      Then use the Attach API to locate the process.

      Note that java.rt.vmArgs are not available. See the attached program.

      monitoredhost = MonitoredHost.getMonitoredHost(new HostIdentifier((String) null));
      set = monitoredhost.activeVms();
      ... iterate

      MonitoredVm monitoredvm = monitoredhost.getMonitoredVm(new VmIdentifier(s));
      List<Monitor> l = monitoredvm.findByPattern(".*");
      for (Monitor m : l)

      { System.out.println("> " + m.getName() + " " + m.getValue()); }

      Attachments

        1. Test.java
          2 kB
          Elias Ross

        Activity

          People

            Unassigned Unassigned
            genman Elias Ross
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: