Performance

Performance tunning can be challenging,

look at advise from http://www.javaperformancetuning.com/tips/j2ee.shtml#REF2

Java String Usage in project

- In while loop, manipulating string by using substring and since string is immutable, so it will create lots of heap usage. use StringBuffer or StringBuilder instead.