VERIFIED SOLUTION i
X

Spectrum repository hold on the memory bigger than configured in spectrum.vmargs

Issue

The repository (repository/spectrum.vmargs) in Spectrum is configured as 2GB.
But the repository process hold on the 20GB Memory.
User-added image

User-added image
 

Cause

In Java when the max heap size is configured, this tells the JVM to allow no more than said value (eg. 2G) for heap memory.
However, this is not the only memory Java uses.
There is also non-heap memory that is used for different things depending on the application.
Typically, this doesn’t significantly increase the memory usage beyond the configured heap size but having said that, some applications, usually for performance reasons, uses special calls to further use non-heap memory. 

Resolution

UPDATED: November 28, 2018


This can be controlled by setting the following property in repository/neo4j/neo4j.template to a more reasonable value, like 1G:
dbms.memory.pagecache.size=1g

Refer to the below Neo4j documentation for more details:
Neo4j Performance Tuning
Memory configuration
 

Environment Details

Product Affected: Spectrum Technology Platform
Product Feature: Performance

Downloads

  • No Downloads