View RSS Feed

Advanced Java

JSP Performance Tips

Rate this Entry
by , 02-18-2012 at 03:13 PM (930 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.
• Do not use sybchronized blocks in service method.
• Do not create session object with directive <%@ page session="false" %>
• Scope of ‘useBean’ action should be minimized.
• Minimize the use of Custom tags.
• Always remove session objects explicitly.
• To reduce serialization overheads, use ‘transient’ variables.
• Maintain and tune thread pool size.

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

Tags: jsp, performance Add / Edit Tags
Categories
Performance

Comments