× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
funfun reported 2013-02-08T23:57:57Z  · emilianbold last modified 2013-04-30T13:11:46Z

Table Data Editor: possible memory leaks


Dev
Fun Fun
funfun
QA
Emilian Bold
emilianbold
Priority Low
Complexity Unknown
Component Tools - Table Data Editor
Version 14.0

Noticed this problem while working on ADS issue #8187. Below are steps to reproduce the problem:
(1) Launch ADS with -Xmx768M
(2) Create a test table with two columns: integer and longtext.
(3) Follow the similar way described in issue #8187 to insert two rows to the newly created table.
    The size of each row is significant in order to reproduce this problem.
    In my test case, the size of each row is about 10 MB.
(4) Close all of opened tabs and exit ADS.
(5) Restart ADS.
(6) In the schema tree, expand the tree to the table defined in (2).
(7) Right click the table node defined in (2) and select 'Edit Table Data (Top N)'.
(8) After 'Edit Table Data' dialog is displayed, make change in the second column for both rows.
(9) Click the 'Primary Key - ...' tab and check the Key column for the first row.
(10) Click the 'Preview SQL' tab.
(11) Click the 'trash can' icon displayed in the lower-right corner and note the value of 'Used memory:'.
(12) Click the first data row, then click the second data row, then click the 'trash can' icon.
     The 10-MB data displayed in the 'Selected Cell Content' pane should change and the 'Used memory:' would remain the same.
(13) Repeat step (12) a few times, everything should work as expected.
(14) So far so good, now, here comes the problem when switching tabs:
(15) Click the 'Messages' tab, then click the 'trash can' icon; the 'Used memory:' pretty much remains the same.
(16) Click the 'Preview SQL' tab, then click the 'trash can' icon; the 'Used memory:' goes up.
(17) Repeat steps (15) and (16) a few times, you will run out of memory.

I also did some test before running out memory, some of memory allocated by step (16) never gets released even 'Edit Table Data' dialog is closed. I ran Eclipse Memory Analyzer Tool (MAT) and generated some reports (attached).

7 attachments

Issue #8320

Closed
Fixed
Resolved 2013-02-16T06:37:08Z
 
 
Completion
No due date
Fixed Build trunk/31378
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017