View RSS Feed

Advanced Java

Servlet Performance Tips

Rate this Entry
by , 02-18-2012 at 04:14 PM (837 Views)
Cache static data using jspInit() method.
Release static data in jspDestroy() method.
To concatenate string use, StringBuffer.
Do not use println() method.
Do not use PrintWriter to send binary data. Use ServletOutputStream.
Always flush data in sections.
Use getLastModified() method to handle browser and server cache.
Use application server cache.
Use session in following order: HttpSession, Hidden fields, Cookies, URL rewriting.
Always remove HttpSession explicitly.
Disable Servlet auto reloading.

Submit "Servlet Performance Tips" to Facebook Submit "Servlet Performance Tips" to Digg Submit "Servlet Performance Tips" to del.icio.us Submit "Servlet Performance Tips" to StumbleUpon Submit "Servlet Performance Tips" to Google

Categories
Performance

Comments