php - WAMP/XAMPP is responding very slow over localhost -
i don't know problem is. wamp slow, reformatted computer , installed wamp. still, accessing localhost very, slow, , doesn't load @ all. removed , replaced xampp, still got same result. might possibly problem? here's current hosts file:
127.0.0.1 localhost 127.0.0.1 localhost
it working fine before, not know happened , why has started acting strange lately, since reformat didn't fix it.
i had same problem running on windows 8 running on 64bit. apache slow when press f5 many times goes ok. in end after doing many things managed solve it. right works fast.
try following tasks increase performance:
change apache's listening port
change listening port 80 8080 avoid conflicts programs skype. open httpd.conf file , find line starts listen
(it's around line 62). change following: listen 127.0.0.1:8080
change powerplan
change power plan balanced high performance. can in control panel\all control panel items\power options
disable ipv6
the credits of particular task go jef pointed out in blog post. windows 8 desktop, press windows key
, r key
@ same time
type regedit in run dialog box , click ok
use registry editor expand registry tree , browse to:
\hkey_local_machine\system\currentcontrolset\services\tcpip6\parameters
right click on parameters
, expand new
, , select dword (32-bit)
value
enter disabledcomponents
name
field
double click on new disabledcomponents
value, enter ffffffff
value data
dialog box, , click ok
button
confirm new registry value contains required data.
change etc/hosts
if use virtual hosts don't add each virtual host on new line. instead list them following. 127.0.0.1 site-a site-b site-c
i added 127.0.0.1 127.0.0.1
since heard somehow improves lookup well. (can't confirm can't hurt putting there)
your hosts file located @ c:\windows\system32\drivers\etc
check how many apache processes running
in case had 2 apache processes running. sure have 1 running. can check pressing ctrl+alt+del
, press task manager
turn off base filtering engine (bfe)
what find working bit turning off base filtering engine. since stopping or disabling bfe service reduce security of system should when needed.
go control panel => administrative tools => services => base filtering engine
stop base filtering engine clicking on stop
increase apache's process priority
to task manager , change apache's process priority normal high right clicking -> set priority -> high
keep apache's process busy
this bit of ugly method work. keeps apache busy , process own requests faster. insert local web-address in iframe location , save in html file, run , leave there until you're done.
<html> <head> <script> settimeout(function(){ window.location.reload(1); }, 2000); </script> </head> <body> <iframe name="iframe" id="iframe" src="http://mywebsite:8080"></iframe> </body> </html>
downgrade windows 7 pro
as windows 8 pro user entitled have downgrade rights windows 7. read here more this. me solution did job properly.
good luck!
Comments
Post a Comment