score:25
Indeed (thanks VonC to point to the SO thread), Dustin, in a comment to his message, points to jstack.
I have run a little Java application (with GUI) in Eclipse, I can see the related javaw.exe in Windows' process manager and its PID, 7088 (it is even simpler in Unix, of course).
If I type at a command prompt jstack 7088
, I have the wanted stack dump per thread.
Cool.
Would be better if we could do that directly from Eclipse, but that's already useful as is.
score:0
Did you try to launch your eclipse with java.exe instead of javaw.exe (in your eclipse.ini) ?
That might give you the console you need, as described in this bug and in this message.
Other ideas (in term of java options) could be derived from this other SO question.
score:0
You can connect through the JVisualVM and get a thread dump. Just right click on the application node from the Applications tree and select "Thread dump"
score:0
On linux at least you can do a ps -ef | grep java
to get the PID and then do a kill -3 PID
and it will output it to the Eclipse console.
score:2
StackTrace is another option that you could try. From the features:
Thread dump for Java processes running as a Windows service (like Tomcat, for example), started with javaw.exe, applets running inside any browser or JVMs embedded inside another process. StackTrace works on Windows, Linux and Mac OS X.
score:2
if you prefer UI based solution visualvm might be a good choice. (it's advantage is also that it's distributed with JDK)
To take the thread dump in visualvm:
- connect to process (remote or local) and
- go for
Threads
(tab) ->Thread Dump
(button)
score:3
Eclipse Wiki: How to Report a Deadlock lists all possible options of creating a thread dump in Eclipse. Depending on the concrete situation, one or the other may work better -- my personal favorite on Windows is the Adaptj Stacktrace tool.
score:7
You can do it when you are in debug mode: go to the debug view in the debug perspective, click on the process you have launched and click on pause, you will get a graphical stack of all your processes.
Note : this also works when using remote debugging, you do not need to launch weblogic from eclipse, you can launch it on its own, open the debugging ports and create a "remote java application debug configuration" for it.
score:7
check SendSignal: http://www.latenighthacking.com/projects/2003/sendSignal/
Source: stackoverflow.com
Related Query
- How to Force Thread Dump in Eclipse?
- How to take/create a UI thread dump log for Eclipse RCP applications?
- How to force Eclipse to ask for default workspace?
- How to convert a heap dump in android to eclipse format
- How to force eclipse to use a specified interface language?
- How to force the Eclipse Mars 4.5 formatter not to join already wrapped lines?
- How do I force eclipse to update the apk on my hardware device with each build?
- How to force Eclipse to restart an app that has not changed
- How to change the text in the thread group display in CDT-based eclipse debugger?
- Eclipse hangs forever, thread dump says Main thread is sleeping
- How can I force Eclipse to use Sun Java?
- How do I force eclipse to show xml layouts and styles as text?
- How to force Eclipse to use the this keyword when auto-generating getters and setters?
- How can I force the Eclipse toolbar to be on one row
- JMAP dump size is 4.5 GB. Eclipse MAT is showing total heap of 415 MB, how do i analyze the remaining dump?
- How to force Eclipse to see java project as java project?
- How to force Eclipse wrap that line?
- How can I use Eclipse Memory Analyzer Tool to dump the heap from a running process?
- How can I force eclipse to generate my setters with a return statement
- How to Force Eclipse to not Change Readonly File Flag?
- How to force eclipse to use the SceneBuilder executable file? Mac os x
- How to find problematic thread in Eclipse remote debugger?
- How to force eclipse to republish project when changing source in another module
- How do you force Eclipse to prompt you to create a getter and setter when it doesn't do it automatically?
- how to force Eclipse CDT to add -stdc++11 flag on every project
- How to force team members to comment using eclipse plugin or something else
- How to Force compiler in autotools with Eclipse
- How to force Eclipse Link creates Tables exactly same ClassName?
- How to force renaming of variable names in eclipse mars
- How to force a target platform update in eclipse when adding an osgi bundle
More Query from same tag
- Why isn't the TextView working?
- Check out into a folder in Eclipse
- facebooksdk.jar missing from Android Dependencies library
- how to properly customiz the action bar in android
- OSGi - Activator can't access internal packages of the Bundle
- Eclipse debugger not working
- Eclipse e4 TitleAreaDialog not adopting upper left corner icon from e4xmi icon uri
- PyDev adding tabs to block indentation
- Oracle Database 12c in VM on Mac OSX
- How can I start and stop my countdowntimer via a button?
- C/C++ Eclipse GDB not showing break points
- Automatically Terminating Previously Running Python Interprets when Relaunching in Eclipse
- What Does "Export-Package: ." Mean?
- Eclipse is telling me a cycle was detected in the building path, but that's not true!
- Why is the project I made in Eclipse empty?
- Maven integration in eclipse: Missing requirement
- Android Application crashes on Startup
- What does an orange square by folder in Package Explorer mean?
- No Java runtime present, requesting install
- Why eclipse impose restriction on BASE64Encoder?
- Eclipse PDT content assist for PHP just stopps working randomly
- Multiple handlers for one command in eclipse e4
- Eclipse project configuration when using m2e
- WSO2 DAS Toolings
- In Eclipse (Aptana plugin), change annotation / highlighting for matching text when executing a find /search?
- How to manage sites of a web app with Maven properly?
- javax.persistence missing JavaDoc
- Get HTTP Status 404 - Not Found, when the name of a dynamic web project renamed and deployed on Glassfish with Eclipse
- Using custom-made makefile in Eclipse
- Let Eclipse know files included via -include gcc flag