Skip to content

Warning "Unexpected JVM command line syntax" when passing command line arguments containing slashes to instrumented application #4269

Description

@zimmi

Describe the bug

The Boostrap-Check in https://github.com/elastic/apm-agent-java/blob/main/elastic-apm-agent-premain/src/main/java/co/elastic/apm/agent/premain/JvmToolBootstrapCheck.java#L63 logs a warning when command line arguments containing slashes are passed to the main method:

[elastic-apm-agent] WARN Unexpected JVM command line syntax: org.example.Main --file /my/path/containing/slashes/file.txt

Steps to reproduce

Pass command line args containing slashes to an instrumented application.

Expected behavior

No warning is logged.

Debug logs

See above.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-javacommunityIssues and PRs created by the communityenhancementEnhancement of an existing feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions