Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320388 - Excessive memory usage when typing in php editor
Summary: Excessive memory usage when typing in php editor
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-20 08:51 EDT by Martin Fleurke CLA
Modified: 2020-05-14 11:08 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.