WAMP running extremely slow on WIndows 7
Posted
by
JavaCake
on Server Fault
See other posts from Server Fault
or by JavaCake
Published on 2012-10-27T09:42:02Z
Indexed on
2012/10/27
11:05 UTC
Read the original article
Hit count: 241
After 2 days of tough fight trying to figure out what the problem is with my Windows 7 32-bit machine at work i have nearly given up. The issue is that the pages are loaded extremely slow, the performance is both when accessed locally (127.0.0.1) or from another computer in the intranet.
First to explain the system:
WAMP version: Apache 2.2.22 – Mysql 5.5.24 – PHP 5.4.3 XDebug 2.1.2 XDC 1.5 PhpMyadmin 3.4.10.1 SQLBuddy 1.3.3 webGrind 1.0
DocumentRoot: Located on network drive
MySQL: InnoDB
Pages: PHP, MySQL, AJAX etc.
So basically the changes i have made in order to get a greater performance:
Changed C:\windows\system32\drivers\etc\hosts
:
127.0.0.1 localhost
127.0.0.1 127.0.0.1
Modified my.ini
:
innodb_flush_log_at_trx_commit = 2
Modified httpd.ini
:
EnableMMAP on
EnableSendfile on
Modified php.ini
:
realpath_cache_size= 4m
How i measure the performance is the overall loadtime of the page. I run it locally on my Mac OS X machine aswell (MAMP), and typically the frontpage loadtime is 0.06seconds but on the Windows 7 machine it is 6-10seconds. I have verified the loadtime with developertools in Chrome aswell.
Furthermore the result is identical in XAMPP.
© Server Fault or respective owner