Archive for July, 2010

Identifying a thread with high CPU usage in a Java app

Tags: , , ,

One of the threads in your app is consuming way too much CPU. Perhaps pegging a core at 100%. How do you find out which thread? Use JConsole. It comes with the JDK. But out-of-the-box, JConsole won’t provide the info we need. You will need to use it with a plugin that gathers and displays [...]

Continue reading » 3 Comments

Debug with Step Filters in Eclipse

Tags: , ,

I got this excellent debugging tip from a colleague at work recently. Most of the time when you are debugging, you want to be looking at your own code. Not code from libraries or the JDK or even the ‘framework’ parts of your own code base. You can configure the Eclipse Java debugger to not [...]

Continue reading » 7 Comments

Conditional breakpoints in Java development with Eclipse

Tags: , ,

Imagine that you have a screen that shows a large list of items with several columns of data for each row. One of the items is showing odd data. You want to step though the code to see what is happening for that row. If you set a normal breakpoint, you’ll have to break and [...]

Continue reading » 2 Comments