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 suggestions on how to test capacity of servlet/web app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "suggestions on how to test capacity of servlet/web app" Watch "suggestions on how to test capacity of servlet/web app" New topic
Author

suggestions on how to test capacity of servlet/web app

adam spline
Greenhorn

Joined: Sep 29, 2010
Posts: 18
Greetings Java Ranch Folks,

this is my first post here. So, first I will just say "hi"!

I am working on a webapp project and my manager wants me to [1] come up with a model that could predict the scalability of the system, and then [2] wants me to create some test scenarios to test that model.

Our webApp/Servlet is a little non traditional in that it frequently has sizable uploads to the server (100-200KB) and rather large downloads from the server (1-25 MB). The client for the servlet is a desktop application. All communication is over HTTP

It seems as though the bottle neck in this system will be the communication between the clients and the servlet. But, at work, the whole system is under a fast Ethernet, so I am not able to experience this bottleneck. So, I need to create an environment that would simulate the clients being off site.

So, my thought is that in the servlet's Get and Post methods, I just need to add a type of "delay" so that they client does not get the response so quickly. The delay would attempt to compensate for the difference between the download and upload speed over the Ethernet and those clients off site.

Do you think this will work? If not, what would you suggest? Are there any gotcah's to this?

Thanks,

-Adam

William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12678
    
    5
As an alternative to meddling with the server, you could create a proxy - sort of like TCPMON - which could slow down all transfers by a controllable amount and also gather statistics on total bytes sent, etc.

Bill

Java Resources at www.wbrogden.com
adam spline
Greenhorn

Joined: Sep 29, 2010
Posts: 18
Bill,

thanks for your suggestion, I will look into that.

-Adam
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: suggestions on how to test capacity of servlet/web app
 
Similar Threads
WSDL-Design: "Soap over JMS" + Fault --> Does it make any sense?
Java Project Help - Possible Wall of Text
Cringley offshoring article
Chapter 2 (HFSJ) notes , may be useful for anyone
IBM HttpServer and websphere Appserver