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년 전384회 조회
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.)

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인