File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Re:writing a servlet for load testing Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Re:writing a servlet for load testing" Watch "Re:writing a servlet for load testing" New topic
Author

Re:writing a servlet for load testing

sunil kumre
Ranch Hand

Joined: Dec 23, 2000
Posts: 64
I'm trying to write a servlet which will test my server increasing the load on it.i invite suggestions as how to go about writing this servlet..
thanks in advance
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6913
Is there any particular reason why your load tester should be a servlet? Most load testers that I have seen have just been regular "client" applications.


A Convergent Visionary ~ Frank's Punchbarrel Blog ~ LinkedIn profile
sunil kumre
Ranch Hand

Joined: Dec 23, 2000
Posts: 64
Hello Frank,
We just thought before going in for any standard load test software,that if we could simply build our own simple tool like a servlet to arrive at results.
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6913
I understand, but why build your tool as a servlet. Servlets are good at responding to HTTP requests, and no better than any other Java code at making requests to other servers. Or am I misunderstanding what you want to do with this load tester?
John Bateman
Ranch Hand

Joined: Mar 09, 2000
Posts: 320
Hi
A problem you may have making your load test a servlet is that as the server gets more and more overloaded your tester gets less and less productive.
Go to http://www.apache.org and get jMeter it's a great testing tool. It can also be extended if you want to make/add your own changes.
But, if you are doing it just to practice your java I would suggest making a swing app or something not soo tied into the server you are going to 'blast to hell'.


SOURCE CODE should be SURROUNDED by "code" tags.
 
IntelliJ Java IDE
 
subject: Re:writing a servlet for load testing
 
Threads others viewed
<load-on-startup> Confusion?
how to make a servlet to run at startup of the application
order of loading in web.xml
object caching
Execute jsp code automatically at startup of server
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture