Improve the performance of Java Web Application -


I am working with a 3-level web application that has the following technology stack:

  • Service 3.0 3.0
  • JSP 2.4
  • Spring 3.0
  • MySQL Database
  • Tommak Web Server < / Li>

We launch this application using the Mozilla Firefox browser. My problem is that, while having large data on the database, the application is facing the problem.

We have about 10 JSPs while each JSP database is related to a particular table. The problem occurs when loading special JSP, which is in large numbers in the table. Entering the app also showed the problem of display and it takes a very long time to show the Home Page.

I need this app to work with the best performance. Due to performance issues, we do not want to lose our precious customers. I do not know where the barrier is, and what to do to tune the performance of my application. Some suggestions:

Some advice:

  • Make sure you have your connection manual Instead of opening the form, you are using a database connection pool.
  • Be sure to have the connection in the most narrow scope, that means never is not in the field as a field or higher.
  • Tune up your database: Apply indexes in tables based on your queries, divide our tables, tables on your own, etc.
  • Tune your questions: Write them to follow the indexes in your table, do not use it to check whether the query uses index criteria or linear search EXPLAIN Use your queries in subqueries, etc.
  • Use paging to display your table. Preferably, use small-sized pages of rows such as 10 or 15 per table (or any other defined value in your application) in one view. The maximum size will depend on your performance. This is not the same display thumbnail for the video as compared to just plain text, in addition, it also helps to know the amount of column and their content, it does not show the same 250 rows displayed in two columns, which many Instead of displaying a report with a column, there is a simple number.

In addition to these, use a Vimeo VM or Java Mission Control or a profiler like Yourkit, which removes the obstacles on your application.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -