Questions around environment variables ($JAVA_TOOL_OPTIONS)
See original GitHub issueHi 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:
- Created 4 years ago
- Comments:15 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have to say it is
JAVA_TOOL_OPTIONS
, notJAVA_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: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.