How To: Java Stack Trace in Linux How To: Java stack trace em Linux
A simple tip for newbies - how to get Java stack trace, the invaluable tool to debug java programs, in Linux: Uma dica simples para iniciantes - como obter Java stack trace, o instrumento precioso para depurar programas Java, no Linux:
- Type the Ctrl key followed by \, in short Ctrl \ . -- Tipo a tecla Ctrl seguido por \, em suma 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. Eu apenas usado para depurar é um problema persistente processo em que um servidor que recupera automaticamente os dados a partir de um site foi inexplicavelmente enforcamento.
All of us who used Ctrl-Break on windows for a stack trace, like myself will find this non-intuitive. Todos nós que utilizar Ctrl-Break com janelas para uma stack trace, como eu irá encontrar este não intuitivo. It took me some time and googling to figure this out, so I decided to (document) blog it once and for all. Levei algum tempo e googling para se compreender isto, por isso eu decidi-me (documento) blog-lo de uma vez por todas.
Filed under Arquivado em Headline News Headline News , De How To How To , De Java Software Java Software , De Linux O Linux , De Linux Migration Linux Migration , De Open Source Software Open Source Software , De Programming Programação , De Tech Note Nota Tech | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | este artigo |
Email this Article E-mail este artigo
You may also like to read Você pode também gosta de ler |




February 24th, 2008 at 3:50 am 24 de fevereiro de 2008, 3:50 am
hi there, oi lá,
I use jps and jstack utilities in the JDK (java 1.5 and above from sun) to do the above trick. Eu uso JPS jstack e utilitários no JDK (java 1,5 e acima de sol) para fazer o truque acima.
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 o java processo é um daemon então, a técnica irá trabalhar jstack que você não será capaz de fazer o CTRL + \ truque.
just my 2 cents. apenas meus 2 centavos.
BR,
~A A ~
February 24th, 2008 at 4:35 am 24 de fevereiro de 2008, 4:35 am
Thanks for sharing. Obrigado por compartilhar.
Take care, Cuide-se,
Angsuman