Re: Slow Apache 2.4 server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Opcode caching could speed up things a lot. In php7 you may consider activating opcache as a  replacement to APC 

> On 23 Jun 2018, at 9:44, Jørn <apache2.user@xxxxxxxxxxxxxxxx> wrote:
> 
>> On Friday, June 22, 2018 09:18:02 Gryzli Bugbear wrote:
>> Hi,
>> 
>> Yes, it is expected php to be faster and your hardware-stronger server
>> to perform better, but there is a problem , which has to be diagnosed,
>> and from my experience, while troubleshooting everything should be
>> checked and nothing to be taken as a granted. Sometimes the problem is
>> right in the place you would never think of.
>> 
>> Could you share information about the php execution times for the same
>> file on both of the servers , what are the timings ?
>> 
>> 
>> I'm thinking of some questions about:
>> 
>> 
>> 1) Do you have some additional software on the new server (ModSecurity,
>> some firewall or things like that)
> 
> No, all servers are behind a CheckPoint Firewall 1. No firewall on the individual servers.
> 
> But I start adding PHP code like:
> 
> $x = microtime(true);
> PHP statement
> $usedTime = microtime(true) - $x;
> and then log the used time with a label to a file.
> 
> It turned out that there is a require statement that take time - almost twice as much as 
> on the old server.
> 
> The old server is using APC while I use memcached on the new server. I think the problem 
> is that the preprocessed PHP file is NOT stored in the cache and that this cause the long 
> execution time.
> 
> I'm trying to find out IF the preprocessed PHP file is stored in the cache or not. I 
> suspect they are not.
> I know that this is something that may be outside the scope of this mailing list, but if 
> there is some guru's out there that can tell me what to check here... I would be glad to 
> hear from them :)
> 
> Thanks for the replies on this issue.
> -- 
> Jørn Dahl-Stamnes
> homepage: http://www.dahl-stamnes.net/dahls/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux