This question already has answers here:
Print All JVM Flags
(2 answers)
Closed 3 years ago.
Besides official documentation I have found only this post. But it is quite old and incomplete (only -XX options available).
For example, I couldn't find -XX:AutoBoxCacheMax option in none of them.
Where the complete list can be found if it exists?
You can use
java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version
to print all options and their defaults. If you have a debug build you can use this command to print comments for the various options as well:
java -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+PrintFlagsFinal -XX:+PrintFlagsWithComments -version
PS: There are descriptions for most of them in this blog post: http://stas-blogspot.blogspot.bg/2011/07/most-complete-list-of-xx-options-for.html
Related
This question already has an answer here:
Karate: Is there a way to disable log when using retry?
(1 answer)
Closed 1 year ago.
Is there any way to enable and disable the thymeleaf report from the logs? I couldn't find any config flag to do, so is there any other way to switch it on/off?
I don't understand what you mean - but my guess is the very verbose log that sometimes happens when the logging system is not configured properly. Or if you are using some combination of dependencies or building a JAR on your own (which we don't support, you have to figure this out on your own).
Maybe this thread gives you some ideas: https://github.com/intuit/karate/issues/1694
EDIT: quoting the comment by #italktothewind - it seems that <logger name="karate.org.thymeleaf" level="OFF"/> can do the trick. This may or may not work depending on which version of the Karate Maven dependency you use.
Or if you insist that this is some issue with Karate - please follow this process so that we can fix it: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue
This question already has answers here:
Is there an option for us to customize and group the test scenarios in the statics section of the Karate Gatling Report?
(2 answers)
Closed 1 year ago.
I have downloaded the gatling-highchart-bundle zip..
placed the karate feature file and karate-galtling simulation file in the user-files/simulation folder under the highchart-bundle.
set the classpath of the karate feature file folder in the gatling.sh & gatling.bat file.
When I trigger the execution, reports are not generated ?
Can anyone help me to fix this.
Please assume that what you are asking for is not supported. Read the karate-gatling documentation to see what is supported: https://github.com/intuit/karate/tree/master/karate-gatling
This question already has answers here:
Karate karate-config.js not a js function
(2 answers)
Closed 2 years ago.
I have a karate 0.9.9.RC3 project with Java 15, tests run correctly if running directly through runner, however if I chose to run through 'mvn test' I get 'nashorn is null' error.
Sounds like you have multiple dependencies in your pom.xml file. Follow this process please: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue
This question already has an answer here:
Unable to use read('classpath:') when running tests with standalone karate.jar
(1 answer)
Closed 1 year ago.
I'd like to run a single .feature file, the one I'm trying to debug, instead of the full set of over 100 tests we have... it it possible?
I'v tried adding the "classpath" to the karate options, as I saw in other answers, but it still runs everything even if the path doesn't exists:
$ mvn clean test \
-Dtest=ParallelTest \
-DargLine="-Dkarate.options='--tags ~#ignore classpath:relative/path/to/my/new.feature" \
-Denv='dev'
This is what the IDE support is for, we have Visual Studio Code (recommended), IntelliJ and Eclipse: https://github.com/intuit/karate/wiki/IDE-Support
If you are interested in the details, there is a "CLI way" to do this (0.9.5 onwards): https://github.com/intuit/karate/wiki/Debug-Server#maven - so just put a feature classpath: instead of the -d
And for Maven / JUnit users, most teams write a "Runner" class, and you can add a test method and run a single feature, please refer to the docs: https://github.com/intuit/karate#junit-5
Is the JVM Options List still being maintained anywhere? It seems to have disappeared from Oracle's website, but luckily the Wayback Machine has a copy.
Use java -XX:+PrintFlagsFinal to print available -XX options.
More diagnostic and experimental options can be added to list with following options:
-XX:+UnlockDiagnosticVMOptions
-XX:+UnlockExperimentalVMOptions (for Sun)
-XX:+UnlockInternalVMOptions (for JRockit)
NOTE: Current version of javac docs for Java 8 contains list of most -XX options: https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html
Oracle's guide with 80+ options: http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html
Pierre Laporte's service with full search for 907 options (supports JDK 8):
http://jvm-options.tech.xebia.fr/
Stas's guide with 800+ options: http://stas-blogspot.blogspot.com/2011/07/most-complete-list-of-xx-options-for.html
Collection of options for 1.6.0 and older versions of JVM: http://www.xenoc.demon.co.uk/A%20Collection%20of%20JVM%20Options.htm
I used the same document very frequently as a reference, but unfortunately the original author was not maintaining it anymore.
I think it is still a valid list especially for older JVMs.
The www.xenoc.demon.co.uk referenced by Andriy is no more available...
So I'm trying to keep an updated version of the document here A Collection of JVM Options.