question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Questions around environment variables ($JAVA_TOOL_OPTIONS)

See original GitHub issue

Hi Team,

I have a question:

Can anyone give-me a full example of this issue: https://github.com/GoogleContainerTools/jib/issues/1592

I trie to deploy my jib-api on kubernetes, but in my workspace we use JAVA_OPTS on kubernetes deployment, like this:

      - name: JAVA_OPTS
          value: -noverify -XX:TieredStopAtLevel=1 -XshowSettings:vm -XX:MaxRAMPercentage=55
            -XX:InitialRAMPercentage=50 -XX:MinRAMPercentage=30 -XX:+UseContainerSupport

I can’t understand the JAVA_OPTIONS_TOOLS, like FAQ example, or how i configure these variable on POM.

Thanks !

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

7reactions
chanseokohcommented, Jul 10, 2019

I have to say it is JAVA_TOOL_OPTIONS, not

JAVA_TOOLS_OPTIONS (wrong) JAVA_TOOL_OPTS (wrong) JAVA_TOOLS_OPTS (wrong) JAVA_OPTIONS_TOOLS (wrong)

Most of the JVMs I know will honor JAVA_TOOL_OPTIONS. The Oracle JDK/OpenJDK will print out the message that the environment variable is picked up:

$ JAVA_TOOL_OPTIONS=-Xmx1024m java -Xms256m -Xmx512m -version
Picked up JAVA_TOOL_OPTIONS: -Xmx1024m
openjdk version "1.8.0_212"
...
4reactions
loosebazookacommented, Jul 10, 2019

oh I see: JAVA_TOOL_OPTIONS is automatically picked up by java, you do not have to specify it on the command line. As long as the environment variable is defined, it will incorporate it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The JAVA_TOOL_OPTIONS Environment Variable
This guide helps you to troubleshoot issues that might occur with Java Client applications created on the Java Platform, Standard Edition (Java SE)...
Read more >
java - Difference between _JAVA_OPTIONS ... - Stack Overflow
JAVA_TOOL_OPTIONS and _JAVA_OPTIONS are ways to specify JVM arguments as an environment variable instead of command line parameters. The are picked up by...
Read more >
JAVA_TOOL_OPTIONS Rider error
I am constantly seeing this error message: The use of Java options environment variables detected. Such variables override IDE configuration ...
Read more >
How do I edit the Java's overriding Environment Variable?
DUG Insight User ManualDUG Insight LearningFrequently Asked Questions Installation and SettingsHow do I edit the Java's overriding Environment Variable? How do ...
Read more >
Environment variables - Android Developers
Learn how to set environment variables for Android Studio and the command-line tools that specify things like where the SDK is installed and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found