JVM Option

Hi,
I want to pass jvm options like -Xmx128m etc...ie When my executable jar file runs, the JVM should use 128MB max memory rather than 64MB (default value).
How it can be done while creating jar file?
I found -J option in JAVA 1.5 Docs, but it is not working..
Thanks in advance.

je serai aussi int�ress� par cette r�ponse...

Similar Messages

  • JVM options doesn't accept option with spaces

    I am trying to pass an option via JVM options that has spaces in it. In Admin console I set it via
    server1->JVM Settings->General->Debug Options.
    I specified
    -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1678 -Xnoagent -Djava.compiler=NONE -Dcom.spss.util.xml.catalog=D:\SWDF\config\catalog with spaces
    The path - D:\SWDF\config\catalog with spaces
    cannot be retrieved in my code via
    String catalogRoot = System.getProperty(CATALOG_ROOT_KEY);
    I get
    D:\SWDF\config\catalog
    I tried surrounding it with single and double quotes but none of these work.
    When surrounded by double qoutes I get
    "D:\SWDF\config\catalog
    Is this a known issue? I am using Sun ONE ver 7. The JVM is
    java version "1.4.0_02"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_02-b02)
    Java HotSpot(TM) Client VM (build 1.4.0_02-b02, mixed mode)
    Swavek

    Please run a simple test. Create a small standalone application that dumps the system properties it sees to the console. If you can get this to work (i.e. spaces in a property), and the same technique fails for AS7, file a defect report with Sun on the issue.

  • How to add JVM option???

    i am facing problem of permgen memory exceprion..
    i got solution as to add following JVM option
    Increasing the PermSpace of the JVM with -XX:MaxPermSize=256M or higher only
    i don't know how to add JVM option...
    GOOGLING DIDNT WORK

    Done !!!!!!!!!!
    in glass fish
    admin console in JVM SETTING TAB

  • What non-standard JVM options are common across vendors...

    Hi all,
    As the name explains, non-standard JVM options (java -X) are exactly that, non-standard. So from what I understand these can be different by vendor, by release, by platform, or any combination of the above.
    What I'm trying to figure out is what's common between all the different implementations, if any. For example, are all of Sun's releases (for all platform, for all releases) have the same options? Or do they change by release, i.e. 1.3 to 1.4 to 1.5? Or do they change by platform (Win, Linux, etc).
    Is there knowledge about this out there? So, far I haven't been able to find any info about commonality.
    :-D

    You could simplify the question: what are the standard non-standard options?

  • Creating jvm-option with asadmin

    Hi,
    I am trying to create the following JVM option using asadmin:
    -Dproperties.dir=C:/Projects/Project1/myproperties
    so I used the following command:
    create-jvm-options "-Dproperties.dir=C:/Projects/Project1/myproperties"
    The command doesn't work. It ends up in the server as two properties:
    "-Dproperties.dir=C
    /Projects/Project1/myproperties"
    including the quotes ("). I also tried:
    create-jvm-options --"-Dproperties.dir=C:/Projects/Project1/myproperties" but it just gives the error:
    --"-Dproperties.dir : Option does not have an exact match
    Can anyone help?
    thanks
    Steve

    Configuring JVM Options
    To set JVM command-line options in the Administration interface:
    # In the left pane, click the application server instance name.
    # In the right pane, click the JVM tab.
    # Click JVM Options.
    # To add a JVM option, type it in the text field at the top of the screen and click Add.
    # To delete a JVM option, click the checkbox next to it and click Delete.
    # To edit a JVM option, edit the text in the JVM Option field and click Save.
    For information about specific JVM options, see http://java.sun.com/docs/hotspot/VMOptions.html
    Can you please try this and see if that works.

  • Jvm options

    Hello,
    I can't seem to get iPLanet 6.0 sp5 to take my JVM options. I have tried using the admin interface and editing the jvm12.conf specifically. The main thing I would like to get owrking is the -server option. However the logs always printout that the server is using the client VM. I know the VM supports this as I can run it from the command line on the server. I have other settings that I suspect are not being enforced as well.
    Is there a way to see the call that iPlanet uses to start the vm, either beforehand or in a log file? Has anyone been able to get the server option to work?
    I have some other things I need to get off my chest....
    Why is iPlanet so hard to use? How come it doesn't support the servlet spec 2.3 which is several years old when it's a SUN product?

    Hi Tim,
    Please refer to following docs to run the VM in server mode:
    http://docs.sun.com/source/816-6434-10/rn60sp5.html#1017482
    Its ok to let us know your feedback, can you elaborate and let us know what's hard to use and what things need to be improved.
    Servlet spec 2.3 support is planned in the upcoming 6.1 release of webserver.
    Thanks,
    Manish

  • Error: JVM option is invalid: -server

    We have downloaded the 'Oracle Application Server MapViewer 10.1.2 Kit and Quickstart' that was released on 10-January-2005.
    The start.sh script included in this kit to start OC4J is:
    #!/bin/sh
    #cd oc4j/j2ee/home;java -server -Xmx384M -Djava.awt.headless=true -jar oc4j.jar
    This errors with:
    The JVM option is invalid: -server
    Could not create the Java virtual machine.
    Note: The java version installed on the server is 1.4.2 and OS is IBM AIX 5.2L.
    The OC4J does start with the command:
    java -server -jar oc4j.jar
    Any thoughts on the option '-server' and is this required for running of mapviewer with the standalone version of OC4J?

    -server option is used to start jvm in server mode.
    in your case what's offending is probably the option -Xmx384M ( i think that option has different format on different jvm implementations).
    in any case, -server is not required to run mapviewer.

  • Jvm option "-d64" does not recognized by app. server

    Product: SunOne App Server v.7 Platform Edition
    It seems app. server does not respect jvm option -d64. I've set this option manually in server.xml file and also from management console. None worked. When I debug System properties from my web application it is listed as follows:
    sun.arch.data.model=32
    Anyone encounter this problem before? Should I set this option from another file or script?
    Thanks in advance.

    I would think using this capability would require that you are running on a Sparc 64 Solaris machine, and that you specified that Sun ONE should use your locally installed jsdk1.4 package for operation.
    Additionally, you would have had to install the supplemental 64 bit support for jsdk1.4 per instructions (http://java.sun.com/j2se/1.4.1/install-solaris-64.html#64bitinstall).
    Once this is done, the app server should recognize the "-d64" option.
    Sun Engineers please comment
    John Hogan

  • JVM option is invalid error

    I downloaded sqldeveloper on my linux desktop and tried to launch it as recommended in the documentation. I'm getting the following error:
    jvdernet@jvdernet-2:/usr/local/bin> sqldeveloper
    Oracle SQL Developer
    Copyright (c) 2006, 2007, Oracle. All rights reserved.
    The JVM option is invalid: -XX:JavaPriority10_To_OSPriority=10
    Could not create the Java virtual machine.
    Usage: java.bin [-options] class [args...]
    (to execute a class)
    or java.bin [-jar] [-options] jarfile [args...]
    (to execute a jar file)
    where options include:
    -cp -classpath <directories and zip/jar files separated by :>
    set search path for application classes and resources
    -D<name>=<value>
    set a system property
    -verbose[:class|gc|jni]
    enable verbose output
    -version print product version
    -showversion print product version and continue
    -? -help print this help message
    -X print help on non-standard options
    -assert print help on assert options
    What can I do to fix this?
    thanks
    Jay

    I set my env variables but it's still not working. One thing I noticed is the download for jdk 1.5 for linux doesn't look like the version I have on my windows machine. I just have a single file
    jvdernet@jvdernet-2:/usr/local/bin> ls jdk*
    jdk-1_5_0_13-nb-5_5_1-linux-ml.bin
    On windows it's a directory C:\Program Files\java\jdk1.50_05\...
    thanks,
    Jay

  • JVM options for remote debugging

    I'm run Tomcat 5.0.28 using service wrapper and i need help with set the required JVM options for remote debugging from ECLIPSE 3.0.0.

    Where can I find a complete list of available JVM options for WLS?
    For example -Dweblogic.security.SSL.protocolVersion is not listed anywhere
    That is NOT a JVM options as I just explained in your other thread - see that thread for details.
    JVM options
    That "-Dxxx" syntax means you are specifying a system property on the Java command-line when launching Java.
    That property can now be accessed in the Java app
    You can make up and use ANYTHING you want when you write your own apps - those command line entries will just get added to the standard/default System properties as I explain in your other thread.
    Consult the WebLogic documentation (or onliine help if WLS has such a thing) for info on the system properties that have been defined for WLS.

  • Please guide me to analyze GC log file for adjust JVM options.

    My application has error "OutOfMemory" and I've try to enable GC log, but I do not have idea for analyze GC log and adjust JVM options. Does any one can help me ?
    [My JVM options is]
    MEM_ARGS="-server \
    -Xms2g \
    -Xmx2g \
    -XX:NewSize=512m \
    -XX:MaxNewSize=512m \
    -XX:+DisableExplicitGC \
    -XX:ThreadStackSize=256 \
    -XX:MaxTenuringThreshold=0 \
    -XX:SurvivorRatio=1024 \
    -XX:PermSize=64M \
    -XX:MaxPermSize=64m"
    DEBUG_GC="-verbose:gc \
    -Xloggc:${SERVER_HOME}/GC/GC`date +%Y%m%d`.log \
    -XX:+PrintGCTimeStamps -XX:+PrintGCDetails \
    -XX:+PrintTenuringDistribution"
    GC_OPTIONS="-XX:+UseConcMarkSweepGC \
    -XX:+UseParNewGC \
    -XX:CMSInitiatingOccupancyFraction=60"
    [GC ]
    : 1572863K->1572823K(1572864K), 5.5275114 secs] 2096703K->1993925K(2096704K), [CMS Perm : 58781K->58774K(65536K)], 5.5280837 secs]
    86093.675: [GC [1 CMS-initial-mark: 1572823K(1572864K)] 1994583K(2096704K), 0.2800800 secs]
    86094.001: [CMS-concurrent-mark-start]
    86107.896: [Full GC 86107.896: [ParNew: 523839K->523839K(523840K), 0.0000862 secs]86107.896: [CMS86108.959: [CMS-concurrent-mark: 1.635/14.958 secs]
    : 1572847K->1572822K(1572864K), 4.9875946 secs] 2096687K->1994803K(2096704K), [CMS Perm : 58785K->58774K(65536K)], 5.0045622 secs]
    86113.478: [GC [1 CMS-initial-mark: 1572822K(1572864K)] 2096662K(2096704K), 0.5670275 secs]
    86114.047: [CMS-concurrent-mark-start]
    86155.856: [Full GC 86155.856: [ParNew: 523839K->523839K(523840K), 0.0001770 secs]86155.856: [CMS86157.153: [CMS-concurrent-mark: 1.592/43.106 secs]
    : 1572862K->1572823K(1572864K), 5.3308609 secs] 2096702K->1995505K(2096704K), [CMS Perm : 58782K->58774K(65536K)], 5.3315995 secs]
    86161.739: [GC [1 CMS-initial-mark: 1572823K(1572864K)] 1995553K(2096704K), 0.2858129 secs]
    86162.084: [CMS-concurrent-mark-start]
    86173.754: [Full GC 86173.754: [ParNew: 523840K->523840K(523840K), 0.0000846 secs]86173.754: [CMS86174.731: [CMS-concurrent-mark: 1.607/12.647 secs]
    : 1572845K->1572821K(1572864K), 5.0335458 secs] 2096685K->1996152K(2096704K), [CMS Perm : 58784K->58772K(65536K)], 5.0342192 secs]
    86179.361: [GC [1 CMS-initial-mark: 1572829K(1572864K)] 2096664K(2096704K), 0.5667548 secs]
    86179.929: [CMS-concurrent-mark-start]
    86207.515: [Full GC 86207.515: [ParNew: 523840K->523840K(523840K), 0.0000881 secs]86207.515: [CMS86208.915: [CMS-concurrent-mark: 1.519/28.985 secs]
    : 1572862K->1572822K(1572864K), 5.8271415 secs] 2096702K->1997059K(2096704K), [CMS Perm : 58780K->58772K(65536K)], 5.8277265 secs]
    86213.848: [GC [1 CMS-initial-mark: 1572822K(1572864K)] 2096662K(2096704K), 0.5999998 secs]
    86214.450: [CMS-concurrent-mark-start]
    86227.930: [Full GC 86227.930: [ParNew: 523840K->523840K(523840K), 0.0000894 secs]86227.930: [CMS86229.357: [CMS-concurrent-mark: 1.481/14.908 secs]
    : 1572835K->1572811K(1572864K), 5.7486918 secs] 2096675K->1998051K(2096704K), [CMS Perm : 58781K->58772K(65536K)], 5.7492990 secs]
    86234.182: [GC [1 CMS-initial-mark: 1572812K(1572864K)] 2096652K(2096704K), 0.5279800 secs]
    86234.712: [CMS-concurrent-mark-start]
    86278.178: [Full GC 86278.178: [ParNew: 523840K->523840K(523840K), 0.0000918 secs]86278.178: [CMS86279.540: [CMS-concurrent-mark: 1.551/44.828 secs]
    : 1572862K->1572814K(1572864K), 5.3631131 secs] 2096702K->1998905K(2096704K), [CMS Perm : 58780K->58772K(65536K)], 5.3636573 secs]
    86284.209: [GC [1 CMS-initial-mark: 1572815K(1572864K)] 2096654K(2096704K), 0.5131726 secs]
    86284.724: [CMS-concurrent-mark-start]
    86323.085: [Full GC 86323.086: [ParNew: 523839K->523839K(523840K), 0.0000774 secs]86323.086: [CMS86324.608: [CMS-concurrent-mark: 1.672/39.884 secs]
    : 1572862K->1572816K(1572864K), 5.7289521 secs] 2096702K->1999501K(2096704K), [CMS Perm : 58781K->58772K(65536K)], 5.7295485 secs]
    86329.353: [GC [1 CMS-initial-mark: 1572817K(1572864K)] 2096656K(2096704K), 0.5541898 secs]
    Thank you.

    My application has error "OutOfMemory" and I've try to enable GC log, but I do not have idea for analyze GC log and adjust JVM options. Does any one can help me ?
    [My JVM options is]
    MEM_ARGS="-server \
    -Xms2g \
    -Xmx2g \
    -XX:NewSize=512m \
    -XX:MaxNewSize=512m \
    -XX:+DisableExplicitGC \
    -XX:ThreadStackSize=256 \
    -XX:MaxTenuringThreshold=0 \
    -XX:SurvivorRatio=1024 \
    -XX:PermSize=64M \
    -XX:MaxPermSize=64m"
    DEBUG_GC="-verbose:gc \
    -Xloggc:${SERVER_HOME}/GC/GC`date +%Y%m%d`.log \
    -XX:+PrintGCTimeStamps -XX:+PrintGCDetails \
    -XX:+PrintTenuringDistribution"
    GC_OPTIONS="-XX:+UseConcMarkSweepGC \
    -XX:+UseParNewGC \
    -XX:CMSInitiatingOccupancyFraction=60"
    [GC ]
    : 1572863K->1572823K(1572864K), 5.5275114 secs] 2096703K->1993925K(2096704K), [CMS Perm : 58781K->58774K(65536K)], 5.5280837 secs]
    86093.675: [GC [1 CMS-initial-mark: 1572823K(1572864K)] 1994583K(2096704K), 0.2800800 secs]
    86094.001: [CMS-concurrent-mark-start]
    86107.896: [Full GC 86107.896: [ParNew: 523839K->523839K(523840K), 0.0000862 secs]86107.896: [CMS86108.959: [CMS-concurrent-mark: 1.635/14.958 secs]
    : 1572847K->1572822K(1572864K), 4.9875946 secs] 2096687K->1994803K(2096704K), [CMS Perm : 58785K->58774K(65536K)], 5.0045622 secs]
    86113.478: [GC [1 CMS-initial-mark: 1572822K(1572864K)] 2096662K(2096704K), 0.5670275 secs]
    86114.047: [CMS-concurrent-mark-start]
    86155.856: [Full GC 86155.856: [ParNew: 523839K->523839K(523840K), 0.0001770 secs]86155.856: [CMS86157.153: [CMS-concurrent-mark: 1.592/43.106 secs]
    : 1572862K->1572823K(1572864K), 5.3308609 secs] 2096702K->1995505K(2096704K), [CMS Perm : 58782K->58774K(65536K)], 5.3315995 secs]
    86161.739: [GC [1 CMS-initial-mark: 1572823K(1572864K)] 1995553K(2096704K), 0.2858129 secs]
    86162.084: [CMS-concurrent-mark-start]
    86173.754: [Full GC 86173.754: [ParNew: 523840K->523840K(523840K), 0.0000846 secs]86173.754: [CMS86174.731: [CMS-concurrent-mark: 1.607/12.647 secs]
    : 1572845K->1572821K(1572864K), 5.0335458 secs] 2096685K->1996152K(2096704K), [CMS Perm : 58784K->58772K(65536K)], 5.0342192 secs]
    86179.361: [GC [1 CMS-initial-mark: 1572829K(1572864K)] 2096664K(2096704K), 0.5667548 secs]
    86179.929: [CMS-concurrent-mark-start]
    86207.515: [Full GC 86207.515: [ParNew: 523840K->523840K(523840K), 0.0000881 secs]86207.515: [CMS86208.915: [CMS-concurrent-mark: 1.519/28.985 secs]
    : 1572862K->1572822K(1572864K), 5.8271415 secs] 2096702K->1997059K(2096704K), [CMS Perm : 58780K->58772K(65536K)], 5.8277265 secs]
    86213.848: [GC [1 CMS-initial-mark: 1572822K(1572864K)] 2096662K(2096704K), 0.5999998 secs]
    86214.450: [CMS-concurrent-mark-start]
    86227.930: [Full GC 86227.930: [ParNew: 523840K->523840K(523840K), 0.0000894 secs]86227.930: [CMS86229.357: [CMS-concurrent-mark: 1.481/14.908 secs]
    : 1572835K->1572811K(1572864K), 5.7486918 secs] 2096675K->1998051K(2096704K), [CMS Perm : 58781K->58772K(65536K)], 5.7492990 secs]
    86234.182: [GC [1 CMS-initial-mark: 1572812K(1572864K)] 2096652K(2096704K), 0.5279800 secs]
    86234.712: [CMS-concurrent-mark-start]
    86278.178: [Full GC 86278.178: [ParNew: 523840K->523840K(523840K), 0.0000918 secs]86278.178: [CMS86279.540: [CMS-concurrent-mark: 1.551/44.828 secs]
    : 1572862K->1572814K(1572864K), 5.3631131 secs] 2096702K->1998905K(2096704K), [CMS Perm : 58780K->58772K(65536K)], 5.3636573 secs]
    86284.209: [GC [1 CMS-initial-mark: 1572815K(1572864K)] 2096654K(2096704K), 0.5131726 secs]
    86284.724: [CMS-concurrent-mark-start]
    86323.085: [Full GC 86323.086: [ParNew: 523839K->523839K(523840K), 0.0000774 secs]86323.086: [CMS86324.608: [CMS-concurrent-mark: 1.672/39.884 secs]
    : 1572862K->1572816K(1572864K), 5.7289521 secs] 2096702K->1999501K(2096704K), [CMS Perm : 58781K->58772K(65536K)], 5.7295485 secs]
    86329.353: [GC [1 CMS-initial-mark: 1572817K(1572864K)] 2096656K(2096704K), 0.5541898 secs]
    Thank you.

  • HOWTO specify Runtime JVM options

    Hi,
    I would like to specify runtime JVM options like -Xverify:none, -Xms512m, -Xmx512m thru java code itself. How can i do this ?
    I do not want to run the application manually from the command prompt, but deploy it in a WebServer.
    Is it possible tp sepcify these options in any configurable XML file for Tomcat ?
    Thanks in advance.

    I would like to specify runtime JVM options like
    -Xverify:none, -Xms512m, -Xmx512m thru java code
    itself. How can i do this ?It's not possible to do this. These values have to be passed in on the command line. If your Tomcat or J2EE is not already started with these options, you can't change them later.
    And it wouldn't make sense, either. What if you deployed one webapp that said "512MB", and then another that said "64MB". Do you use the largest? the last? the sum? what?

  • Complete Garbage Collection JVM Options

    Could anybody tell me where can I find the complete list and description of the garbage collector options?
    Thanks
    Edited by: dimonv on Mar 9, 2009 4:48 AM

    dimonv wrote:
    Could anybody tell me where can I find the complete list and description of the garbage collector options?Depends on the JVM vendor and version.
    Did you mean to ask for this for the [Sun JVM|http://blogs.sun.com/watt/resource/jvm-options-list.html] ?

  • JVM options for WLS

    Where can I find a complete list of available JVM options for WLS?
    For example -Dweblogic.security.SSL.protocolVersion is not listed anywhere

    Where can I find a complete list of available JVM options for WLS?
    For example -Dweblogic.security.SSL.protocolVersion is not listed anywhere
    That is NOT a JVM options as I just explained in your other thread - see that thread for details.
    JVM options
    That "-Dxxx" syntax means you are specifying a system property on the Java command-line when launching Java.
    That property can now be accessed in the Java app
    You can make up and use ANYTHING you want when you write your own apps - those command line entries will just get added to the standard/default System properties as I explain in your other thread.
    Consult the WebLogic documentation (or onliine help if WLS has such a thing) for info on the system properties that have been defined for WLS.

  • Complete list of JVM Options

    Hello,
    Does anyone know where I can find a complete list of JVM options? I have seen a few lists, but they all are missing -DentityExpansionLimit, so I assume that they are incomplete.
    thanks

    Does anyone know where I can find a complete list of
    JVM options? I have seen a few lists, but they all
    are missing -DentityExpansionLimit, so I assume that
    they are incomplete.You can do it for a particular application.
    Track down every use of java.lang.System.getProperty()
    [use javap or a java decompiler]
    in all the classes used by the application
    and take note of the string argument passed in
    (which will contain the name of the system property).
    To get a list of classes used, run the application with the -verbose option.

Maybe you are looking for

  • How do I block messages and calls on the iPhone 5?

    Hey people, how do I block irritating message and calls on the iPhone?

  • Vlc doesn't play H264 movies (matroska) [Solved]

    Hi @all, back on arch with my laptop and I'm really enjoying the speed compared to debian! And now arch supports full encrypted installations it is the perfect distro for me again. Installation and configuring went smooth so far but now I have a litt

  • Exception while working with Tibco adapter for Tuxedo!!

    Dear friends,:-) Greetings! I am facing an exception while working with "Tuxedo Adapter". I have installed TIBCO Adapter for Tuxedo on my machine which has both bea_Client and Server. I am trying to do a PurchaseOrder POC, which is already given in o

  • How do I go about submitting an idea for an app?

    I have an idea that would benefit each and every iPhone, purchased, or in-store. It will be useful on every Mac with Bluetooth capability. How do I go about submitting my idea? Thank you kindly! <Edited By Host>

  • Multiple selection button is suppressed

    Hi SAP Gurus, Multiple selection button is suppressed for many t codes..what could be the reason for this issue? for ex:- article selection in mm43, me5a, etc. Attached the screenshot