Re: Reporting bugs for phpng
| From: | Pascal Chevrel | Date: | Fri, 01 Aug 2014 08:39:54 +0000 |
| Subject: | Re: Reporting bugs for phpng | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-76304@lists.php.net to get a copy of this message | ||
Le 01/08/2014 10:21, Laruence a écrit :
On Fri, Aug 1, 2014 at 12:34 AM, Pascal Chevrel <pascal.chevrel@free.fr> wrote:Hi, No, this testcase is a cut down version of the real code I wrote to make it easier to detect the problem I was facing, the real code is part of a specific view that is also an API allowing to consult all translations available for a specific string ID in our code base, examples: http://transvision.mozfr.org/api/v1/entity/central/?id=browser/chrome/browser/browser.dtd:bookmarkThisPageCmd.label http://transvision.mozfr.org/string/?entity=browser/chrome/browser/browser.dtd:bookmarkThisPageCmd.label&repo=central Cheers PascalLe 31/07/2014 16:23, Laruence a écrit :I understand your point, and the problem, but the thing here is, do you really needs loads all langs map arrays in a single request(as I understand you only need one per request, right?)Hey: On Thu, Jul 31, 2014 at 8:29 PM, Pascal Chevrel <pascal.chevrel@free.fr> wrote:Hi, The problem is that the more arrays I load, the more memory PHPNG consumes while current versions of PHP have that value mostly stable. I have with PHPNG a scalability issue I don't have with regular PHP. If tomorrow I increase the number of languages I support in my app from 70 to 200 (which is my long term goal btw), I would probably need to set memory_limit to 700MB which seems honestly crazy when PHP 5.x needs 8MB for the same script to run at the same speed. As an end user, I think it's a bug not a feature, I hope you understand my point of view :).Le 26/07/2014 04:42, Laruence a écrit :I am afraid this is not a bug. it's due to our new immutable array implementation. all these langs map array are constant array, such it will be treat as immutable array, which means it will not be released untill the request shutdown. (which will bring significant performance improvement for saving array construct/destruct while use with opcache) I suggest you to increase the memory_limit as a workaround .. Anyway, Dmitry, what do you think? maybe something like interned_string_size?Hey: On Fri, Jul 25, 2014 at 9:14 PM, Pascal Chevrel <pascal.chevrel@free.fr> wrote:Hi, I opened this bug: https://bugs.php.net/bug.php?id=67725 I put a testcase triggering the memory leak in a github repo referenced in the bug.Hi, I tried the .deb package for phpng that Zend provides since yesterday (thanks for that!) and I hit a memory consumption issue with the first of my scripts I tried: PHPNG: Memory peak: 62914560 (55.97MB) Elapsed time (s): 0.3383 PHP 5.5: Memory peak: 1835008 (1.64MB) Elapsed time (s): 0.0717 How/where can I make a bug report about it? Is https://bugs.php.net/ ok for PHPNG bugs?PHPNG is not listed in bugs.php.net yet. but as it's a branch of PHP, I think it's okey to report it there, and note it's PHPNG in the comment. for now. thanks