Author |
|
XenonKilla
Joined: 06 Apr 2012 Posts: 8
|
Posted: Tue 26 Jan '16 7:38 Post subject: Still better to run 64-bit Apache with less than 4GB of RAM? |
|
|
Just wondering if there are any drawbacks to running 64-bit Apache in Windows Server 2012 when the server has less than 4GB of RAM? Is it still better to run the 64-bit version anyways or would it be more beneficial to running the 32-bit version? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 26 Jan '16 10:48 Post subject: |
|
|
There is no disadvantage. The benefit would be if the apache process has to grow over 2GB since on a 32 bit system a single process can only consume only 2 GB. ( Yes I'm aware that there are registry hacks to change that, but that is not recommended).
Usually apache does not consume so much RAM unless you use a third party module that blows apache. Happens often with mod_php for example. That is why many apache loungers use apache with mod_fcgid and PHP. |
|
Back to top |
|
XenonKilla
Joined: 06 Apr 2012 Posts: 8
|
Posted: Tue 26 Jan '16 12:02 Post subject: |
|
|
Yeah that's what I'm running is mod_fcgid & php. On my own personal server this isn't an issue as I have over 32GB of RAM, however, I'm setting up a vBulletin board for someone else who is running on a VPS with only 2GB of RAM but is running Windows 2012 R2 so that's why I asked. I never really thought about it because I've always ran 64-bit systems now that RAM isn't really a cost factor these days. But it kinda got me thinking about what is the better choice when you're running UNDER 4GB of RAM on a 64-bit OS.
In any case I'll just continue to use 64-bit just like I've done on my own personal server.
I did notice that PHP is finally posting "experimental" 64-bit builds on their website now. That should help make things even more of a cluster f**k than they are now. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 26 Jan '16 13:10 Post subject: |
|
|
I use 64 bit Apache with 32 bit PHP Thread Safe.
I noticed that the 32 bit version runs faster ( last test with 5.6.2) than the 64 bit variant. |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
Posted: Wed 27 Jan '16 0:57 Post subject: |
|
|
James Blond wrote: | I use 64 bit Apache with 32 bit PHP Thread Safe. | Why Thread Safe, given that you run it as mod_fcgid? Unless you are using php_pthreads.dll there is no benefit AFAIK. And the NTS version is supposed to be faster.
James Blond wrote: | I noticed that the 32 bit version runs faster ( last test with 5.6.2) than the 64 bit variant. | I would not be really surprised if PHP7 64-bits is faster than PHP7 32-bits. |
|
Back to top |
|
XenonKilla
Joined: 06 Apr 2012 Posts: 8
|
Posted: Wed 27 Jan '16 1:26 Post subject: |
|
|
Jan-E wrote: | James Blond wrote: | I use 64 bit Apache with 32 bit PHP Thread Safe. | Why Thread Safe, given that you run it as mod_fcgid? Unless you are using php_pthreads.dll there is no benefit AFAIK. And the NTS version is supposed to be faster.
|
I was wondering the same thing. Aren't you supposed to use NTS with fcgid and TS for php as a module? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 27 Jan '16 10:39 Post subject: |
|
|
XenonKilla wrote: |
I was wondering the same thing. Aren't you supposed to use NTS with fcgid and TS for php as a module? |
The cgi can be used from NTS and TS. I don't know why, but even though I used mod_fcgid the NTS version sometimes crashed the web server. That is why I use the TS version. |
|
Back to top |
|
Jan-E
Joined: 09 Mar 2012 Posts: 1266 Location: Amsterdam, NL, EU
|
Posted: Wed 27 Jan '16 11:10 Post subject: |
|
|
James Blond wrote: | The cgi can be used from NTS and TS. I don't know why, but even though I used mod_fcgid the NTS version sometimes crashed the web server. That is why I use the TS version. | It crashed the webserver?? What happened? Were both instances of httpd.exe gone? Only one without it starting a new second one? Or were both instances still running, but mod_fcgid.so crashed and it did not start a new php-cgi.exe?
Are we talking ancient history here or are these recent incidents? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 27 Jan '16 11:44 Post subject: |
|
|
Both httpd.exe processes where gone. In the error log was sometimes the same error as when the module crashed and the other times absolutly nothing. |
|
Back to top |
|
XenonKilla
Joined: 06 Apr 2012 Posts: 8
|
|
Back to top |
|