-
Notifications
You must be signed in to change notification settings - Fork 29
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
Fix: Concurrent Cancellation Exception #379
Conversation
Can one of the admins verify this patch? |
ok to test |
There was a problem hiding this 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
src/main/java/iudx/catalogue/server/database/mlayer/MlayerDataset.java
Outdated
Show resolved
Hide resolved
src/test/java/iudx/catalogue/server/mlayer/vocabulary/DataModelTest.java
Outdated
Show resolved
Hide resolved
src/test/java/iudx/catalogue/server/mlayer/vocabulary/DataModelTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ok to test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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.
To resolve the issue, made the following changes:
◦ 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.