我加载了一个大图并应用了连续的过滤器,但是在计算了一些计算之后我破坏了临时图。
GraphChangeSet<Integer> subGraphChangeSet =
currentSubGraph.createChangeSet();
list.forEach(v -> subGraphChangeSet.updateVertex((Integer) v.getId())
.setProperty("BLOCKED", true));
PgxGraph subGraphForRequest = subGraphChangeSet.build();
// ...
PgxGraph subGraphFiltered = subGraphForRequest
.filter(new VertexFilter("vertex.BLOCKED == true"));
float edges = (float) subGraphFiltered.getNumEdges();
PgqlResultSet results = subGraphFiltered.queryPgql("SELECT label(e), COUNT(*) " +
"MATCH () -[e]-> () GROUP BY label(e) ");
for (PgxResult result: results)
map.put(property, (float) result.getLong(2) / edges);
subGraphFiltered.destroy();
subGraphForRequest.destroy();
但是[ERROR] OutOfMemoryError: QUERY_PGQL failed maximum off-heap size is configured to not exceed 8,192 MBs.
当我尝试执行查询时出现异常。
所以我尝试使用 VM OPTS -Xms512m -Xmx4g,但 PGX 仍然忽略这些参数。我什至尝试-XX:-UseGCOverheadLimit但什么也没发生。我试图修改pgx.conf
文件以更改max_off_heap_size
参数的值,但也没有任何反应。