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
0
votes
1 answer

java option Heap dump on out of memory

In Hotspot JVM 1.4.2, I used the option -XX:+HeapDumpOnOutOfMemoryError and it says unknown option. How do I get Heap Dump in this JVM. (I cannot migrate to JVM 6 as its a legacy application running here since years).
user2531191
  • 579
  • 10
  • 27
0
votes
2 answers

Out-of-Memory on Tomcat

I am using Tomcat 7 to deploy my application (using spring controllers) and i see the following exception happening at times on my server. Please help. Do understand that this has something to do with my server memory, but what could be the fact…
Akhil Achuthan
  • 141
  • 3
  • 16
0
votes
1 answer

Simultaneously run Java Virtual Machines

I am trying to run some different Eclipse RCP implementations simultaneously, and I receive the following error message: "Java was started but returned exit code=1". I understand that happens when a xmx or xms parameter greater than between 1.2 and…
mochomecha
  • 162
  • 1
  • 11
0
votes
0 answers

JVM Tuning:Class data sharing

I have read a good deal about class data sharing [Ref 1, Ref 2] I am using a JRockit JDK 6. I wanted to know if JRockit JDK 6 supports "-Xshare" and can it coexist with "-XgcPrio:deterministic" ?
user170008
  • 1,046
  • 6
  • 17
  • 31
0
votes
1 answer

How to set jvm heap size when starting a jade agent

I'm trying to increase jvm heap size because my JADE agent program throws java.lang.OutOfMemoryError: Java heap space error. I have set java heap size using Java Control Panel -> Java Runtime Environment Settings in Windows 7. But it doesn't help.…
pabz
  • 534
  • 1
  • 5
  • 15
0
votes
0 answers

java program arguments and VM argument

I want to figure out how can I run a java program which demand different types parameters to be passed. Here the instructions of the author's program : RUN : $ cd wmart/work/ $ java -jar WMartSimulator
Mohamed_88
  • 31
  • 1
  • 1
  • 9
0
votes
1 answer

How to resolve PermGen Out of memory exception issue in in Weblogic 10.3.5 while performing multiple deployments and undeployments?

How to resolve PermGen Out of memory exception issue in in Weblogic 10.3.5 while performing multiple deployments and undeployments? I have increased Xmx to 768 mb to java arguments..even after I'm facing the same issue? Any help would be appreciated…
0
votes
1 answer

Error while start Glassfish (errno = 22)

I have a problem when starting my server glassfish. When I start it loads in about 1 minute and then immediately sends the error message quoted below. Glassfish domain config:
Tiarê Balbi
  • 1,480
  • 1
  • 23
  • 32
0
votes
2 answers

How to economize on memory use using the Xmx JVM option

How do I determine the lower bound for the JVM option Xmx or otherwise economize on memory without a trial and error process? I happen to set Xms and Xmx to be the same amount, which I assume helps to economize on execution time. If I set Xmx to…
H2ONaCl
  • 10,644
  • 14
  • 70
  • 114
0
votes
1 answer

Unrecognized VM option ' ExplicitGCInvokesConcurrentAndUnloadsClasses'

My Java project is failing to start with the error below. This only started happening after I restarted my computer. What does this error mean? Unrecognized VM option ' ExplicitGCInvokesConcurrentAndUnloadsClasses' Could not create the Java virtual…
Rylander
  • 19,449
  • 25
  • 93
  • 144
0
votes
1 answer

Jruby and Forking

Working for a large company, we are using the parallel_tests gem to run our cucumber automation. This works well for our Ruby divisions, but for our Jruby folk we need another option. The issue is that Jruby (as of 1.7) fork spawns a new java JVM…
Matt Westlake
  • 3,499
  • 7
  • 39
  • 80
0
votes
1 answer

Increasing JVM heap size without effect - Review of defined options

For a large data mining experiment run using Java (Weka), I am trying to assign a larger heap size as said to increase performance. I do so by setting the following options in the menu 'Run > Run Configurations > Arguments': [The application…
ateich
  • 203
  • 3
  • 5
  • 16
0
votes
1 answer

Difference between -xms and -xmx argument for java command

I am running 6 java processes.I have set -Xms and -Xmx parameter to 1 GB for each process.So total heap allocation is 6 GB. I have 8 GB physical memory.So after starting these 6 processes ,"free" command should show 6 GB as used and 2 GB left but…
Vimal Jain
  • 557
  • 6
  • 22
0
votes
3 answers

Java Heap Space Error - How To Increase Maximum Amount Able To Be Reserved? [Cannot Exceed 1505M]

I am running 64-bit windows 7 with 4GB of RAM. I have 32-bit java I am trying to run a graph search algorithm in eclipse. I commented absolutely everything out except for a simple println("Hello World") After a lot of tinkering, I found that I…
user2316667
  • 5,444
  • 13
  • 49
  • 71
0
votes
1 answer

How do you implement ExitOnOutOfMemoryError parameter on JRockit R28?

My WebLogic Servers use JRockit JVM R28. We need to have the WebLogic JVMs configured to automatically shutdown/kill/exit when an OutOfMemoryError occurs. A JRockit JVM Parameter called "ExitOnOutOfMemory" will let us accomplish this. However…
GavinWoods
  • 813
  • 2
  • 14
  • 28