Swap space being eaten up by greengrass

0

I see the following process on my GreenGrass device: java -Dlog.store=FILE -Dlog.store=FILE -Droot=/greengrass/v2 -jar /greengrass/v2/alts/current/distro/lib/Greengrass.jar --setup-system-service false

is this the main greengrass service ? I'm asking because it seems to use a lot of memory and seems to be growing all the time causing the swap memory to grow.

jeteye@jeteye:/data/rt$ sudo smem --sort=swap -r
  PID User     Command                         Swap      USS      PSS      RSS
 4525 root     java -Dlog.store=FILE -Dlog   514860   353064   353386   354676
 7067 ggc_user java -jar /greengrass/v2/pa    75560     2720     2986     3392
 7957 root     /usr/sbin/streamcontroller     57640    60192    61500    63172
 6029 root     /usr/bin/dockerd -H fd:// -    33704    21848    21848    21856

and eventually ( over 2.5+ hours) the swap process (kswapd0) is starting to take so much processor time that other processes (that need to handle live video) don't get enough time and restart (this is a guess..still collecting more information).

Is there a way to limit the amount of memory that GreenGrass uses over time ?

clogwog
已提问 2 年前383 查看次数
2 回答
0
已接受的回答

Hoi clogwog. Yes that's the main process. Did you find this link?

https://docs.aws.amazon.com/greengrass/v2/developerguide/configure-greengrass-core-v2.html#jvm-tuning

Also you can use the systemResourceLimits configuration item of the Nucleus to limit the amount of RAM (and CPU) available to component processes.

https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-nucleus-component.html#greengrass-nucleus-component-configuration

The growth over time sounds concerning though.

profile pictureAWS
专家
Greg_B
已回答 2 年前
0

Hoi Greg,

no i didn't find that link. Very useful. Will set some limits and run it overnight again. It may just be because it is completely unrestricted it will just use it.

Dank U well !

clogwog
已回答 2 年前
  • Alstublieft. (And we've just about reached the end of my Dutch.)

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则