Commons Daemon
  1. Commons Daemon
  2. DAEMON-248

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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()); }
      1. Test.java
        2 kB
        Elias Ross

        Activity

        Hide
        Elias Ross added a comment -

        Test program. Run a process with jsvc first.

        Show
        Elias Ross added a comment - Test program. Run a process with jsvc first.
        Hide
        Elias Ross added a comment -

        Basically, the bug is a request. I need another way to attach to these processes.

        It might be that command line matching is done using Sigar.

        I may or may not develop a fix for this.

        Show
        Elias Ross added a comment - Basically, the bug is a request. I need another way to attach to these processes. It might be that command line matching is done using Sigar. I may or may not develop a fix for this.
        Hide
        Mladen Turk added a comment -

        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?

        Show
        Mladen Turk added a comment - 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?
        Hide
        Mladen Turk added a comment -

        Please use users or developers list for further assistance

        Show
        Mladen Turk added a comment - Please use users or developers list for further assistance

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development