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

 ##########
 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:
   Sounds good. Will add it.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to