/ January 2013 ~ Java EE Support Patterns

1.25.2013

Java concurrency: the hidden thread deadlocks

Most Java programmers are familiar with the Java thread deadlock concept. It essentially involves 2 threads waiting forever for each other. This condition is often the result of flat (synchronized) or ReentrantLock (read or write) lock-ordering problems. Found one Java-level deadlock: ============================= "pool-1-thread-2":   waiting to lock monitor 0x0237ada4 (object 0x272200e8, a java.lang.Object),   which is held by "pool-1-thread-1" "pool-1-thread-1":  ...

1.12.2013

QOTD: Java Thread vs. Java Heap Space

The following question is quite common and is related to OutOfMemoryError: unable to create new native thread problems during the JVM thread creation process and the JVM thread capacity.  This is also a typical interview question I ask to new technical candidates (senior role). I recommend that you attempt to provide your own response before looking at the answer. Question: Why can’t you increase the JVM thread capacity (total # of threads) by expanding the Java heap space capacity via -Xmx? Answer: The Java thread creation process requires native memory to be available for the JVM process. Expanding the Java heap space...

1.11.2013

Java Verbose GC - tutorial video

This is my first tutorial video which will provide you with technical detail on how to enable and analyze the verbose:gc output data of your JVM process. You can also download the Java sample program from the link below. Please make sure that you configure your Java runtime with a heap space of only 1 GB (-Xmx1024m). https://docs.google.com/file/d/0B6UjfNcYT7yGenZCU3FfTHFfNnc/edit Future videos may also include scripts in order for the non-English audience to perform proper language translation. I’m looking forward for your feedback and suggestions on topics and video format you would like to see...

1.09.2013

Java video tutorials: A picture is worth a thousand words

This is my first post for 2013. I want to thank all my readers for their great feedback and comments from the various articles I posted in 2012. It is sometimes quite difficult to truly show and explain some troubleshooting techniques via articles only. For 2013, on top of my regular posting, I will be introducing tutorial and troubleshooting videos. These training videos will be available for free from YouTube. I really hope that you will appreciate this addition. Watch for a new Videos section from the top navigation bar. I’m really looking forward for your suggestions and recommendations on what type of tutorials and videos you would...

Page 1 of 3212345Next