• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Re:writing a servlet for load testing

 
sunil kumre
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sunil kumre
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 320
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic