Questions tagged [jvm-arguments]

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

jvm-arguments
Filter by
Sorted by
Tagged with
0 votes
1 answer
769 views

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? ...
Mohamed Hafez's user avatar
0 votes
1 answer
2k views

Increase memory in Jboss eap 5.1

I' m using Jboss-eap-5.1. when I trying to change memory parameters through run.conf.bat, it is not change. when I run the server after doing changes i saw through Java Visual VM, changes are not ...
yapa's user avatar
  • 171
9 votes
1 answer
3k views

What is the difference between -HeapDumpOnOutOfMemoryError and +HeapDumpOnOutOfMemoryError options?

In Oracle's official doc HeapDumpOnOutOfMemoryError option specified with plus and minus sign. I'm just curious what do they stand for since it's not explained in official user guide
Petro Semeniuk's user avatar
33 votes
2 answers
11k views

Can I force the JVM to natively compile a given method?

I have a performance-critical method called often when my app starts up. Eventually, it gets JIT-compiled, but not after some noticeable time being run in the interpreter. Is there any way I can tell ...
Jean-Philippe Pellet's user avatar
2 votes
0 answers
763 views

Eclipse: socks proxy parameter error after jdk 1.7 upgrade

I had the following proxy VM args configured in Eclipse for a few months: -DsocksProxyHost=socks.OUR-HOST-SERVER-HERE.com -DsocksProxyPort=1080 Following an upgrade to Java 1.7, the following error ...
Adam Matan's user avatar
  • 133k
0 votes
2 answers
1k views

Cannot assign additional memory to Coldfusion JVM

Good Day, I am running Coldfusion 8 MX on a Windows 2003 32bit server with 4gig of RAM (2gig is always free) but I am unable to assign much more than 550m to the JVM. I had already submitted this ...
M Lamb's user avatar
  • 199
0 votes
1 answer
1k views

eclipse slash in vm argument

I have the same code running on Java 6 and Java 7, but in Java 7 it doesn't work as I expect. I write in the VM argument: -Dmy.root=D:\mvobs\S.4.8.600_view\ When I run it with Java 6 everything is ...
user2042494's user avatar
1 vote
1 answer
6k views

VM Could not reserve enough space for object heap

I have just upgraded to Jenkins 1.500 on a windows machine. I also have a windows slave with 8GB RAM. I have made a remote connection to this slave and started it from the Jenkins webinterface (using ...
u123's user avatar
  • 15.9k
8 votes
2 answers
24k views

How to set default parameters to jvm?

I'd like to know how I can pass parameters to JVM before it is started. For example, I think I need to modify JVM timezone parameter. I use eclipse with windows 7.
iceberg's user avatar
  • 1,951
0 votes
1 answer
1k views

It be fail to startup MyEclipse 10.7 when the argument -vm be changed to other jdk ,SOS

why I can't change myeclipse 10.7 64bit configeration file : myelispse.ini, change config argument "-vm" will fail to start up.by the way,my operation system is win8 64bit,and my jdk work without any ...
skcks's user avatar
  • 46
1 vote
3 answers
6k views

Cloud Foundry : Set Environment Variables via Manifest.yml

My question is very simple Is there any way to set environment variables via Manifest.yml *without* running the vmc command set-env [application name] key = value ?? On Amazon it is possible to do ...
Azimuts's user avatar
  • 1,262
1 vote
3 answers
1k views

accessing VM arguments during compile time

I have problem in accessing VM arguments in My program. I am writing an annotation processor in which i want to access some VM arguments. I am Using NETBeans IDE. I create the jar file of the ...
yash6's user avatar
  • 141
1 vote
3 answers
8k views

How can I pass jvm argument via Ant - Swing

I want to pass the JVM argument -Dfile.encoding=UTF-8 to my swing application using Ant script, I'm using eclipse and I'm looking for the minimum Ant script content to do this. this is my first use of ...
Adil's user avatar
  • 4,583
1 vote
1 answer
91 views

Can I enable an address to debug in a deployed JBoss application? [duplicate]

I'm working on an JBoss 6.1 environment, which the default options doesn't enable the debug, and everybody sometimes forget to add that option on the deploy. I was wondering if there is a way to ...
falsarella's user avatar
  • 12.4k
0 votes
1 answer
1k views

Xbooting a Java class [duplicate]

Basically I want to replace the Canvas class at runtime by an application that uses my custom Canvas class, I heard xbooting can do this but there are no tutorials or anything. So I'm just wondering ...
Francis Malloch's user avatar
-1 votes
2 answers
7k views

Java - Default value of MaxPermSize - Sun JVM [duplicate]

Possible Duplicate: Default values for Xmx, Xms, MaxPermSize on non-server-class machines We are using Sun JVM, and need to know the default value assigned to MaxPermSize We are not passing any ...
Kumar D's user avatar
  • 1,318
2 votes
2 answers
1k views

Can't debug intellij plugin - invalid initial heap size

I'm developing an intellij plugin and when i'm trying to run the plugin (or debug it) i keep getting the following error: Could not create the Java virtual machine. Invalid initial heap size: -...
axelrod's user avatar
  • 3,900
1 vote
3 answers
19k views

How to set log level in log4j from properties file in runtime

How do I set log level in log4j.xml using properties file in runtime time? <appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender"> <layout class="org.apache.log4j....
Sam's user avatar
  • 1,308
3 votes
5 answers
2k views

Extremely long GC times

We're running JBoss with the following startup arguments but are having problems with long GC times (>5 minutes). -Xms116042m -Xmx116042m -XX:PermSize=256M -XX:MaxPermSize=256M -XX:+...
ixbos's user avatar
  • 49
5 votes
2 answers
12k views

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's user avatar
  • 4,031
5 votes
3 answers
6k views

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

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 ...
Wuschelbeutel Kartoffelhuhn's user avatar
1 vote
1 answer
516 views

Any way to increase the memory settings for rational clearcase remote client

I am using rational clearcase remote client Version 7.1.1.3. Since this is an Eclipse based tool; I was trying to find out if I can increase the memory settings for minimum and maximum memory for this ...
Ayusman's user avatar
  • 8,599
1 vote
1 answer
2k views

Eclipse Juno with JRE 7 causes problems on startup

The issue that is explained seems to be a common one and different solutions have been proposed already, many of which work. One example of this discussion can be found here. My question is more ...
Waqas Ilyas's user avatar
  • 3,201
364 votes
13 answers
319k views

How to increase IDE memory limit in IntelliJ IDEA on Mac?

I'm using IDEA 12 Leda on Mountain Lion. I wanted to increase the maximum memory that IDE can use. I set the VMOptions in Info.plist file to be -Xmx2048m -ea -XX:+HeapDumpOnOutOfMemoryError -Xverify:...
woodings's user avatar
  • 7,633
0 votes
2 answers
2k views

HotSpot JVM Option HeapDumpOnOutOfMemoryError - Any Issues?

I've recently learned about the -XX:+HeapDumpOnOutOfMemoryError VM argument and was told that it should be added as a matter of course to the HotSpot JVM as it is off by default. One of my co-workers ...
sdoca's user avatar
  • 7,962
1 vote
3 answers
2k views

How can i read XX:MaxPermSize during runtime? [duplicate]

Possible Duplicate: Read Java JVM startup parameters (eg -Xmx) We have a desktop application where some old installations does not have the appropriate memory settings. They experience out of ...
user1035344's user avatar
1 vote
2 answers
851 views

eclipse.ini non-standard options

Im having out of memory errors and generally a very slow eclipse running with window builder and dealing with some big visual classes, so after some research I realized that increasing the heap java ...
Vitor Hugo's user avatar
  • 1,126
2 votes
1 answer
1k views

Changing property values while redeploying new version of .war in tomcat

In my Java web application where I am using tomcat as my app server, I am interested in a way of passing different value to a particular property to the application when it is deployed/redeployed. ...
Atharva's user avatar
  • 6,879
0 votes
3 answers
383 views

How to configure JVM to allocate memory only when is really necessary?

I have an application that can be executed when I use the jvm command -Xmx65m. Although it is running fine, I want to allow the application to consume more memory, because it has some features that ...
Daniel Pereira's user avatar
7 votes
2 answers
29k views

How can I increase the global heap size for java on Mac OSX

Apple has seen fit to remove the Java Preferences app from the Utilities folder so there's no longer any GUI way to go about increasing the allocated memory limit for Java. I'm not really a ...
secondman's user avatar
  • 3,257
20 votes
4 answers
67k views

How to set a JVM option in Jenkins globally for every job?

I've recently installed a new JDK (1.7u9), and I got some very strange VerifyErrors. In a thread I found that it could help me if I use a -XX:-UseSplitVerifier magic switch for the compilation. What ...
rlegendi's user avatar
  • 10.5k
2 votes
1 answer
5k views

Eclipse Setting verbose:class Flag for Launch Configuration

The java.exe command supports a 'verbose' flag which enables things like seeing from which file a class loads. Does Eclipse supporting setting this flag for a launch configuration? Here's a site ...
buzz3791's user avatar
  • 1,735
5 votes
3 answers
5k views

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/...
IAmYourFaja's user avatar
  • 56.3k
5 votes
2 answers
4k views

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

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's user avatar
  • 4,881
4 votes
3 answers
2k views

Prevent Java plugin from attempting to download pack.gz version of the archive

The Java 1.7 Plugin insists on attempting to download the pack.gz for the archive file specified. E.g. for an applet tag like this: <applet codebase="." code="com.whatever.Something" archive="...
jwl's user avatar
  • 10.4k
5 votes
1 answer
2k views

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 ...
kajman's user avatar
  • 1,076
43 votes
1 answer
57k views

How to set a java system property so that it is effective whenever I start JVM without adding it to the command line arguments

There was a change in Java 1.7 in the way the default Locale is get from the OS. There are methods of restoring the old behaviour e.g. by setting the flag -Dsun.locale.formatasdefault=true when ...
Bug Pecker's user avatar
1 vote
2 answers
2k views

Tomcat Replacing VM arguments

this may be a stupid question: I currently have some VM arguments that my web application requires. They are something like: -Dcom.company.custom.var='test' And I access them in code with: System....
codeflayer's user avatar
1 vote
1 answer
6k views

Activate jmxmp in jconsole

I am trying to connect to my tomcat server with jconsole via jmxmp protocol. I put jmxremote_optional.jar everywhere in jdk and jre folders, but when I try to connect I still get: malformed exception:...
EK.'s user avatar
  • 2,970
4 votes
3 answers
1k views

Java heap settings

While reading some notes on performance tuning, I did notice a recommendations while setting memory size: Java application should size both initial and maximum permanent generation size to the same ...
Vicky's user avatar
  • 5,480
3 votes
2 answers
9k views

Ghost4J. java.lang.UnsatisfiedLinkError: Unable to load library 'gsdll64'

I included Ghost4J 0.45 into my project using Maven and installed Ghostscript into C:\Program Files\gs\gs9.06. But I still get an error java.lang.UnsatisfiedLinkError: Unable to load library '...
WelcomeTo's user avatar
  • 20.2k
312 votes
3 answers
430k views

What does -XX:MaxPermSize do?

Specifically, why would it help to fix a PermGen OutOfMemoryError issue? Also, bonus points for an answer that points me to the documentation on JVM arguments...
Zefira's user avatar
  • 4,449
2 votes
7 answers
12k views

How to run a Java program multiple times without JVM exiting?

Suppose I have a Java program Test.class, if I used the below script for i in 1..10 do java Test done the JVM would exit each time java Test is invoked. What I want is running java Test ...
JackWM's user avatar
  • 10.3k
1 vote
3 answers
6k views

What does Java start the heap at if I do not specify a -Xms? [duplicate]

Possible Duplicate: How is the default java heap size determined? Im curious what happens if I do not specify a -Xms for initial JVM heap size with Java? Currently I have -Xms256m and -Xmx512m ...
ProfessionalAmateur's user avatar
52 votes
3 answers
111k views

How can I disable IPv6 stack use for IPv4 IPs on JRE?

As you can see on below screenshots, eclipse and Android SDK Manager (and other Java programs) are trying to connect to a IPv4 Internet IP via IPv6 TCP/IP stack while Proxifier (a proxy manager ...
Ebrahim Byagowi's user avatar
1 vote
2 answers
419 views

OutOfMemoryError in Java on one plattform, but not the another one

i got an strange issue with outOfMemory errors. i had written a application, which have in some parts heavy memory usage. on my laptop (linux, 64bit, eclipse indigo, vmargs: xms:40, xmx:512, 4gb ...
lunatikz's user avatar
  • 736
8 votes
3 answers
45k views

what is the right way to set JVM param's in eclipse

i am using eclipse 4.2 to execute a junit test. the test uses a lot of memory so what i want to do is to enlarge the memory allocated to the jvm. i wanted to know if there is a differences between ...
Raven's user avatar
  • 713
0 votes
2 answers
1k views

Java heap /pool size

When I start JVM it reserves at least {{xms}} memory, right? That means this memory is private for JVM process (it is malloced), yes? When JVM needs to increase heap at reserves (mallocs) more memory. ...
user996142's user avatar
  • 2,851
3 votes
1 answer
1k views

Increasing maxHeap arg for Findbugs in Jenkins

I am running Findbugs with Ant with the <findbugs> task. I am running the Ant build.xml from Jenkins. My build is stuck on low heap size : Exception in thread "main" java.lang.OutOfMemoryError: ...
Michael's user avatar
  • 22.6k
6 votes
3 answers
5k views

How to determine if -server option set on your JVM instance

I'm trying to determine if the JVM (using jdk 1.7u3) -server option is enabled by default on my JVM instances. Based on my environment (Windows 2008 Server R2) and the Server-Class Machine detection ...
Simon's user avatar
  • 81