Home » Tag Archives: Troubleshooting

Tag Archives: Troubleshooting

What is wrong with troubleshooting tools?

software-development-2-logo

“Troubleshooting is a form of problem solving applied to repair failed software. It is a logical, systematic search for the source of a problem so that it can be solved, and so the software can be made operational again.” This definition from Wikipedia is using fancy words to tell you that – whenever your application is broken, somebody has to ...

Read More »

JVM is down with “OutOfMemory” error – what should I do?

java-logo

Amazing as it may seem, but this particular cry “From the Depths” is frequently displayed among the results of search requests regarding JVM settings. You have probably been faced with the “I remember that option, but how to enable it” problem, while administrating servers or adjusting virtual appliances at times (semi-annualy, for example) and apart from your main tasks. There ...

Read More »

5 Error Tracking Tools Java Developers Should Know

java-logo

Raygun, Stack Hunter, Sentry, Takipi and Airbrake: Modern developer tools to help you crush bugs before bugs crush your app!  With the Java ecosystem going forward, web applications serving growing numbers of requests and users’ demand for high performance – comes a new breed of modern development tools. A fast paced environment with rapid new deployments requires tracking errors and ...

Read More »

Logging or debugging

software-development-2-logo

Debugging is lame. You should debug log. If your code is structured you do not need debug logging. These are two opinions from the two ends of the line. I am, as usually, standing in the middle, and I will tell you why. First of all, there is no principal difference between debugging versus logging. They are just two different ...

Read More »

OpenJPA: Memory Leak Case Study

apache-openjpa-logo

This article will provide the complete root cause analysis details and resolution of a Java heap memory leak (Apache OpenJPA leak) affecting an Oracle Weblogic server 10.0 production environment. This post will also demonstrate the importance to follow the Java Persistence API best practices when managing the javax.persistence.EntityManagerFactory lifecycle.             Environment specifications Java EE server: ...

Read More »

Java Thread: retained memory analysis

java-interview-questions-answers

This article will provide you with a tutorial allowing you to determine how much and where Java heap space is retained from your active application Java threads. A true case study from an Oracle Weblogic 10.0 production environment will be presented in order for you to better understand the analysis process. We will also attempt to demonstrate that excessive garbage ...

Read More »

JavaOne 2012: Diagnosing Your Application on the JVM

java-logo

It was worth attending Staffan Larsen‘s (Oracle Java Serviceability Architect) presentation ‘Diagnosing Your Application on the JVM‘ (Hilton Plaza A/B) just for learning of the new jcmd command-line tool provided with Oracle’s JVM 7. The rest of the presentation was ‘bonus’ for me, which was nice for the last session I attended on Wednesday of JavaOne 2012. The Oracle HotSpot ...

Read More »

Hunting a Random Bug – A True Story

java-interview-questions-answers

A few weeks ago, I finished a bug hunt for the RapidFTR open source project, which took me three evenings. I thought it might be worth sharing the story of the hunt. This article will describe what I did. I will give an overview of my journey to actually find the root cause of what was going on. My goal ...

Read More »

Which Java thread consumes my CPU?

java-logo

What do you do when your Java application consumes 100% of the CPU? Turns out you can easily find the problematic thread(s) using built-in UNIX and JDK tools. No profilers or agents required. For the purpose of testing we’ll use this simple program: public class Main { public static void main(String[] args) { new Thread(new Idle(), 'Idle').start(); new Thread(new Busy(), ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.