View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001737 | Xdebug | Profiling | public | 2020-01-23 14:10 | 2020-04-22 16:38 |
Reporter | g.wolkerstorfer | Assigned To | derick | ||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
OS | Ubuntu | OS Version | 18.04 | ||
Product Version | 2.9.1 | ||||
Summary | 0001737: Xdebug memory consumption dramatically increased in 2.9.1 | ||||
Description | We have long running CLI PHP processes on a development server with xdebug enabled. With Xdebug version <= 2.9.0 each process used ~109M of memory. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND After the upgrade to Xdebug 2.9.1 each process now uses almost 500M: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | ||||
Additional Information | @:~$ php --version | ||||
Tags | No tags attached. | ||||
Operating System | Ubuntu 18.04 | ||||
PHP Version | 7.2.20-7.2.29 | ||||
|
Do you have the remote debugger (xdebug.remote_enable=1) enabled? |
|
Yes - here is my config: wolkerstorfer@****:/home/tkwww$ php -i | grep xdebug |
|
Why exactly do you have debugging enabled for a long running script? If you're not going to debug it (and you can't start debugger while it is running), it's not wise to turn the debugger on. This change in 2.9.1 reduces execution time a lot, and also makes hitting debug breakpoints more reliable. Having said that, does using the following patch improve things?
|
|
Thank you for the patch - I tested it and the memory usage didn`t change. For now we deactivated xdebug for the CLI to avoid the problem. |
|
I further investigated the issue and found out, that commit https://github.com/xdebug/xdebug/commit/0e1c9de6ad9d6f05953e309605eca02947c04c44 introduced the increased memory usage. I wrote a simple testscript - xdebugtest.php:
Xdebug disabled:
With Xdebug 2.9.0:
With Xdebug 2.9.1 (git commit 0e1c9de merged): |
|
Could you provide me with the full test case, so that I can have a look at this? I am not sure what I can do about it yet, and you are talking about a really big file here... |
|
Hi Derick, this issue can be closed - the problem no longer exists in version 2.9.3. Thank you! |
|
That's good to hear - thanks for letting me know. |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-01-23 14:10 | g.wolkerstorfer | New Issue | |
2020-01-27 20:33 | derick | Assigned To | => derick |
2020-01-27 20:33 | derick | Status | new => feedback |
2020-01-27 20:33 | derick | Note Added: 0005229 | |
2020-01-28 06:36 | g.wolkerstorfer | Note Added: 0005231 | |
2020-01-28 06:36 | g.wolkerstorfer | Status | feedback => assigned |
2020-01-30 12:58 | derick | Status | assigned => feedback |
2020-01-30 12:58 | derick | Note Added: 0005233 | |
2020-02-04 07:55 | g.wolkerstorfer | Note Added: 0005236 | |
2020-02-04 07:55 | g.wolkerstorfer | Status | feedback => assigned |
2020-02-11 08:52 | g.wolkerstorfer | Note Added: 0005238 | |
2020-02-13 11:23 | derick | Status | assigned => feedback |
2020-02-13 11:23 | derick | Note Added: 0005240 | |
2020-04-21 09:28 | g.wolkerstorfer | Note Added: 0005399 | |
2020-04-21 09:28 | g.wolkerstorfer | Status | feedback => assigned |
2020-04-22 16:38 | derick | Status | assigned => resolved |
2020-04-22 16:38 | derick | Resolution | open => no change required |
2020-04-22 16:38 | derick | Note Added: 0005400 |