Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-1996

javamcsapi - memory leak during injection

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Won't Fix
    • 1.1.6, 1.2.2
    • N/A
    • 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

          Activity

            People

              Unassigned Unassigned
              jens.rowekamp Jens Röwekamp (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.