php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77222 memory_limit Greater then 64M slows down reply
Submitted: 2018-11-30 03:00 UTC Modified: 2020-04-08 12:37 UTC
From: jpmiguel at yahoo dot com Assigned: cmb (profile)
Status: Closed Package: IIS related
PHP Version: 7.2.12 OS: Windows 2008 RC2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
27 + 9 = ?
Subscribe to this entry?

 
 [2018-11-30 03:00 UTC] jpmiguel at yahoo dot com
Description:
------------
I have a server using php-cgi on a new site we are putting on production.
And it behaves very poorly with around 4 seconds before the first reply. After the php delivers the html the page and all the scripts and images load almost instantly.

After some tweaks I realized that if I lower the memory-limit below 64M on the php.ini it behaves much better (0.6 seconds).

But I cant keep the memory limit that low because I will get "Allowed memory size of 67108864 bytes exhausted" from time to time.

Can you please check or point me on a way to solve this?

Thanks


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-04-08 11:18 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-04-08 11:18 UTC] cmb@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.
 [2020-04-08 12:15 UTC] jpmiguel at yahoo dot com
-Status: Feedback +Status: Assigned
 [2020-04-08 12:15 UTC] jpmiguel at yahoo dot com
Hi, 

I managed to pinpoint and solve the problem. 

When importing the database I activated the lower case on table names.
And in the php configuration was in upper case.
The site still works fine without problems or errors but it takes two times the normal time to send the page to the user.

Just by changing the Database and table names back to Upper case it started rendering the pages within a second.
 [2020-04-08 12:37 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 [2020-04-08 12:37 UTC] cmb@php.net
> I managed to pinpoint and solve the problem.

Great!  Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC