bug: name/command mismatch (on windows)

19 views
Skip to first unread message

JN

unread,
Jul 20, 2011, 12:48:57 AM7/20/11
to JavaSysMon

Hi,

I need something "just like" javasysmon, so I was excited to find this
project. This is definitely something that is sorely missing and
needed in Java.

However performing a simple test which just prints the output of
Monitor.processTable() shows me that it doesn't quite work as it
should. This is on Win 7 with JDK 1.6.0_25. For example:

(excerpted from the output; this is just one example:)
6280 javaw.exe "\Device\HarddiskVolume2\Windows
\System32\calc.exe"

I have the Windows calculator utility running, and I have other java
tasks running; for whatever reason, this process has name "java.exe"
and command 'calc.exe", which isn't correct. Something's not working
right.

I also just noticed that there's unfortunately no way to get the
command-line arguments (yet?). I need to locate a very specific java
program, but all I have to go on is "java.exe".

Regards,
Jim

JN

unread,
Jul 20, 2011, 12:50:51 AM7/20/11
to JavaSysMon

P.S. When I cross-check in Windows task manager, I see that the pid
(6280) matches calc.exe.

Jez Humble

unread,
Jul 20, 2011, 2:33:13 AM7/20/11
to javas...@googlegroups.com
Hi Jim

Unfortunately I don't have a windows box to debug on right now. If you - or anyone else - can submit a patch, I'll happily merge it, otherwise it will have to wait a few weeks for me to get an environment up and running.

Thanks,

Jez.

JN

unread,
Jul 20, 2011, 7:24:25 PM7/20/11
to JavaSysMon

Thanks Jez. I'd look into it myself but I'm not a C programmer, let
alone a C on Windows programmer. I opened a new issue at
https://github.com/jezhumble/javasysmon/issues/9 with my (very simple)
code snippet and the full output.

Regards,
Jim

On Jul 19, 8:33 pm, Jez Humble <j...@jezhumble.net> wrote:
> Hi Jim
>
> Unfortunately I don't have a windows box to debug on right now. If you - or
> anyone else - can submit a patch, I'll happily merge it, otherwise it will
> have to wait a few weeks for me to get an environment up and running.
>
> Thanks,
>
> Jez.
>
> Co-author, *Continuous Delivery <http://continuousdelivery.com/>*http://continuousdelivery.com/http://jezhumble.net/
Reply all
Reply to author
Forward
0 new messages