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

Fix: Concurrent Cancellation Exception #379

Merged
merged 8 commits into from
Aug 19, 2024

Conversation

Kranthi-Guribilli
Copy link
Contributor

  • Issue:
    While fetching data model information from the voc server using the WebClient, we encountered an OutOfMemoryException due to a memory leak. This occurred because a new WebClient & Vertx instance was being created every time the request was made, leading to excessive memory usage creating lot of threads which were never being down once created.
  • Fix:
    To resolve the issue, made the following changes:
    • Singleton Pattern for WebClient:
      ◦ Instead of creating a new WebClient instance for each request, instantiated a single WebClient instance and reused it across the application.
      ◦ The WebClient instance was created in the DatabaseVerticle and then passed around where needed.

@jenkins-datakaveri
Copy link
Collaborator

Can one of the admins verify this patch?

@gopal-mahajan
Copy link
Collaborator

ok to test

Copy link
Collaborator

@gopal-mahajan gopal-mahajan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the comments

Copy link
Collaborator

@gopal-mahajan gopal-mahajan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gopal-mahajan
Copy link
Collaborator

ok to test

Copy link
Collaborator

@gopal-mahajan gopal-mahajan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gopal-mahajan gopal-mahajan merged commit 892e378 into datakaveri:master Aug 19, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

4 participants