Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] memory leak suspect in GDBBackendCLIProcess and GDBInferiorProcess (Marc Khouzam)

Hi Marc Khouzam,

Thanks for your input. I have upgraded CDT to 8.0.2 and eclipse to 3.7. And take the reading using visuam VM and analysed the result using MAT. Please find the readings below. In CDT 7.0.2 the number of objects and retained heap of the GDBInferiorProcess and GDBBackendCLIProcess are increasing highly (with 2 MB).

But in CDT 8.0.2 the number of objects and retained heap of the GDBBackendCLIProcess (only) is increasing. But very minimal in bytes. So I think the memory leak related to the GDBInferiorProcess and GDBBackendCLIProcess are fixed in CDT 8.0.2. Please find the reading which I take using the heapdumps and eclipse memory analyser below.

Eclipse 3_6 CDT 7.0.2
#####################
Class Name                                                       | Objects | Shallow Heap | Retained Heap
---------------------------------------------------------------------------------------------------
try1 - org.eclipse.cdt.dsf.gdb.service.command.GDBInferiorProcess|       1 |           72 |  >= 2,097,704
try2 - org.eclipse.cdt.dsf.gdb.service.command.GDBInferiorProcess|       2 |          144 |  >= 4,195,408
try3 - org.eclipse.cdt.dsf.gdb.service.command.GDBInferiorProcess|       3 |          216 |  >= 6,293,112


Class Name                                                         | Objects | Shallow Heap | Retained Heap
-----------------------------------------------------------------------------------------------------
try1 - org.eclipse.cdt.dsf.gdb.service.command.GDBBackendCLIProcess|       1 |           64 |  >= 2,097,816
try2 - org.eclipse.cdt.dsf.gdb.service.command.GDBBackendCLIProcess|       2 |          128 |  >= 4,195,624
try3 - org.eclipse.cdt.dsf.gdb.service.command.GDBBackendCLIProcess|       3 |          192 |  >= 6,293,432

 


Eclipse 3_7 CDT 8.0.2
#####################
Class Name                                                              |   Objects | Shallow Heap | Retained Heap
---------------------------------------------------------------------------------------------------------
All Tries .*org.eclipse.cdt.dsf.gdb.service.command.GDBInferiorProcess.*|           |              |             


Class Name                                                         | Objects | Shallow Heap | Retained Heap
-----------------------------------------------------------------------------------------------------
try1 - org.eclipse.cdt.dsf.gdb.service.command.GDBBackendCLIProcess|       1 |           64 |        >= 184
try2 - org.eclipse.cdt.dsf.gdb.service.command.GDBBackendCLIProcess|       2 |          128 |        >= 360
try3 - org.eclipse.cdt.dsf.gdb.service.command.GDBBackendCLIProcess|       3 |          192 |        >= 536


 


Back to the top