Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro JSP
| Search | Today's Posts | Mark Forums Read
Pro JSP Advanced JSP coding questions. Beginning questions will be redirected to the Beginning JSP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro JSP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 21st, 2006, 03:30 AM
Registered User
 
Join Date: Apr 2006
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Bandwidth Control or Limiting using JSP

hi..

anyone have any library or source code example that enable servlet(JSP) to control bandwidth or limiting bandwidth of a server?

Thanks


 
Old July 21st, 2006, 12:28 PM
Friend of Wrox
 
Join Date: Jan 2006
Location: San Francisco, CA, USA.
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Bandwidth throttling isn't something you would typically do with an application server. It would consume application server threads, which would be better used calculating responses. Instead you should do it at the web server level (e.g. Apache HTTP Server) or the hardware level.

Here's an article on an Apache HTTP Server plugin for doing bandwidth throttling:

http://www.howtoforge.com/mod_cband_...ota_throttling

You can also set up bandwidth throttling with IIS -- but I hear it's complicated :).

Jon Emerson
http://blogs.adobe.com/jon.emerson/
 
Old July 21st, 2006, 01:51 PM
Registered User
 
Join Date: Apr 2006
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank for reply

so what you said is that bandwidth control only can be set by server and hardware itself not by JSP or servlet?

 
Old July 21st, 2006, 02:58 PM
Friend of Wrox
 
Join Date: Jan 2006
Location: San Francisco, CA, USA.
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Not exactly :). I said you should use the web server or the hardware to do bandwidth control. You're certainly welcome to put Thread.sleep()'s coupled with periodic response.flush()'s in your servlet/JSP code, but wouldn't your application server be happier doing more important things? :)

Jon Emerson
http://www.jonemerson.net/




Similar Threads
Thread Thread Starter Forum Replies Last Post
how to calculate bandwidth debuajm C# 2005 0 January 16th, 2007 07:40 AM
optimal utilization of network bandwidth sabansingh C# 14 May 7th, 2006 12:05 AM
Enabling Bandwidth throttling in IIS naive VB How-To 1 May 3rd, 2004 08:03 AM
Enabling bandwidth throttling in IIS naive VBScript 0 April 29th, 2004 08:51 AM
Limiting a TextBox MultLine gmachado VS.NET 2002/2003 1 November 2nd, 2003 12:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.