Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: [SOLVED]Slow PHP on Windows |
|
Author |
|
nucleartux
Joined: 13 Aug 2012 Posts: 3 Location: Russia
|
Posted: Mon 13 Aug '12 20:12 Post subject: [SOLVED]Slow PHP on Windows |
|
|
This is an issue I've been having for a long time. I want to run symfony2 applications on my windows computer and it has a terribly high load time, around 5-10 seconds.
I uploaded my files to a linux server, on which it runs in around 300-500 ms
I tried many severs(xampp, wamp, IIS, all of them), many cache modules(apc, memcache, wincache), tried to disable antivirus, install sites to RAM disk, nothing helps.
I found this issues on SO
http://stackoverflow.com/questions/9854848/windows-7-php-symfony2-terribly-slow
http://stackoverflow.com/questions/7741043/php5-performance-comparison-windows-and-linux
but they do not contain solutions.
Last edited by nucleartux on Sun 19 Aug '12 23:00; edited 1 time in total |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 14 Aug '12 11:40 Post subject: |
|
|
On user suggests to use WinCache
WinCache on php.net
Official WinCache site
Download on source forge
Might be a disadvantage, that it run only with the NTS (non thread safe version), so you have to use mod fcgid. But with the right configuration php over mod fcgid can be as fast as the module (at least from my experience)
it is also important which version of PHP you use on Windows. 5.3 is 40% faster than 5.2. And 5.4 is faster than 5.3 (according to Pierre Joye the windows developer for windows and Rasmus Lerdorf) |
|
Back to top |
|
nucleartux
Joined: 13 Aug 2012 Posts: 3 Location: Russia
|
Posted: Tue 14 Aug '12 12:56 Post subject: |
|
|
As I wrote above, I already tried wincache. It doesn't help.
UPD: I should correct myselft. It help, it reduce load time for 25-50%, from 2s to 1-1.5s.
But it is very much! On Linux the same site loaded for 300-500ms |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 16 Aug '12 17:31 Post subject: |
|
|
From what I googled in the last minutes is that won't get a better time on windows.
What you can do is caching from the application itself to increase speed. Did you also check the Database as bottleneck?
On a testing server, not productive, you should try xdebug to see which part of your application is slow. |
|
Back to top |
|
nucleartux
Joined: 13 Aug 2012 Posts: 3 Location: Russia
|
Posted: Sun 19 Aug '12 23:00 Post subject: |
|
|
I found solution: Zend Server works fine. |
|
Back to top |
|
samanthacastle
Joined: 07 Sep 2012 Posts: 1 Location: France, Paris
|
Posted: Fri 07 Sep '12 17:45 Post subject: |
|
|
I'm having the same problem on my server: do you know why you solved the problem (eg root cause?)
Sam |
|
Back to top |
|
riana
Joined: 09 Nov 2013 Posts: 1
|
Posted: Sun 10 Nov '13 1:37 Post subject: |
|
|
please tell the details of the solution, or is that enough just cover for the server ?
thanks, riana designer home office furniture |
|
Back to top |
|
|
|
|
|
|