How I can slow down bandwith in working on localhost?
Posted by: Lech (94.254.210.---)
Date: October 23, 2010 06:32PM

Hello!

I use WAMP serwer on localhost (XP) to test web applications (offline).

Q: How I can slow down OR control bandwith/data transfer from/to (upload/downoad) to simulate normal activity of the user in the Internet. online?

For example user simulation download www site by: 128 Kbit/s, 256, 512, 1 Mbit etc?

It's possible?


Best regards,
Lech

Options: ReplyQuote
Re: How I can slow down bandwith in working on localhost?
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: October 23, 2010 06:39PM

mod_bw i think is the only way as mod_throttle is not available anymore

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Only way?
Posted by: Lech (94.254.210.---)
Date: October 23, 2010 07:40PM

Hi, Steve

1.

Thank you for your response.

>mod_bw i think is the only way

Little comment: I'm beginner about servers. I'm rather Inventor/Java Script/Pascal/Neural Networks developer than Apache specjalist. I'm woring in Poland.

Can you explain in simply english more about "mod_bw"? What is it, How and where include this?

And any example about use it?

***

2. I'm also looking for a localhost-serwer AND/OR plugin AND/OR program to fluent control bandwidth (for example from 64 Kbit to 8 Mbit) by simple moving a slider on the screen or like this.

Just I'd like to test offline on my XP a photos downloading, www graphics elements, movies, the order and the time of starting the java scripts etc.

Thanx,
Lech

Options: ReplyQuote
Re: How I can slow down bandwith in working on localhost?
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: October 23, 2010 08:06PM

no this wont be possible...

the server will needed to be restarted to change the value..

possibly the value could be changed automatically depending on the load on the server ( how many people are connected etc)

but i dont think you could build a slider (esp without a deep understanding of apache modules)

i can only point you to the maker of mod_bw >> [bwmod.sourceforge.net]

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Build a slider? - oh no!
Posted by: Lech (94.254.210.---)
Date: October 23, 2010 09:02PM

Thank you again for the reponse.

To build a slider? Oh my Code, I'm not Apache programmer :-) What is the funny idea?

I know JS, PHP, Delphi, many of Basics languages, Motorola assembler, DSP audio processing...

Apart from that I can write music, I know a lot of problems from electronics, chemistry and physics. Whether now I am supposed to learn still to Apache programm on the low level? Oh no!

***

BTW: strange in the 21st century, in times of such wonderful tools, languages, editors, tools for programmers doesn't have something such obvious as the speed adjuster for www developers, that is acting simple like a washing machine. Without studying of the tons of books about Apache (sizes of the Bible).

***

Your link is very useful.

Thank you.
End for now,
See You Next Time
Lech

Options: ReplyQuote
Re: How I can slow down bandwith in working on localhost?
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: October 23, 2010 09:25PM

if you were not on windows... there is probably all the tools you need for apache..

unfornuatly Linux is still where the development time is put in from apache developers

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
-- The module does not works --
Posted by: Lech (---.play-internet.pl)
Date: October 24, 2010 09:17AM

Hello Steven again.

I'm runnig bw_mod, but this break the Apache.

My way:

Wamp

1. Load Wamp from: www.wampserver.com/en/download.php
2. Install on XP
3. Load added version of Wamp-Apache: downloads.sourceforge.net/wampserver/WampServer2-APACHE2214.exe?download
4. Install

Module

5. Load bw_mod for Apache version 2.2.14 from: [ivn.cl]
(main page is: [ivn.cl])
6. Copy dll to: modules/mod_bw.dll
7. Edit httpd.conf, and add this line:
LoadModule bw_module modules/mod_bw.dll
8. Run Wamp

Effect? Apache isn't starting.

***

But, if I add a comment:

#LoadModule bw_module modules/mod_bw.dll

then Apache run ok, but without the bandwith limitter.


So what I can to do?

Lech

Options: ReplyQuote
Re: How I can slow down bandwith in working on localhost?
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: October 24, 2010 11:40AM

check the logs

c:/wamp/logs

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: How I can slow down bandwith in working on localhost?
Posted by: Lech (---.play-internet.pl)
Date: October 24, 2010 06:46PM

Hello Steven


This is log if Wamp start normal:
#LoadModule bw_module modules/mod_bw.dll


wamp/logs/apache_error.log:

[Sun Oct 24 17:13:25 2010] [notice] Apache/2.2.14 (Win32) PHP/5.3.0 configured -- resuming normal operations
[Sun Oct 24 17:13:25 2010] [notice] Server built: Sep 28 2009 22:41:08
[Sun Oct 24 17:13:25 2010] [notice] Parent: Created child process 3168
[Sun Oct 24 17:13:25 2010] [notice] Child 3168: Child process is running
[Sun Oct 24 17:13:25 2010] [notice] Child 3168: Acquired the start mutex.
[Sun Oct 24 17:13:25 2010] [notice] Child 3168: Starting 64 worker threads.
[Sun Oct 24 17:13:25 2010] [notice] Child 3168: Starting thread to listen on port 80.


wamp/logs/mysql.log

101024 17:13:23 [Note] wampmysqld: Normal shutdown

101024 17:13:23 [Note] Event Scheduler: Purging the queue. 0 events
101024 17:13:23 InnoDB: Starting shutdown...
101024 17:13:25 InnoDB: Shutdown completed; log sequence number 0 46409
101024 17:13:25 [Warning] Forcing shutdown of 1 plugins
101024 17:13:25 [Note] wampmysqld: Shutdown complete

101024 17:13:25 [Note] Plugin 'FEDERATED' is disabled.
101024 17:13:38 InnoDB: Started; log sequence number 0 46409
101024 17:13:38 [Note] Event Scheduler: Loaded 0 events
101024 17:13:38 [Note] wampmysqld: ready for connections.
Version: '5.1.36-community-log' socket: '' port: 3306 MySQL Community Server (GPL)

-----------------------------------------------

after comment off and "Restart All Services"- Wamp try to start and stop (icon tray is "red-white" and next stay as "yellow-white"winking smiley:


This is log if Wamp start and stop:
LoadModule bw_module modules/mod_bw.dll


wamp/logs/apache_error.log:

[Sun Oct 24 17:19:08 2010] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Sun Oct 24 17:19:08 2010] [notice] Child 3168: Exit event signaled. Child process is ending.
[Sun Oct 24 17:19:09 2010] [notice] Child 3168: Released the start mutex
[Sun Oct 24 17:19:10 2010] [notice] Child 3168: All worker threads have exited.
[Sun Oct 24 17:19:10 2010] [notice] Child 3168: Child process is exiting
[Sun Oct 24 17:19:10 2010] [notice] Parent: Child process exited successfully.


wamp/logs/mysql.log

101024 17:19:10 [Note] wampmysqld: Normal shutdown

101024 17:19:10 [Note] Event Scheduler: Purging the queue. 0 events
101024 17:19:10 InnoDB: Starting shutdown...
101024 17:19:11 InnoDB: Shutdown completed; log sequence number 0 46409
101024 17:19:11 [Warning] Forcing shutdown of 1 plugins
101024 17:19:11 [Note] wampmysqld: Shutdown complete

101024 17:19:11 [Note] Plugin 'FEDERATED' is disabled.
101024 17:19:24 InnoDB: Started; log sequence number 0 46409
101024 17:19:24 [Note] Event Scheduler: Loaded 0 events
101024 17:19:24 [Note] wampmysqld: ready for connections.
Version: '5.1.36-community-log' socket: '' port: 3306 MySQL Community Server (GPL)


What now?
Lech

Options: ReplyQuote
Re: How I can slow down bandwith in working on localhost?
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: October 24, 2010 07:31PM

hmm i dunno looks ok

run a syntax check on the conf file

open c:/wamp/bin/apache/apache2.x.x./bin/

right click anywhere in the blank part of the folder WHILE holding down shift

click "open command line here"

type in

httpd -t

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: How I can slow down bandwith in working on localhost?
Posted by: Lech (94.254.251.---)
Date: October 24, 2010 09:11PM

Hello Steven

and thanx for your patience.


Steps:

1. Running Wamp: mydisc\wamp\wampmanager.exe
2. Try runnig command line.
On my XP this does not works (with SHIFT left or right is no command line)

So I run this by other way:

a) Open dos window
b) cd mydisc\wamp\bin\apache\Apache2.2.14\bin\
c) type:

httpd -t

It works.

Results:
-----------

This is result if Wamp start normal (for #LoadModule bw_module modules/mod_bw.dll):

=============
Syntax OK
=============

-----------

This is result if Wamp start and stop (for LoadModule bw_module modules/mod_bw.dll):

=============
Syntax error on line 129 of: mydisc/wamp/bin/apache/Apache2.2.14/conf/httpd.conf
Cannot load mydisc/wamp/bin/apache/Apache2.2.14/modules/mod_bw.dll into serwer
=============

***

This is my full of datas of loaded modules (its default after Wamp instalation):

LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_alias_module modules/mod_authn_alias.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cache_module modules/mod_cache.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule charset_lite_module modules/mod_charset_lite.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule dav_lock_module modules/mod_dav_lock.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
#LoadModule disk_cache_module modules/mod_disk_cache.so
#LoadModule dumpio_module modules/mod_dumpio.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule ext_filter_module modules/mod_ext_filter.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
#LoadModule ldap_module modules/mod_ldap.so
#LoadModule logio_module modules/mod_logio.so
LoadModule log_config_module modules/mod_log_config.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule ssl_module modules/mod_ssl.so
#LoadModule status_module modules/mod_status.so
#LoadModule substitute_module modules/mod_substitute.so
#LoadModule unique_id_module modules/mod_unique_id.so
#LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule version_module modules/mod_version.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule php5_module "mydisc/wamp/bin/php/php5.3.0/php5apache2_2.dll"

LoadModule bw_module modules/mod_bw.dll

***

I try change line 129:

from:

LoadModule bw_module modules/mod_bw.dll

to:

LoadModule bw_module "mydisc/wamp/bin/apache/Apache2.2.14/modules/mod_bw.dll"


but no result. This is the same error:

=============
Syntax error on line 129 of: mydisc/wamp/bin/apache/Apache2.2.14/conf/httpd.conf
Cannot load mydisc/wamp/bin/apache/Apache2.2.14/modules/mod_bw.dll into serwer
=============


So, what now?
It looks like mod_bw.dll does not match to the this version of Wamp.


And this is lot of versions from website I downloaded this module (link):

ivn.cl/category/apache/

Lech

Options: ReplyQuote
Re: How I can slow down bandwith in working on localhost?
Posted by: Lech (94.254.251.---)
Date: October 24, 2010 09:12PM

And direct link of (ivn.cl/category/apache/):

[ivn.cl]

L.



Edited 1 time(s). Last edit at 10/24/2010 09:14PM by Lech.

Options: ReplyQuote


Sorry, only registered users may post in this forum.