JDK-6422282 : JMap intermittent java.io.IOException: Unable to enqueue command to target VM: Internal error
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris
  • CPU: sparc
  • Submitted: 2006-05-05
  • Updated: 2012-02-02
  • Resolved: 2006-05-05
Related Reports
Duplicate :  
Description
Test which fills heap with different objects, and then dumps heap using jmap -dump:format=b fails intermittently with exception:
	heapdump/JMapHeap
Here is the failure log:

Starting eating heap.
Executing /net/vmsqe.russia/export1/vmsqe/jdk-builds/latest/solaris-sparc/bin/jmap  -dump:format=b,file=heap.bin 11004
Dumping heap to /net/vmsqe-amd-01.russia/export4/UTB/DTF-work/dtf3-exec/spb.nightly-2006-05-05-spb.nightly-Main_Baseline_checkjni-server-mixed-solaris-sparc
-ANYVENDOR-2006-05-05-02-02-04-0521/work/vmsqe-robot.SunOS.sparc/JMapHeap/heap.bin ...
Exception in thread "main" java.io.IOException: Unable to enqueue command to target VM: Internal error
        at sun.tools.attach.SolarisVirtualMachine.enqueue(Native Method)
        at sun.tools.attach.SolarisVirtualMachine.execute(SolarisVirtualMachine.java:107)
        at sun.tools.attach.HotSpotVirtualMachine.executeCommand(HotSpotVirtualMachine.java:195)
        at sun.tools.attach.HotSpotVirtualMachine.dumpHeap(HotSpotVirtualMachine.java:162)
        at sun.tools.jmap.JMap.dump(JMap.java:215)
        at sun.tools.jmap.JMap.main(JMap.java:120)
Java HotSpot(TM) Server VM warning: Unable to re-attach door
Java exited with exit status 1
TEST FAILED

Also, the warning appears each time the test is run.
See Comments for details on how to reproduce it.

Comments
EVALUATION The attach mechanism on Solaris is broken for concurrent clients since the integration of 6346964 in b80. The regression is tracked as 6417266 so I will close this as a dup.
05-05-2006