This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
how to testservlet 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?
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
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
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!
Mensa member, Certified bartender, Created the Internet (along with Al Gore), Speak 9 languages fluently (this includes pig latin), Spelling Bee Winner, 8th Grade Math Award, Can hold breath under water for more than 2 minutes