Debugging an instance of karaf.

View: New views
2 Messages — Rating Filter:   Alert me  

Debugging an instance of karaf.

by peter lawrey-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Using karaf we have added an instance.  This runs nicely.  However, I
would like to debug this instance.  How do I set the debug port? (So it
doesn't clash with the main/root instance)

 

I looked at changing the start  script, however this can't be called
because it tries to run "admin" which doesn't appear in my distribution
(admin.bat does) however I can restart my instance so something is being
called.

 

Thank you in advance,

  Peter.


RE: Debugging an instance of karaf.

by peter lawrey-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

To answer my own question.... ;)

You can run via karaf or ssh.

admin:start -o "-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address={my-port}"
myinstance-dev1

It doesn't look like the web console can do this.

-----Original Message-----
From: peter lawrey [mailto:peter.lawrey@...]
Sent: 05 November 2009 09:22
To: users@...
Subject: Debugging an instance of karaf.

Using karaf we have added an instance.  This runs nicely.  However, I
would like to debug this instance.  How do I set the debug port? (So it
doesn't clash with the main/root instance)

 

I looked at changing the start  script, however this can't be called
because it tries to run "admin" which doesn't appear in my distribution
(admin.bat does) however I can restart my instance so something is being
called.

 

Thank you in advance,

  Peter.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...