Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320388

Summary: Excessive memory usage when typing in php editor
Product: z_Archived Reporter: Martin Fleurke <martin.fleurke>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: zulus
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Martin Fleurke CLA 2010-07-20 08:51:18 EDT
Build Identifier: 20100617-1415

If I open a php file and type a letter, I can see memory usage increase in the heap usage display. The actual memory increase depends on the file size and project size, and can be between 0.5 MB and 50MB? (any larger and the garbage collector will free the space). 

It does not matter where you type (in a function, comment or outside php tags).
I have tested the same file of 150 lines in two different projects. One being a php project, the other a smaller java project. The latter gave 0.5-1MB increase per letter, the php project 5MB. 
Another file of 900 lines gave over 30MB in php project, 6 MB in the smaller java project.

Reproducible: Always

Steps to Reproduce:
0. enable window->preferences->general->'show heap status'
1. open php file in phpeditor
2. type a letter
Comment 1 Roy Ganor CLA 2010-08-04 05:58:31 EDT
After consulting with QA, we need to continue the deep performance auditing to complete the fixes for these issues.

Also we need others to help us out with reproduction, obviously there are performance bugs that can't be simulated very easily.
Comment 2 Dawid Pakula CLA 2018-06-20 18:18:44 EDT
Marking as fixed. Memory is stable now.