Java Trouble-Shooting and Diagnostic Guide

Java, Standard Edition 5.0 Trouble-Shooting and Diagnostic Guide Recommended utilities to install jvmstat 3.0 Installation: [code lang=”perl”] sudo bash cd /opt unzip $HOME/download/devel/jvmstat-3_0.zip vim /etc/profile #Add following lines into /etc/profile PATH=$PATH:/opt/jvmstat/bin export PATH [/code] Usage [code lang=”perl”] # List available java processes > jps NNNN processename …. # open tools (e.g.) >visualgc NNNN [/code]

Read more

thread safe code : Java Glossary

thread safe code : Java Glossary One important point to notice is to notice discussion about ”volatile”. I.e. Either synchronized or volatile is requires when ”-server” is used, since server JVM will perform aggressive registry, etc. caching of values avoiding expensive shared memory access.

Read more

JUnit 3.8

Juni 3.8 appears to be current version: JUnit 3.8 Made the string argument TestCase constructor optional. You can now delete constructors of the form ”FooTestCase(String name) { super(name); }”. I was right, constructor FooTestCase(String) is obsolete nowadays…

Read more