Skip to content

Document performance implications of high volume System.out/System.err usage #8079

@kgibm

Description

@kgibm

In a recent performance competition with another application server, an application with incredibly heavy System.out/System.err usage highlighted the fact that Liberty defaults to sending System.out/System.err messages to both messages.log and process stdout/stderr (e.g. cosnole.log):

copySystemStreams
com.ibm.ws.logging.copy.system.streams
If this setting is set to true, messages that are written to the System.out and System.err streams are copied to process stdout and stderr streams and so appear in the console.log file. If this setting is set to false, those messages are written to configured logs such as the messages.log file or trace.log file, but they are not copied to stdout and stderr and do not appear in console.log. The default value is true.

This will be worse performance compared to just sending to messages.log and the performance overhead will be proportional to the volume of System.out/System.err usage.

It would be useful to highlight this in the Liberty Performance tuning page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions