commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elias Ross (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DAEMON-248) jsvc does not expose java.rt.vmArgs monitor information for Java Attach API
Date Wed, 28 Mar 2012 20:27:30 GMT
jsvc does not expose java.rt.vmArgs monitor information for Java Attach API
---------------------------------------------------------------------------

                 Key: DAEMON-248
                 URL: https://issues.apache.org/jira/browse/DAEMON-248
             Project: Commons Daemon
          Issue Type: Bug
          Components: Jsvc
    Affects Versions: 1.0.2
            Reporter: Elias Ross


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());
                    }


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message