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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.0.2
    • Fix Version/s: None
    • Component/s: Jsvc
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: