How To: Java Stack Trace in Linux Come: Java stack trace in Linux
A simple tip for newbies - how to get Java stack trace, the invaluable tool to debug java programs, in Linux: Un semplice suggerimento per neofiti - come arrivarci Java stack trace, il prezioso strumento di eseguire il debug di programmi Java, Linux:
- Type the Ctrl key followed by \, in short Ctrl \ . -- Tipo il tasto Ctrl seguito da \, in breve Ctrl \.
I just used it to debug a persistent problem where a server process which automatically fetches data from a third-party site was inexplicably hanging. Ho appena usato di eseguire il debug di un problema persistente in cui un processo server che scarica automaticamente i dati da un sito di terze parti è stato inspiegabilmente impiccagione.
All of us who used Ctrl-Break on windows for a stack trace, like myself will find this non-intuitive. Tutti noi che usate Ctrl-Break a finestre per una pila traccia, come me troverà questo non intuitivo. It took me some time and googling to figure this out, so I decided to (document) blog it once and for all. Mi ci sono voluti un po 'di tempo e googling a questa cifra, così ho deciso di (documento) blog una volta per tutte.
Filed under Elencato sotto Headline News Headline News , How To Come , Java Software Software Java , Linux , Linux Migration Linux , Open Source Software Software open source , Programming Programmazione , Tech Note Nota tech | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | questo articolo |
Email this Article Invia questo articolo
You may also like to read Si può anche leggere come |





February 24th, 2008 at 3:50 am 24 febbraio 2008, 3:50 am
hi there, Hi there,
I use jps and jstack utilities in the JDK (java 1.5 and above from sun) to do the above trick. Io uso jps e jstack servizi di pubblica utilità nel JDK (Java 1,5 e al di sopra da sole) a fare il trucco di cui sopra.
If the java process is a daemon then, the jstack technique will work whereas you won’t be able to do the CTRL + \ trick. Se il processo di Java è un demone allora, la tecnica si jstack lavoro che non sarai in grado di fare il CTRL + \ trucco.
just my 2 cents. Just my 2 centesimi.
BR,
~A ~ Una
February 24th, 2008 at 4:35 am 24 febbraio 2008, 4:35 am
Thanks for sharing. Grazie per la condivisione.
Take care, Mi raccomando,
Angsuman