Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hugegraph-server 用restapi查询了多次之后,内存占用就降不下来 #71

Open
fisherinbox opened this issue Sep 26, 2018 · 4 comments
Labels
improvement General improvement

Comments

@fisherinbox
Copy link

Expected behavior 期望表现

希望内存占用能够在不用的时候下降

Actual behavior 实际表现

比如刚启动hugegraph-server的时候内存占用3G,使用多次restapi查询之后,内存会到10g,而且不会下降,求问怎么解决

Steps to reproduce the problem 复现步骤

  1. {step 1}
  2. {step 2}
  3. {step 3}

Status of loaded data 数据状态

Vertex/Edge summary 数据量

  • loaded vertices amount: {like 10 million}
  • loaded edges amount: {like 20 million}
  • loaded time: {like 200s}

Vertex/Edge example 数据示例

{type something here...}

Schema(VertexLabel, EdgeLabel, IndexLabel) 元数据结构

{type something here...}

Specifications of environment 环境信息

  • hugegraph version: {like v0.7.4}
  • operating system: {like centos 7.4, 32 CPUs, 64G RAM}
  • hugegraph backend: {like cassandra 3.10, cluster with 20 nodes, 3 x 1TB HDD disk each node}
@javeme
Copy link
Contributor

javeme commented Sep 28, 2018

@fisherinbox hi,内存无法降下来有几点原因:

  1. 缓存占用
  2. JVM未把空闲内存还给操作系统
  3. 内存泄露

可以提供更详细的信息进行分析,比如访问restapi的内容?默认缓存超时时间10分钟之后是否释放?

@fisherinbox
Copy link
Author

@fisherinbox hi,内存无法降下来有几点原因:

  1. 缓存占用
  2. JVM未把空闲内存还给操作系统
  3. 内存泄露

可以提供更详细的信息进行分析,比如访问restapi的内容?默认缓存超时时间10分钟之后是否释放?
restapi 访问的内容就是kneighbor,kout,10分钟之后还是不会降下来,很长时间都不会,另外默认10分钟是在哪里设置的?

@javeme
Copy link
Contributor

javeme commented Sep 28, 2018

好的,kneighbor/kout返回数据是多少?数据库中总共数据多少条?

缓存超时配置项:graph.cache_expire,请参考文档:hugegraph.properties

@javeme javeme added the improvement General improvement label Jan 6, 2020
@javeme
Copy link
Contributor

javeme commented Jan 6, 2020

@Linary 对于JVM未把空闲内存还给操作系统,看看是否有必要默认设置MaxHeapFreeRatio一个值?

VGalaxies pushed a commit that referenced this issue Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement General improvement
Projects
None yet
Development

No branches or pull requests

2 participants