This does not work in XAMPP on Windows platforms as it is purely for Linux platforms.
I have just checked using a slightly newer XAMPP version than 1.6.4 by following this method below:
Make sure that this entry in the \xampp\apache\conf\httpd.conf file is uncommented so it looks like this
- Code: Select all
LoadModule bw_module modules/mod_bw.so
Then add this block entry at the end of the httpd.conf file like so
- Code: Select all
<IfModule bw_module>
RLimitCPU 60
RLimitMEM 256000
</IfModule>
Save the file and restart Apache.
Read your \xampp\apache\logs\error.log file after starting Apache and you should see entries like this
- Code: Select all
[Tue Mar 15 14:18:28 2011] [error] RLimitCPU not supported on this platform
[Tue Mar 15 14:18:28 2011] [error] RLimitMEM not supported on this platform
Which would seem that nothing has changed for these directives in Windows.
Similar example here:
http://community.spiceworks.com/topic/115589Docs here:
http://httpd.apache.org/docs/current/mo ... #rlimitcpuhttp://httpd.apache.org/docs/current/mo ... #rlimitmemMulti-Processing Modules (MPMs)
There are some entries in the \xampp\apache\conf\extra\httpd-mpm.conf file under the section WinNT MPM that may be of use with performance issues - the other entries are for different systems.
List of Directives for WinNT MPM here:
http://httpd.apache.org/docs/current/mod/mpm_winnt.htmlYou should add this Directive at the end of the httpd.conf file, if it is not already included
- Code: Select all
Win32DisableAcceptEx
which may also help performance - see the above docs.
Good luck.