This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Performance and the fly likes How to increase performance of website written in JSP/Servlet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "How to increase performance of website written in JSP/Servlet?" Watch "How to increase performance of website written in JSP/Servlet?" New topic
Author

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

Khosrow Moossavi
Greenhorn

Joined: Aug 08, 2005
Posts: 26
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.


SCJP and SCWCD are going to be installed here.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12809
    
    5
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
Sheriff

Joined: Sep 28, 2004
Posts: 18914
    
  40

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


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Khosrow Moossavi
Greenhorn

Joined: Aug 08, 2005
Posts: 26
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to increase performance of website written in JSP/Servlet?