commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DAEMON-248) jsvc does not expose java.rt.vmArgs monitor information for Java Attach API
Date Mon, 22 Oct 2012 06:52:14 GMT

    [ https://issues.apache.org/jira/browse/DAEMON-248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481219#comment-13481219
] 

Mladen Turk commented on DAEMON-248:
------------------------------------

Hmm,
If running as daemon under users account you might just be lacking enough karma to get the
process data.
What happens if you run Test.java as root?
                
> 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

Mime
View raw message