Red Hat Bugzilla – Bug 648930
[MEMLEAK] gedit is 89Mb of RAM every time a 500byte file is opened
Last modified: 2010-11-30 04:56:44 EST
Description of problem:
gedit is eating tons of Mb, allocating 89Mb every time
a 500byte file is opened
Version-Release number of selected component (if applicable):
(FC14 updated this morning)
Steps to Reproduce:
1. start gedit, look at memory usage with "ps"
2. open a very small file (~512b), look again at memory usage
3. repeat 2, 3 times...
Every time a small file (less than 1kb!) is opened, gedit consistently use 69 more Mb of resident memory...
A reasonable amount of memory is used, slowly increasing as more files are opened in new tags.
17531 a 20 0 613m 19m 13m S 0.0 1.0 0:00.33 gedit
after opening one small file (around 500bytes):
17531 a 20 0 682m 88m 14m S 0.0 4.5 0:01.04 gedit
after opening 2 small files:
17531 a 20 0 750m 157m 14m S 0.0 7.9 0:02.65 gedit
after opening 3 small files:
17531 a 20 0 819m 226m 14m S 0.0 11.4 0:04.21 gedit
after opening 4 small files:
17531 a 20 0 888m 294m 14m S 0.0 14.8 0:05.79 gedit
Each file was in the 500byte - 1.5kb, however gedit eats
69Mb for each new tab...
For a grand total of 275Mb of RAM in order to edit 4 very small files!
While it was reproducable for nearly a month, it looks like some update fixed it.