JDB Access is denied
I need to debug a java service which is invoked by a c app(*.exe) on windows.
I use the
java -Xdebug -Djava.compiler=none -Xnoagent -Xrunjdwp:transport=dt_shmem,address=jdbconn,server=y,suspend=y -classpath D:/SOAM/3.0/samples/java/SampleApplication/bin MyService
to call my java service
then I use jdb -attach jdbconn
The result is
java.io.IOException: shmemBase_attach failed: Access is denied
at com.sun.tools.jdi.SharedMemoryTransportService.attach0(Native Method)
at com.sun.tools.jdi.SharedMemoryTransportService.attach(SharedMemoryTra
nsportService.java:90)
at com.sun.tools.jdi.GenericAttachingConnector.attach(GenericAttachingCo
nnector.java:98)
at com.sun.tools.jdi.SharedMemoryAttachingConnector.attach(SharedMemoryA
ttachingConnector.java:45)
at com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnectio
n.java:358)
at com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:1
68)
at com.sun.tools.example.debug.tty.Env.init(Env.java:63)
at com.sun.tools.example.debug.tty.TTY.main(TTY.java:964)
Fatal error:
Unable to attach to target VM.
I do not know why this happen

