Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Won't Fix
-
1.1.6, 1.2.2
-
None
-
None
-
all
Description
javamcsapi has a memory leak. I assume that some Swig objects aren't garbage collected.
Memory leak is around ~900MiB for following example injection.
import com.mariadb.columnstore.api.*; |
|
public class MCSAPITest { |
|
public static void main(String[] args) { |
ColumnStoreDriver d = new ColumnStoreDriver(); |
ColumnStoreBulkInsert b = d.createBulkInsert("test", "t1", (short)0, 0); |
long rows = 100000000; |
try { |
for(long i=0; i < rows; i++){ |
b.setColumn(0, i); |
b.setColumn(1, rows-i); |
if (i % 1000 == 0){ |
System.out.println(i);
|
}
|
b.writeRow();
|
}
|
b.commit();
|
}
|
catch (ColumnStoreException e) { |
b.rollback();
|
e.printStackTrace();
|
}
|
}
|
}
|
Attachments
Issue Links
- relates to
-
MCOL-1407 mcsapi memory leak - destructor not called from swig generated code
- Closed