Bug #76280 [NEW]: Performance degrades permantly when overwriting PHP files, until apache restart

From: Date: Fri, 27 Apr 2018 19:09:57 +0000
Subject: Bug #76280 [NEW]: Performance degrades permantly when overwriting PHP files, until apache restart
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214944@lists.php.net to get a copy of this message
From:             teo8976 at gmail dot com
Operating system: debian
PHP version:      5.6.36
Package:          opcache
Bug Type:         Bug
Bug description:Performance degrades permantly when overwriting PHP files, until apache restart

Description:
------------
I have a website (well, it's not mine actually) that gets about 1k
requests per minute.

Sometimes I upload updated PHP files. Obviously this means I'm
overwriting files at the very same time they are being executed. I
expect that to cause errors (experienced by the users) during the short
period of time while files are being overwritten (usually a few
seconds).

However, what I wouldn't expect and happens VERY often is that: after
that, general performance degrades, meaning that the execution of EVERY
SINGLE script in every single request is significantly slower. Sometimes
it's just a few dozens % increase in execution time, sometimes it
explodes to the point that the whole websites goes down.

Restarting apache returns performance to normal every time, whether
there had been a total collapse or just a degradation in performance.

Expected result:
----------------
When you overwrite PHP files in a website that is being visited by
thousands of people, you'd expect a small percentage of them to
experience random errors, if a file is being overwritten just when it's
being executing.

However, as soon as all the requests that were being handled are done,
everything should go back to working normally, and there shoul be no
need to restart Apache

Actual result:
--------------
See description.

Seriously, this is fucking pathetic.

-- 
Edit bug report at https://bugs.php.net/bug.php?id=76280&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=76280&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=76280&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=76280&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=76280&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=76280&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=76280&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=76280&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=76280&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=76280&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=76280&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=76280&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=76280&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=76280&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76280&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=76280&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=76280&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=76280&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76280&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=76280&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=76280&r=mysqlcfg



Thread (16 messages)

« previous php.bugs (#214944) next »