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

Container io.awspring.cloud.sqs.sqsListenerEndpointContainer#0 stopped. #1189

Closed
jangolano opened this issue Aug 17, 2024 · 2 comments
Closed

Comments

@jangolano
Copy link

Type: Bug

Component:
SQS

Describe the bug
Container io.awspring.cloud.sqs.sqsListenerEndpointContainer#0 stopped. It then shows memory data in the logs.
This seems to happen randomly.

I know the example below doesn't give a lot of information. The code is running in a docker container within ECS/Fargate.

Sample

    @SqsListener("generate-report-queue")
    fun onReceiveMessage(message: String) {
        logger.info("Received the following message to generate a report: $message")
        if(message.uppercase()=="CURRENT"){
            CurrentReportGenerator(dynamoDbUtils, slackUtils, hrChannel).generate()
        }
        else if(StringUtils.isUserRequest(message)){
            UserReportGenerator(dynamoDbUtils, slackUtils, hrChannel, message).generate()
        }
    }
@tomazfernandes
Copy link
Contributor

Hi @jangolano, perhaps your business logic is consuming too much memory and you're getting an OutOfMemory?

Really difficult to help with as little information, if you can please add more info, or set up a small sample project that reproduces the issue.

@maciejwalkowiak
Copy link
Contributor

Closing due to lack of feedback. If feedback comes we are happy to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants