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

Which class is used to print Thread Dump of JVM Java Virtual Machine?

I want to generate the thread dump of my running application. However, when I do kill -3 PID, it generate the thread dump at the console of the running application. I want to generate it to a file. I know I can run the application as ./run.sh >…
Archit Thakur
  • 105
  • 1
  • 1
  • 8
0
votes
2 answers

Passing command line options to reducer in Hadoop Mapreduce in Eclipse

I am running hadoop in pseudo distributed mode in windows using Eclipse. I need to pass some options [ jvm related ] to the reducers. I have tried using: mapred.reduce.child.java.opts
udag
  • 41
  • 1
  • 6
0
votes
2 answers

Java Heap Space - Cannot make large enough

I am trying to set the Xmx parameter when starting up a program. If I set it to 1408M, the JRE starts up fine. If I set it to 1536M, I get "Could not create the java virtual machine". I understand that it's trying to reserve consecutive memory…
mrK
  • 2,208
  • 4
  • 32
  • 46
0
votes
1 answer

Setting JVM Args in Shell Script

I'm trying to set some variables in my shell script for the JVM but I keep getting "Command not found" errors mainly on the -Xms1024m options (see below). Syntactically how would I set these. They currently look like…
mafyou
  • 5
  • 1
  • 2
  • 7
0
votes
1 answer

Windows Tomcat Service jvm -JvmSs parameter

I see references to the JvmSs parameter in the Tomcat Doco --JvmSs Thread stack size in KB There is nothing in the Oracle JVM doco about this. (Correct me if I'm wrong) Is this an obselete Java parameter, in the format of Tomcat doco bitrot -…
hawkeye
  • 34,745
  • 30
  • 150
  • 304
0
votes
2 answers

java process eats only 1 cpu core

i run my program using maven with the following command: mvn exec:java -Dexec.mainClass="some.path.to.my.class" on a Linux multi-cpu server. when i check the CPU usage, i see that java eats only 1 CPU core. i read somewhere that setting the -server…
ulkas
  • 5,748
  • 5
  • 33
  • 47
0
votes
1 answer

How to make Glassfish use different configuration for every application

I am using GlassFish, JBoss, Tomcat for my application servers. I want to use different log4j.properties for my applications on local, dev, test and prod envirment. So every project's application should have different log4j.properties file. For…
ahmet
  • 1,085
  • 2
  • 16
  • 32
0
votes
1 answer

How to set Heap Space for non executable JAR using JNI

Currently I am working on a mac application in which I am getting OutOfMemoryError frequently. Currently we are using non executable JAR file for our application so I cannot set heap size before starting my application because my java code will…
Bharat Sharma
  • 3,926
  • 2
  • 17
  • 29
0
votes
0 answers

Jonas 5.2.4 not launching from terminal

I am currently trying to deploy a web app on Jonas 5.2.4 (using the "full" version of the server), on a W7 Entreprise. All environment variables are setup accordingly. The problem being the following : in Eclipse JUNO (4.2), with the Jonas Support…
Audhulma
  • 1
  • 1
0
votes
1 answer

How to use all files in a Java program in RAM?

Is there a way to have all files used in a Java application in RAM? I don't need to have file synchronization, just need to put the file in RAM when opened for the first time and every writes will write in RAM and every reads will read from the RAM.…
rnunes
  • 2,785
  • 7
  • 28
  • 56
0
votes
2 answers

Configuring eclipse/java to boost the performance to the fullest

I have a windows pc with 64 bit OS (windows 7 Enterprise) and 8 GB of RAM. I want to run a heavy java program on eclipse and I would like to allocate as much of the PC resources only to eclipse/JVM to boost the performance. By the way, in two…
Sultan Abraham
  • 149
  • 1
  • 8
0
votes
1 answer

"Running a 64-bit JVM is not supported on this platform" with java -d64 option on 64bit linux

I have a 64 bit linux os: $ uname -p x86_64 java -version listed: java version "1.6.0_43" Java(TM) SE Runtime Environment (build 1.6.0_43-b01) Java HotSpot(TM) Server VM (build 20.14-b01, mixed mode) I am trying to run a 64 bit jvm with 4096 min…
broun
  • 2,483
  • 5
  • 40
  • 55
0
votes
2 answers

getting error while using JAW

hi I am a JAW beginner. I followed the steps given by a site for using JAW. but getting following error. It would be a great help if some one tell me what will be the directory path for VM argument.. for more specification my WordNet dictionary is…
K24
  • 31
  • 6
0
votes
1 answer

What is glassfish-jvm-option "http.proxyHost" for / when to use it?

I have just setup my glassfish-as behind a HAProxy. I found the glassfish-jvm-option "java.http.proxyHost"¹ and "java.http.proxyPort"¹. I have not set this value in my glassfish, so I am asking myself: What do I need this value(s) for, when should I…
Markus Schulte
  • 4,171
  • 3
  • 47
  • 58
0
votes
1 answer

Where does jruby log to?

I see a lot of config options like jit.logging=true, and I want to watch out for things like when the jvm gives CodeCache is full. Compiler has been disabled messages, where does jruby log this stuff? Better yet, how can I tell it which file to log…
Mohamed Hafez
  • 8,621
  • 7
  • 41
  • 49