Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JConsole cannot connect to PID using remote desktop to Windows 2003 Server

843798Jan 23 2009 — edited Mar 15 2009
Hi,

I have JMX enabled java program running as a Windows Service under local system account using a service wrapper. If I connect to the java process using jconsole.exe +<PID>+ it works perfectly, but if I do the same through a remote desktop connection, I get the following error in a blank console +“Invalid process id:6368”+.

I tried to change the TMP directory to a known folder with the proper user rights and I see that the java process creates the correct folder *“hsperfdata_SYSTEM”* containing a file named *"6368"* (PID).

I'm using JDK1.6u11 and I have tested it on Windows XP and Windows Server 2003. On Windows XP it works just fine, even trough remote desktop, but not on windows servers. It might have something to do with server editions allow multiple remote desktop connections at the same time?!?

Anyone knows whether jconsole using PID is supported through remote desktop?

It should be mentioned that connecting through localhost:port works fine, but this is not an option for me due to security issues. I'm not permitted to open a remote port…..

Hope someone can help me out here….

Kind regards Torben Riis
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 12 2009
Added on Jan 23 2009
1 comment
782 views