-
Notifications
You must be signed in to change notification settings - Fork 3
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
chore: Fix Simulator unbounded memory growth #406
chore: Fix Simulator unbounded memory growth #406
Conversation
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.
simulator/src/main/java/com/hedera/block/simulator/grpc/impl/ConsumerStreamObserver.java
Outdated
Show resolved
Hide resolved
simulator/src/main/java/com/hedera/block/simulator/grpc/impl/PublishStreamObserver.java
Outdated
Show resolved
Hide resolved
simulator/src/main/java/com/hedera/block/simulator/grpc/impl/PublishStreamObserver.java
Outdated
Show resolved
Hide resolved
simulator/src/main/java/com/hedera/block/simulator/grpc/impl/ConsumerStreamObserver.java
Outdated
Show resolved
Hide resolved
simulator/src/main/java/com/hedera/block/simulator/config/data/BlockStreamConfig.java
Show resolved
Hide resolved
simulator/src/main/java/com/hedera/block/simulator/config/data/BlockStreamConfig.java
Outdated
Show resolved
Hide resolved
simulator/src/main/java/com/hedera/block/simulator/grpc/impl/ConsumerStreamGrpcClientImpl.java
Outdated
Show resolved
Hide resolved
simulator/src/main/java/com/hedera/block/simulator/grpc/impl/ConsumerStreamObserver.java
Outdated
Show resolved
Hide resolved
Signed-off-by: georgi-l95 <[email protected]>
Signed-off-by: georgi-l95 <[email protected]> revert app.properties change Signed-off-by: georgi-l95 <[email protected]> fix e2e test Signed-off-by: georgi-l95 <[email protected]>
Signed-off-by: georgi-l95 <[email protected]>
713b515
to
d232852
Compare
Signed-off-by: georgi-l95 <[email protected]>
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.
Looks good @georgi-l95, just a couple of nits to consider.
simulator/src/main/java/com/hedera/block/simulator/grpc/impl/ConsumerStreamObserver.java
Outdated
Show resolved
Hide resolved
simulator/src/main/java/com/hedera/block/simulator/grpc/impl/PublishStreamObserver.java
Outdated
Show resolved
Hide resolved
Signed-off-by: georgi-l95 <[email protected]>
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
simulator/src/main/java/com/hedera/block/simulator/grpc/impl/ConsumerStreamObserver.java
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #406 +/- ##
============================================
- Coverage 96.99% 96.73% -0.26%
Complexity 400 400
============================================
Files 80 80
Lines 1429 1441 +12
Branches 94 95 +1
============================================
+ Hits 1386 1394 +8
- Misses 32 34 +2
- Partials 11 13 +2
|
Description:
This PR aims to resolve unbounded memory growth within the simulator, when running in consumer mode. It's was caused by the uncontrollable grow of the lastKnownStatuses list, when running in "high-speed" mode.
Related issue(s):
Fixes #404
Notes for reviewer:
Here is image of the heap size before the fix:
Here is image of the heap size after the fix:
Checklist