Saturday, November 21, 2015

Simplest ways to increase performance of a application


1)     Logging - during my analysis of a project i found logging is takes much time and if we are using it wrongly such as logging directly a large object, in that case toString() method of the object gets called then the time increases drastically. Logging of any exception also takes much time. So if we log only required data and check isDebugEnabled() before any debug log then we can achieve good improvement.
2)      Exception are also takes considerable time. if we analyze the situations where we are getting exceptions and can do any thing alternative to it or apply any check we can achieve performance improvement in less efforts.
3)     Caching – will increases performance drastically. EH Cache is very easy to configure and if you are using JPA or Hibernate then it will not require much efforts
4)     UI Validations -  
5)     Parallel Processing –
6)     Transaction Management –
7)     Indexing of DB tables
8)     Hibernate Tuning
9)     Increase fetch size
10)HTTP caching

11)Time out for external systems

No comments: