• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to increase performance of website written in JSP/Servlet?

 
Khosrow Moossavi
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I'm a newbie to the concept of J2EE App *Performance*. And am developing a Website, using MySQL as backend database, Tomcat as a web server, and typically JSP/Servlet MVC Architecture right now.

The processing is like this :
1) Seeing the URL
2) Check in the web.xml to find the corresponding Controller Class
3) Initializing, and invoking the corresponding Model Class
4) Processing the logic and filling the required Java Beans
5) Dispatching to it's corresponding JSP File
6) Showing the content of the JSP File

- Am I on the right path? or should I compeletly change the logic?
- What should I do to have the reasonable performance for the site? (Beside of Indexing DB and XML files)
- The site's loading on my developing computer is Lower than I think it should be. (I'm running on Windows XP, CPU 2.6 GH, Ram 4GB, Tomcat 5.5, MySQL 3.2) What will it be when it's being deployed? Do clients face some difficulties?
- Anything not mentioned above?

Thanks in advance.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What will it be when it's being deployed? Do clients face some difficulties?


My crystal ball is in the shop for the 10,000 vision checkup so all I can say is you should find some way to emulate a load of clients and make real measurements.

Personally I have written testing programs based on HttpClient (download free from here) a highly refined toolkit for emulating HTTP conversations. Other folks will probably chime in with other load testers.

Bill
 
Henry Wong
author
Marshal
Pie
Posts: 21415
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My crystal ball is in the shop for the 10,000 vision checkup so all I can say is you should find some way to emulate a load of clients and make real measurements.


The top three products, that I see most often, which are used to generated load, are Loadrunner, Grinder, and JMeter. Out of the three, Loadrunner is a comercial product, the other two are open-source (ie. free).

Henry
 
Khosrow Moossavi
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you guys for your informations.

But before doing those tests, how can I be sure that everything on my code, architecture is correct and good too?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic