|
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();
|
}
|
}
|
}
|
|