How To: Java Stack Trace in Linux Comment: java trace de la pile sous Linux
A simple tip for newbies - how to get Java stack trace, the invaluable tool to debug java programs, in Linux: Un petit conseil pour les débutants - Comment obtenir Java trace de la pile, le précieux outil pour déboguer des programmes Java, sous Linux:
- Type the Ctrl key followed by \, in short Ctrl \ . -- Type de la touche Ctrl suivie par \, c'est-à-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. Je viens de utilisé pour déboguer un problème persistant où le processus du serveur qui récupère automatiquement les données d'un site tiers est inexplicablement pendaison.
All of us who used Ctrl-Break on windows for a stack trace, like myself will find this non-intuitive. Chacun d'entre nous qui utilisé Ctrl-Break sur les fenêtres pour une trace de la pile, comme moi-même trouverez ce non-intuitive. It took me some time and googling to figure this out, so I decided to (document) blog it once and for all. Il m'a fallu un certain temps et googling à ce chiffre, alors j'ai décidé d'(document) blog elle une fois pour toutes.
Filed under Classé sous Headline News Headline News , How To Comment , Java Software Logiciel de Java , Linux , Linux Migration Migration de Linux , Open Source Software Open Source Software , Programming Programmation , Tech Note Note technique | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | cet article |
Email this Article Envoyer cet article
You may also like to read Vous mai également à lire |





February 24th, 2008 at 3:50 am 24 février 2008 à 3:50 am
hi there, Salut,
I use jps and jstack utilities in the JDK (java 1.5 and above from sun) to do the above trick. J'utilise les juges de paix et jstack services publics dans le JDK (Java 1,5 et au-dessus du soleil) pour faire l'astuce ci-dessus.
If the java process is a daemon then, the jstack technique will work whereas you won’t be able to do the CTRL + \ trick. Si le processus de Java est alors un démon, jstack la technique de travail que vous ne serez pas en mesure de faire la touche CTRL + \ truc.
just my 2 cents. just my 2 cents.
BR,
~A ~ A
February 24th, 2008 at 4:35 am 24 février 2008 à 4:35 am
Thanks for sharing. Merci pour le partage.
Take care, Prendre soin de,
Angsuman