You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Mladen Turk (JIRA)" <ji...@apache.org> on 2012/11/21 10:00:00 UTC

[jira] [Resolved] (DAEMON-248) jsvc does not expose java.rt.vmArgs monitor information for Java Attach API

     [ https://issues.apache.org/jira/browse/DAEMON-248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mladen Turk resolved DAEMON-248.
--------------------------------

    Resolution: Won't Fix

Please use users or developers list for further assistance
                
> 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
>         Attachments: Test.java
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira