launch DPS 6.x under a debug session

In order to start DPS 6.x under a debug session you first have to modify the arguments passed to the JVM

dpadm set-flags <your/dps/instance/path> jvm-args="-Xmx250M -Xms250M -Xdebug -Xnoagent \\
-Djava.compiler=none -Xrunjdwp:transport=dt_socket,server=y,suspend=n"

then start dps and note the dt_transport socket:

dpadm start <your/dps/instance/path>
Listening for transport dt_socket at address: 64870
Directory Proxy Server instance <your/dps/instance/path> started: pid=5900

You can now attach the process to a jdb session:

jdb -attach 64870 
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
Initializing jdb ...
>

Then you are ready to use jdb, for example

> stop at com.sun.directory.proxy.server.JdbcDataView:2372
Set breakpoint com.sun.directory.proxy.server.JdbcDataView:2372
>
... 

Note: You can also use an IDE to attach the process

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Patrice Duc-Jacquet

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today