InfoCenter Home > 4.2.8: Programming high performance Web applicationsThis article offers tips and guidelines for creating Web applications that perform well in the WebSphere Application Server environment. It also includes enterprise beans tips as appropriate. Best Practices White PaperYou are encouraged to refer to the IBM White Papers site for a White Paper entitled "WebSphere Application Server Development Best Practices for Performance and Scalability." JNDI referencing caching and reuse of EJB homesVersion 3.5.2 introduced support for JNDI reference caching. You might wonder whether the "Best Practice" about reusing EJB homes is still needed in order to improve performance. The answer is yes. Even with JNDI caching, properly written applications that cache EJB homes should still experience better performance than those that perform the lookup for each call. Application-level caching avoids the context.lookup and javax.rmi.PortableRemoteObject.narrow altogether. However, with the introduction of JNDI caching in Version 3.5.2, the penalty for applications that do not cache EJB homes is much less severe. Use calls to ServletContext.log() sparinglyEach calls to the ServletContext.log() method is recorded in the WebSphere administrative database. Overusing calls to this method will seriously degrade performance. Limit calls to only those events that should be considered SeriousEvents. |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|