You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/02/21 01:19:23 UTC

[GitHub] [flink] TisonKun commented on a change in pull request #11165: [FLINK-14038][docs] Extend Application Profiling documentation

TisonKun commented on a change in pull request #11165: [FLINK-14038][docs] Extend Application Profiling documentation
URL: https://github.com/apache/flink/pull/11165#discussion_r382349547
 
 

 ##########
 File path: docs/monitoring/application_profiling.md
 ##########
 @@ -53,4 +53,32 @@ compiler used to inspect inlining decisions, hot methods, bytecode, and assembly
 env.java.opts: "-XX:+UnlockDiagnosticVMOptions -XX:+TraceClassLoading -XX:+LogCompilation -XX:LogFile=${FLINK_LOG_PREFIX}.jit -XX:+PrintAssembly"
 {% endhighlight %}
 
+## Analyzing Out of Memory Problems
+
+If you encounter `OutOfMemoryExceptions` with your Flink application, then it is a good idea to enable heap dumps on out of memory errors.
+
+{% highlight yaml %}
+env.java.opts: "-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${FLINK_LOG_PREFIX}.hprof"
+{% endhighlight %}
+
+The heap dump will allow you to analyze potential memory leaks in your user code.
+If the memory leak should be caused by Flink, then please reach out to the dev mailing list.
 
 Review comment:
   link to dev mailing list?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services