# TIP: Get Stack State (trace) from Java Processes

DevFeed: [TIP: Get Stack State (trace) from Java Processes](<https://devfeed.tech/articles/tip-get-stack-state-trace-from-java-processes-19579.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/tip-get-stack-state-trace-from-java-processes/>)

Author: Shai Almog

Published: 2016-11-13T00:00:00Z

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [debug](<https://devfeed.tech/topics/debug.md>), [Processes](<https://devfeed.tech/topics/processes.md>), [Concurrent Programming](<https://devfeed.tech/topics/concurrent-programming.md>), [Deadlock](<https://devfeed.tech/topics/deadlock.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Terminal](<https://devfeed.tech/topics/terminal.md>), [Android](<https://devfeed.tech/topics/android.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [deadlock](<https://devfeed.tech/tags/deadlock.md>), [debugger](<https://devfeed.tech/tags/debugger.md>), [java](<https://devfeed.tech/tags/java.md>), [linux](<https://devfeed.tech/tags/linux.md>), [processes](<https://devfeed.tech/tags/processes.md>), [terminal](<https://devfeed.tech/tags/terminal.md>), [thread](<https://devfeed.tech/tags/thread.md>), [threads](<https://devfeed.tech/tags/threads.md>)

## AI overview

A practical guide to obtaining JVM thread and stack-state information from Java processes when reproducing bugs or diagnosing frozen tools. It covers Windows controls, console or terminal methods on Mac and Linux, VisualVM, and submitting stack information for issues such as deadlocks.

## Source excerpt

One of the most frustrating things that can happen to developers is when you manage to reproduce a rare bug but you are not in the debugger when you did that. My kingdom for a stack trace... But this is also pretty frustrating when you work on a tool like Codename One's designer or GUIBuilder and they suddenly freeze with no visible error. How do you provide a viable bug report for that?