>1. Is it possible to create a thread dump of this application
>telnet)after the application has been launched and is running in a
>background process (a process which may have been started in an earlier
>sessions)
make sure that when you start it you redirect stdout/err to files
then send it a signal (sig_kill? maybe, depends on your implmentation)
then _copy_ the files. In general you might want to do this anyway
to catch runtime excpetions that boil out of your code and end up
being caught by the jvm.
>2. Can I use remote debugging to achieve the above and how would it
>work.
start server with -debug option. Use standalone program to connect...
Jikes!Debugger (www.alphaworks.ibm.com) should fit the bill.
>3. Is there any java command that will generate a thread dump
The request has been made to javaSoft that a programatic method to
thread/monitor dumps be provided.... In the meantime you can write a
thread that keeps track of all _your_ threads in the jvm. have each
register with this object then when you want them you push a button
on it (maybe even via RMI) and it takes a dump of each thread object
that's been registered with it and either dumps them to sys.out or a
file, or back to you in a String[] or whatever. (you'd also want to
have an unregister method)
a fourth option (my favorite) is to NOT &/bg your server while
debugging the client, leave it up. This will allow you to put
sys.out.print calls in the server side code and see what's being
called while testing the client.... -=Chris
<*> cabbey at rconnect dot com http://homepage.rconnect.com/cabbey/ <*>
Get it up, keep it up... LINUX: Viagra for the PC. ;) PGP Info: pgp.html
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12 http://www.geekcode.com
GCS$/IT/PA$ d(-) s++:+ a-- C+++$ UL++++ UA++$ P++ L++ E- W++ N+ o? K? !P
w---(+)$ O- M-- V-- Y+ PGP+ t--- 5++ X+ R tv b+ DI+++ D G e++ h(+) r@ y?
------END GEEK CODE BLOCK------