Better jmap/jsadebugd/etc support on WinNT post-Mustang?

Jdk6 has basic WinNT support for the command-line diagnostic tools. While a nice improvement over Jdk5, these's still a lot of nice stuff missing that *is* available to the other platforms.

While I realize that most of these utilities are 'unsupported', I'm curious about the reasons from this dichotomy. Is there some intristic handicap of WinNT that prevents it supporting the full gamut of jmap/jinfo etc?

1) For instance, "jsadebugd" appears like a regular RMI service, providing a pass-through to the Attach API. What would prevent it from running on WinNT?

2) As another example, "jmap" does not support "-finalizerinfo" or "-permstat" on WinNT. Not knowing better, I would say that once the connection to VM is made, this information should be queried in the same manner as on the other platforms. Is there some restriction in the Win32 JMV that makes this impossible/hard?

Message was edited by:

Pakka-Pakka

[957 byte] By [Pakka-Pakkaa] at [2007-10-3 8:28:29]
# 1

The jstack/jmap/jinfo utilities started life as diagnosability utilities to inspect core files and hung processes. For such uses the utilities make use of something called the Serviceability Agent (SA). To date we haven't shipped an SA implementation on Windows and this is the reason for the dichotomy. In jdk6 some of the options to these utilities were updated to allow them be used with running applications. This makes them faster and also it means they don't see the target VM in an inconsistent state. Where the options have been converted they can still be made to work with hung processes by using the -F (force) option. There wasn't time in jdk6 to create built-in implementations of all options (sorry). In time expect to see improvements.

alan.batemana at 2007-7-15 3:35:13 > top of Java-index,Core,Monitoring & Management...
# 2
Great to hear that improvements are coming for Win32. Are these scheduled for 6.0 update releases or will this work only go into 7.0?
Pakka-Pakkaa at 2007-7-15 3:35:13 > top of Java-index,Core,Monitoring & Management...