I installed mod_throttle on my RAQ3 with apache 1.3.19
Only problem nos is that when i restart the httpd server all traffic data for mod_throttle is deleted.
Does anyone know something to do abnout it??
Tim Greer
10-10-2001, 08:32 AM
Originally posted by Lmax
I installed mod_throttle on my RAQ3 with apache 1.3.19
Only problem nos is that when i restart the httpd server all traffic data for mod_throttle is deleted.
Does anyone know something to do abnout it??
How do you meant it's deleted? Is it not writing a log file, or is it just logging as 0 bytes, or? Did you change anything in the logformat, or anything else? Can you see any difference in the logging both with mod_throttle enabled or disabled (i.e., compare the logs)? Likely, it did something like not log in the same way or the same place, or it's just not reading it, because it negates the regular logging of the bytes transfered -- unless I just completely misunderstood your question.
No, when displaying the traffic statistics of the server you can see all the traffic all virtual sites have generated(if set right in the httpd.comf)
Recording this traffic works ok. It shows how much traffic a virtual site has generated, but every time i restart the httpd server this data gets lost. I don't know where mod_throttle stores it traffic data, but it isn't saved when i restart the server.
before my server crash it was saved, and traffic data keeped counting up untill i resetted manually.
spock
10-11-2001, 07:11 AM
You can use the ThrottleRuntimeFile directive in httpd.conf to tell mod_throttle where to store the data. For example:
ThrottleRuntimeFile /var/state/mod_throttle_state
Of course, you'll also need to make sure the file you specify can be written by Apache.
The ThrottleRuntimeFile /var/state/mod_throttle_state didn't work
I upgraded apache to 1.3.20 and now it works fine
spock
10-12-2001, 08:48 PM
I never said it would fix all problems magically, but it does work.
Perhaps your old Apache version and mod_throttle wasn't completely compatible. I haven't had any such problems, but using the correct semaphore and shared memory support flags when compiling mod_throttle is probably important - check out the mod_throttle documentation (http://www.snert.com/Software/mod_throttle/) for details.