Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I currently deploy with GAE (google app engine) and I try to implement some AJAX validation. So I got a couple text-fields and "spinners" (ajax loaders) which should be displayed when an AJAX request is sent. But I deploy on my local computer (localhost), so the GAE SDK reacts very fast on any request. It takes about 50-70 ms(miliseconds) to perform the whole ajax request, which is far far away from the real.

Is there a way to somehow simulate slow Internet connection? I just want to see how my "spinners" work. I want to test some ajax setting (jquery) about timeouts, errors and so on...

Any ideas ?

share|improve this question
    
what is your current internet speed? which speed do you want to have (approximately)? –  kokbira Jun 14 '11 at 18:34
    
ADSL (~ 8000 KBit/s Down). There is a nice feature in adobe's flash Player. If you develop an Pre-Loader with AS you can easy test it in flash player with different speed (kind of Dual-Up, ISBN and DSL 1000 simulation) –  V-Light Jun 14 '11 at 19:49

6 Answers 6

up vote 7 down vote accepted

If you use a browser to simulate that, you can use Firefox Throttle or Internet Explorer Throttle and some solutions in [1].

You can try also Fiddler (solution showed in [1] and [2]).

[1] http://stackoverflow.com/questions/473465/firefox-add-on-to-simulate-slow-internet-connection-or-limit-bandwidth

[2] http://www.techpitcher.com/simulating-slow-internet-connection.html

share|improve this answer
    
Fiddler did the trick. At least i was able to test the AJAX request @ Dual-Up Modem Speed. –  V-Light Jun 14 '11 at 21:39

You are looking for a latency simulator. A search for that term should return something useful.

share|improve this answer

Using linux you have a software called trickle that launches a process and limits its bandwidth usage.

share|improve this answer
    
I'll take a look... but, actually, i'm using kinda 'complicated' system. I run Ubuntu in Win7 (vmware) and use GAE. The reason is - linux command line and no need to install python under windows. But sometimes its getting to much for my laptop (IDE, 2 browsers, bash...and thats all virtualy) so i decided to use my internal IP so i can access the GAE development 'server' from windows. Like 192.168.xxx.xxx:8181/myApp So i, actually, deploy in Windows but it all runs in Ubuntu...So I don't know if trickle can handle with this –  V-Light Jun 14 '11 at 20:01
    
It's not clear what is virtual on what. If you run Firefox inside Ubuntu inside vmware inside Win7, just call Firefox by trickle -d 10 firefox. If it's the other way around, you may try trickle -d 10 vmware to launch Win7 inside Ubuntu, but I can't say for sure how it will work. –  user39559 Jun 16 '11 at 15:43
    
Win7 is Host (OS which runs virtualization software -vmware workstation 7). Ubuntu 10.10 is a Guest OS. Python and GAE is installed in Ubuntu. –  V-Light Jun 16 '11 at 19:39
    
So did sudo apt-get install trickle && trickle -d 10 firefox work? You can test it by downloading a big file from a fast server. Make sure firefox is closed when you run this. –  user39559 Jun 17 '11 at 15:23

You can use a "slow Internet connection" from a mobile phone (for example, GPRS). You must have a mobile phone that become a modem when connected to the PC and a carrier that provides that kind of connection.

For example, I can connect my LG phone in my computer and use a dial-up program (provided by LG) to perform a connection in TIM, my carrier. So, my internet connection is about 40kbps.

You will have a slow connection, but you cannot adjust its speed only with that.

share|improve this answer

I would check out Charles Proxy. It has bandwidth throttling and is cross-platform with a very clean interface.

share|improve this answer

This is free and simple for Mac OS X and works with the every browser: http://mschrag.github.io/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.