Contact: Web / Voice / Email / Tips
Simple Thoughts Blog - Java and Web Technologies

Simple solutions for complex problems.

 

How To: Java Stack Trace in Linux

February 24th, 2008 by Angsuman Chakraborty

A simple tip for newbies - how to get Java stack trace, the invaluable tool to debug java programs, in Linux:
- Type the Ctrl key followed by \, in short 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.

All of us who used Ctrl-Break on windows for a stack trace, like myself will find this non-intuitive. It took me some time and googling to figure this out, so I decided to (document) blog it once and for all.


Tags: Headline News, How To, Java Software, Linux, Linux Migration, Open Source Software, Programming, Tech Note | | RSS 2.0 | Trackback this Article | Email this Article

You may also like to read

»Open Source Java Software Stack (J2EE) Goes Mainframe
»Thoughts on Professional PHP Development
»How To Install Sun JVM (JDK 1.5.x) on Linux / Fedora Core in 5 Simple Steps
»Specific Rumors on Java OS based Google Phone running on Linux
»How Can Sun Monetize Java?
»Mysterious Call From Microsoft Inquiring About Windows! ... Evil Nexus With Dell?
»Welcome to targeted feed for JavaBlogs from today
»How To: ICMP Ping in Java (JDK 1.5 and above)
»RedHat Acquires JBoss: Great News for Java / J2EE and Linux Community
»How To Install JDK 6 / Java SE 6 (+ Tomcat) in Fedora Core 6 / Fedora 7 in 5 Minutes
»How To Speedup Java Over 100%
»How To Convert ASP.NET Applications to Java / J2EE: Introducing Grasshopper
»How To Change Java Compiler in Ant on Fedora Core / Linux
»Top 10 Java Features (or What Makes Java Great)
»Top 5 Regrets After Migrating From Windows To Linux

2 Responses to “How To: Java Stack Trace in Linux”

  1. anjan bacchu Says:

    hi there,

    I use jps and jstack utilities in the JDK (java 1.5 and above from sun) to do the above trick.

    If the java process is a daemon then, the jstack technique will work whereas you won’t be able to do the CTRL + \ trick.

    just my 2 cents.

    BR,
    ~A

  2. Angsuman Chakraborty Says:

    Thanks for sharing.

    Take care,
    Angsuman

Looking forward to hear your thoughts.



Please enter the code shown below ( to verify that you are human ) before you click Submit Comment.

No. 1 method to ethically increase your blog traffic and reach.

Translate

Translate to EnglishÜbersetzen Sie zum Deutsch/GermanPřeložit do Čech/CzechOversætte hen til Dansk/DanishKääntää jotta Finnish/FinnishLefordít -hoz Magyar/HungarianÞýða til Íslenska/IcelandicTraducir a Latinoamericano Español/Latin American Spanishtagapagsalin sa Filipino/FilipinoTłumaczyć wobec Polski/PolishA traduce la spre Român/RomanianPrevesti za Srpski/Serbiantolmačiti v slovenski/SlovenianÖversätta till Svensk/SwedishChyfieitha at Cymraeg/Welshtercüme etmek -e doğru Türk/TurkishPrevesti to Hrvatski/CroatianПревеждам към Българин/BulgarianTraduzca al Español/SpanishTraduisez au Français/FrenchTraduca ad Italiano/ItalianTraduza ao Português/Portuguese日本語に翻訳しなさい /Japanese한국어에게 번역하십시오/Korean中文翻译/Chinese Simplifiedترجمة الى العربية/ArabicVertaal aan het Nederlands/DutchΜεταφράστε στα ελληνικά/GreekПереведите к русскому/RussianOversetter til Norsk/Norwegian中文翻译/Chinese TraditionalTraduzir a Língua portuguesa brasileira/Brazilian PortugueseReddo ut Latin/Latin

Taragana Network

»Ctrl-S
»Enterprise Blog
»Free Book on Eye Care by Natural Therapy
»Health Care Blog
»Hot Computer Jobs Blog
»Pet Care & Grooming News and Tips
»Phil Law Blog
»Taragana - Software Outsourcing
»The Angsuman Chakraborty Blog
»The Diabetes Cure Blog
»The Eye Treatment Blog
»The Stem Cell Blog
»Weblog Hosting Blog
"Everything should be made as simple as possible, but not simpler." - Albert Einstein