View RSS Feed

Recent Blogs Posts

  1. PreparedStatement Performance

    by , 04-27-2012 at 08:11 PM
    It takes time for a database to parse an SQL string, and create a query plan for it. A query plan is an analysis of how the database can execute the query in the most efficient way.
    If you submit a new, full SQL statement for every query or update to the database, the database has to parse the SQL and for queries create a query plan. By reusing an existing PreparedStatement you can reuse both the SQL parsing and query plan for subsequent queries. This speeds up query execution, by decreasing ...
  2. High Load Web Servlets Performance Tips

    by , 02-18-2012 at 04:19 PM
    • Do not redirect request from the servlet. Always send requests directly from static resources to the web server using URL.
    • Use different web servers for dynamic and static content.
    • Use cache to store content.
    • Manage your RAM to cache content.
    • Use multiple JVMs to balance the load.
    • Limit the number of file descriptors.
    • Do not avoid logging to improve performance. It is more important.
    • Always monitor resources.
  3. Servlet Performance Tips

    by , 02-18-2012 at 04:14 PM
    • 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. ...
    Categories
    Performance
  4. JSP Performance Tips

    by , 02-18-2012 at 04:13 PM
    • 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 ...
    Tags: jsp, performance Add / Edit Tags
    Categories
    Performance
  5. Performance improvement of a Java application

    by , 01-08-2012 at 01:45 PM
    Follow these steps to improve performance of your Java application.

    • Always Pool valuable system resources like threads, database connections, socket connections.
    • Optimize your I/O operations by using buffering when writing to and reading from files and/or streams.
    • Minimize network overheads by retrieving several related items simultaneously in one remote invocation if possible.
    • Apply the following performance tips in your code

    • Use ArrayLists,
    ...
  6. Java I/O performance

    by , 01-08-2012 at 12:40 PM
    Java has always issues with its I/O performance. To handle large amount of data, it will take significant amount of time. So you must tune and improve your I/O performance. It should be done on high priority by the developer.

    Follow these rules to improve I/O performance.

    • Minimize hard disk access.
    • Minimize OS access.
    • Minimize processing of individual bytes

    Also you can consider following to improve your I/O performance.
    ...
    Categories
    Performance
  7. Performance issues related to trigonometric functions , floating point arithmetic and

    by , 11-19-2011 at 07:19 PM (My Java Tips)
    I have briefly listed the performance issues related to trigonometric functions, floating point arithmetic functions and Java Native Interface. I hope these will be helpful.



    Trigonometric functions

    In Java, results got from trigonometric functions and calculations may not be as accurate as that of results got from trigonometric functions and calculations of C language. This is because because Java has strict specifications for the results of mathematical operations.This ...