首页 文章

GraphDB 7.0的内存问题

提问于
浏览
0

我正在尝试将数据集加载到GraphDB 7.0 . 我写了一个Python脚本来转换和加载Sublime Text 3上的数据 . 程序突然停止工作并关闭,计算机威胁重启但没有,我失去了几个小时的计算,因为GraphDB不让我查询插入物 . 这是我在GraphDB上遇到的错误:

The currently selected repository cannot be used for queries due to an error:

org.openrdf.repository.RepositoryException: java.lang.RuntimeException: There is not enough memory for the entity pool to load: 65728645 bytes are required but there are 0 left. Maybe cache-memory/tuple-index-memory is too big.

我按如下方式设置JVM:

-Xms8g
-Xmx9g

我并不完全记得我设置的缓存和索引存储器的值 . 我该如何解决这个问题?

为了记录,我需要解析的数据库有大约300k的记录 . 该计划关闭了大约50k的商店 . 我该怎么做才能解决这个问题?

1 回答

  • 2

    打开工作台并检查您为缓存内存提供的内存量 .

    Xmx应该是一个足够的值

    cache-memory + memory-for-queries + entity-pool-hash-memory
    

    遗憾的是,后者无法轻易计算,因为它取决于存储库中的实体数量 . 你要么必须:

    • 使用更大的Xmx值增加java内存

    • 减少高速缓存的值

相关问题