• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic