flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-6280) Allow logging with Java flags
Date Fri, 07 Apr 2017 17:39:41 GMT

    [ https://issues.apache.org/jira/browse/FLINK-6280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15961174#comment-15961174
] 

ASF GitHub Bot commented on FLINK-6280:
---------------------------------------

GitHub user greghogan opened a pull request:

    https://github.com/apache/flink/pull/3701

    [FLINK-6280] [scripts] Allow logging with Java flags

    Evaluate user-defined Java options immediately before starting services and rotate all
log files.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/greghogan/flink 6280_allow_logging_with_java_flags

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/3701.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3701
    
----
commit 7213d06775a06a017ce2609321b23f59f04c6157
Author: Greg Hogan <code@greghogan.com>
Date:   2017-04-07T17:34:16Z

    [FLINK-6280] [scripts] Allow logging with Java flags
    
    Evaluate user-defined Java options immediately before starting services
    and rotate all log files.

----


> Allow logging with Java flags
> -----------------------------
>
>                 Key: FLINK-6280
>                 URL: https://issues.apache.org/jira/browse/FLINK-6280
>             Project: Flink
>          Issue Type: Improvement
>          Components: Startup Shell Scripts
>    Affects Versions: 1.3.0
>            Reporter: Greg Hogan
>            Assignee: Greg Hogan
>
> Allow configuring Flink's Java options with the logging prefix and log rotation. For
example, this allows the following configurations to write {{.jfr}} and {{.jit}} files alongside
the existing {{.log}} and {{.out}} files.
> {code:language=bash|title=Configuration for Java Flight Recorder}
> env.java.opts: "-XX:+UnlockCommercialFeatures -XX:+UnlockDiagnosticVMOptions -XX:+FlightRecorder
-XX:+DebugNonSafepoints -XX:FlightRecorderOptions=defaultrecording=true,dumponexit=true,dumponexitpath=${LOG_PREFIX}.jfr"
> {code}
> {code:language=bash|title=Configuration for JitWatch}
> env.java.opts: "-XX:+UnlockDiagnosticVMOptions -XX:+TraceClassLoading -XX:+LogCompilation
-XX:LogFile=${LOG_PREFIX}.jit -XX:+PrintAssembly"
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message