This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet performance optimization

 
gigel chiazna
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to test servlet performance?
I have about 5 servlets using one mysql database.
some are used as data feeds serving users, some
to operations on the database. I want to test
how many users a configuration can hold.
are there any tools for that?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used the HttpClient package in the Jakarta Apache "commons" collection to eumulate multiple clients in a load test. See jakarta.apache.org
There is also a HttpUnit testing package - see www.httpunit.org but I have not used it.
Bill
 
steve souza
Ranch Hand
Posts: 862
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out JAMon (Java Application Monitor). It can measure performance AND scalability (you can tell how much performance degrades as the number of simultaneous requests increases). It is very easy to use and when used in conjunction with a load test tool can provide much useful info. One nice thing about JAMon is that it's performance impacts are small enough that it can be used in a production environment.
You can read about it and download it at:
http://www.javaperformancetuning.com/tools/jamon/#DownloadingJAMon
 
Ryan Bailey
Ranch Hand
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi gigel,
Two good performance tools that I have used are OptimizeIt and JProbe. Both are great for testing Servlets as well as stand-a-lone Java programs.
Regards,
Ryan
 
Michael Fitzmaurice
Ranch Hand
Posts: 168
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may also find JMeter useful (and it is open source).
 
Jon Wilson
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OpenSTA is an excellent tool if you don't mind testing on a Windows machine. It has many features to simulate multiple users accessing a web-based application. Best of all, it's open source. Good luck!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic