Skip to content

Commit

Permalink
call system.gc after a query completes
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjingwang committed Feb 28, 2017
1 parent c50dbd8 commit be47687
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/edu/washington/escience/myria/parallel/QueryManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ private void finishQuery(final Query queryState) throws DbException {
throw new DbException("Error finishing query " + queryState.getQueryId(), e);
} finally {
runningQueries.remove(queryState.getQueryId());
/* Clean myself to provide a fresh start to the next query. */
System.gc();

/* See if we can submit a new query. */
if (!runningQueries.isEmpty()) {
Expand Down

0 comments on commit be47687

Please sign in to comment.