Questions tagged [jvm-arguments]

Command-line options and environment variables that can affect the performance characteristics of the Java Virtual Machine

There are several categories of JVM arguments:

  1. Standard options recognized by the Java application launcher (e.g. -client, -classpath, ...)
  2. Options that begin with -X which are non-standard (not guaranteed to be supported on all VM implementations) and are subject to change without notice in subsequent releases of the JDK (e.g. -Xbootclasspath, -Xms, -Xloggc, ...)
  3. Options that are specified with -XX are not stable and are subject to change without notice (e.g. -XX:+PrintGCDetails, -XX:-UseParallelGC, ...)

References:

703 questions
5
votes
1 answer

Why -noverify added at the end of JVM arguments

I try to run my JAVA application with JVM arguments in Eclipse. I noticed that a "-noverify" String is appended each time at the end of the parameters, which makes them unusable because I need that as a patch to my config files. (And the program…
SiGe
  • 341
  • 6
  • 18
5
votes
3 answers

who is the owner of JVM?

Lot of Mobile devices are coming with JVM with its OS(for example Nokia,sony ericcson).will all devices have same JVM? are all JVMs owned by sun micro systems? has device manufacturer paid for it to sun micro sytems? suppose If i want to creat my…
user141302
5
votes
2 answers

Java setting system property using command line

While reading java man page, I found the -Dproperty=value flag which stats that by passing this flag, it will create a system property with value = value. I wrote a test java code: class File{ public static void main(String[] args){ …
Dheerendra
  • 1,488
  • 5
  • 19
  • 36
5
votes
1 answer

Does RSS tracks reserved or commited memory?

I'm running experiments with different jvm options on java 8 in order to lower RSS: Script used for Rss tracking: ps -o rss -o vsz -o pid $pid JVM args for setting up java process: -XX:+PrintNMTStatistics -XX:+UnlockDiagnosticVMOptions…
Petro Semeniuk
  • 6,970
  • 10
  • 42
  • 65
5
votes
1 answer

Specify options for the jvm launched by pyspark

How /where are the jvm options used by the pyspark script when launching the jvm it connects to specified? I am specifically interested in specifying jvm debugging options…
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
5
votes
0 answers

How can I configure the Java GC Overhead Limit?

Can the GC Overhead Limit be tuned rather than just enabled or disabled? The Java GC Overhead Limit, whereby Java throws an OutOfMemoryError when it is doing "too much" garbage collection is great. It's particularly nice in conjunction with…
Don Willis
  • 1,340
  • 2
  • 7
  • 7
5
votes
1 answer

JVM Memory Tuning Advice

Please what memory tuning advise would you suggest given the GC log below with a system currently running on these params, taking into consideration the Machine recieves high frequency data that takes a about 6ms to process. Thanks in Advance. java…
5
votes
1 answer

How can I pass Java System Properties to the JVM when executing "run-app" in Grails 2.3.1

How can I pass Java System Properties to the JVM when executing "run-app" in Grails 2.3.1? When running "grailsw run-app" two JVM are started. The Grails Console and the tomcat container running my Grails Application. I have tried appending them…
Hugh Brien
  • 91
  • 1
  • 7
5
votes
2 answers

How to add jvm parameters for a runnable jar?

For the runnable jar that i am creating. it requires xmx1024 as JVM argument. How can i do this ? Or is there any alternative ?
Arun Abraham
  • 4,011
  • 14
  • 54
  • 75
5
votes
3 answers

Is there a way to increase Java heap space in the code itself?

Possible Duplicate: Is it possible to dynamically change maximum java heap size? I know there is an XMX option for the Java launcher, but is there some kind of preprocessing directive that does this instead (so that all computers that run my code…
5
votes
3 answers

What's wrong with these Ant/JVM args?

I am trying to run JBoss TattleTale from an Ant buildfile. Usually I run it from the commandline like so: java -Xmx512m -jar /home/myuser/jars/tattletale.jar /home/myuser/projects/lib /home/myuser/tmp/tt where /home/myuser/projects/src is the…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
5
votes
2 answers

Is it possible to modify JVM args using java code at runtime?

Possible Duplicate: Modify JVM args from inside the JVM I found an old question about this Modify JVM args from inside the JVM. It is asked 3.5 years ago. Wondering if it is possible now?
DeepNightTwo
  • 4,809
  • 8
  • 46
  • 60
5
votes
1 answer

Usage of javaagent with Android

I've recently became interested in DBC methodology. As Java is my "native" language I've looked at cofoja and more recently java-on-contracts. I mainly create Android software, so naturally I'd like to be able to use contracts on my phone. Both…
kajman
  • 1,066
  • 11
  • 24
5
votes
2 answers

Difference between -XX:-UseParallelGC and -XX:+UseParallelGC

What is the difference between -XX:+UseParallelGC and -XX:-UseParallelGC? Most links indicate the first, but http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html mentions the second. Thank you.
xpapad
  • 4,376
  • 1
  • 24
  • 25
4
votes
4 answers

Unrecognized VM option '+HeapDumpOnCtrlBreak'

I'm using Jboss and I added -XX:+HeapDumpOnCtrlBreak option to JAVA_OPTS. But I got the error when starting Jboss: Unrecognized VM option '+HeapDumpOnCtrlBreak' Could not create the Java virtual machine. I've searched on the net and it seems JDK 6…
Grant Zhu
  • 2,988
  • 2
  • 23
  • 28