Re: Make Tomcat run slow
You could write a valve for tomcat, put that into server/libs and configure your tomcat via server.xml to use it. This valve could basically sleep 1 second or longer before allowing the tomcat to continue with request processing. This was you willnot modify the webapp neither slow down the entire machine. Just your tomcat instance. regards Leon On 4/7/07, L.W. van Braam van Vloten <[EMAIL PROTECTED]> wrote: Thanks for this reply! Shankar Unni wrote: > * Renice these make-work processes so that they are at the highest > priority (not real-time, though, or you'll have to reboot your box :-); > and renice the Tomcat so that it's at the lowest priority. Unfortunately this will not work: - I can not modify the code for my webservice - I need to slow down only my own implementation om Tomcat, and most definately not the entire machine! I am not by far the only user of this machine, my entire company depends on it :) Besides, I have no idea how to renice a process on a modern iSeries so that it runs unimaginably slow... Greetings, Lucas - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: Re: Make Tomcat run slow
If you only want to slow down the network connection to test how your application would behave on a slow link, I can recommend Charles reverse proxy. It's an inexpensive Java tool I use in debugging my web applications. Among other amazing things, it can "slow down" or "throttle" your connection, making your application appear slow to the client without slowing down the whole machine. Take a look at http://www.xk72.com/charles/wiki/bandwidth_throttle ps. I am not affiliated, just a happy user. -- Forwarded Message -- Subject: Re: Make Tomcat run slow Date: Saturday 07 April 2007 08:52 From: "L.W. van Braam van Vloten" <[EMAIL PROTECTED]> To: Tomcat Users List Thanks for this reply! Shankar Unni wrote: > * Renice these make-work processes so that they are at the highest > priority (not real-time, though, or you'll have to reboot your box :-); > and renice the Tomcat so that it's at the lowest priority. Unfortunately this will not work: - I can not modify the code for my webservice - I need to slow down only my own implementation om Tomcat, and most definately not the entire machine! I am not by far the only user of this machine, my entire company depends on it :) Besides, I have no idea how to renice a process on a modern iSeries so that it runs unimaginably slow... Greetings, Lucas --- -- Nicholas Sushkin, Senior Software Engineer Open Finance, Chelsea Piers Pier 62 Suite 316, New York NY 10011 Tel +1 646 723 2790 Fax +1 646 723 2789 [EMAIL PROTECTED] smime.p7s Description: S/MIME cryptographic signature
Re: Make Tomcat run slow
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lucas, L.W. van Braam van Vloten wrote: > Unfortunately this will not work: > - I can not modify the code for my webservice > - I need to slow down only my own implementation om Tomcat, and most > definately not the entire machine! I am not by far the only user of this > machine, my entire company depends on it :) If you can't modify your webapp, and you can't modify the machine, then you basically can't do what you are trying to do. :( If you just need to simulate some network lag time, you could use a firewall to block traffic until you get a timeout. Presumably you can find a port to block that will stall your webapp... - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGF6eV9CaO5/Lv0PARAvkQAKCRivFiLBIPQjfKY2FTNFO6SupuFQCePW7x RBaXzVpZf02WLurphaUHI1w= =r30A -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Make Tomcat run slow
Thanks for this reply! Shankar Unni wrote: > * Renice these make-work processes so that they are at the highest > priority (not real-time, though, or you'll have to reboot your box :-); > and renice the Tomcat so that it's at the lowest priority. Unfortunately this will not work: - I can not modify the code for my webservice - I need to slow down only my own implementation om Tomcat, and most definately not the entire machine! I am not by far the only user of this machine, my entire company depends on it :) Besides, I have no idea how to renice a process on a modern iSeries so that it runs unimaginably slow... Greetings, Lucas - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Make Tomcat run slow
L.W. van Braam van Vloten wrote: So my question is: would there be an easy way to make Tomcat on my iSeries machine run rediculously slow? Lots of funny replies come to mind, but the simplest is: * Run a process that just spins forever: while (1) ; Run as many of these as you have CPUs. * Renice these make-work processes so that they are at the highest priority (not real-time, though, or you'll have to reboot your box :-); and renice the Tomcat so that it's at the lowest priority. Relax, and enjoy the scenery while Tomcat groans and wheezes.. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]