[
https://issues.apache.org/jira/browse/BEAM-8901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16990224#comment-16990224
]
Heejong Lee commented on BEAM-8901:
-----------------------------------
Test still failed with -XX:MaxMetaspaceSize=512M. Heap dump inspection shows
that byte[] objects are occupying most of the memory and I can see half-million
empty HybridMemorySegments each owning byte[] of 32,792B.
You can also reproduce OOM and inspect heap dump by
1) cloning ihji:BEAM-7961 branch
2) modifying "java -jar ..." line in
sdks/python/scripts/run_flink_job_server.sh (adding
"-XX:+HeapDumpOnOutOfMemoryError" and removing
"--reuse-flink-local-execution-environment")
3) executing :runners:flink:1.9:job-server:validateCrossLanguageRunner task
> add experimental flag for reusing flink local environment
> ---------------------------------------------------------
>
> Key: BEAM-8901
> URL: https://issues.apache.org/jira/browse/BEAM-8901
> Project: Beam
> Issue Type: Improvement
> Components: runner-flink
> Reporter: Heejong Lee
> Assignee: Heejong Lee
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Flink job server launches a new mini cluster every time we run the pipeline
> on Flink local environment. To prevent OOM, we need to reuse existing Flink
> local environment if possible.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)