Skip to content

GreengrassCoreIPCV2 Subscribing creates too many threads, causes systemwide problems. #366

Answered by MikeDombo
MaxProfit asked this question in Q&A
Discussion options

You must be logged in to vote

Hello Matthew,

You can create the client and provide a specific executor in the builder. You can make an executor which limits the number of threads. https://aws.github.io/aws-iot-device-sdk-java-v2/software/amazon/awssdk/aws/greengrass/GreengrassCoreIPCClientV2.Builder.html#withExecutor(java.util.concurrent.Executor).

However, if you have too much data coming in, you will end up with a ton of memory somewhere. If your application does not process the messages, they will backup in Greengrass Nucleus and cause its memory usage to climb. You ultimately will need to send fewer messages or process them faster.

Perhaps whatever is sending the messages can send fewer, but larger messages.

I can…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jmklix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants