Changing default Java launch parameters

Hi,
I experienced the "unsufficient memory" error several times and found the -X java launch parameters.
The default settings are :
-Xms 1048576 bytes
-Xmx 67108864 bytes
and the minimum size to launch java is 262144 bytes
I tried to change these parameters without specifing them on the command line.
1. at Shell level : Use alias to add the -Xms and -Xmx parameters.
2. at binary level :Search the default values location in the java binary file and change them.....not experienced yet.
Is there a mechanism or a properties File that can be update to change the default parameters ?
Alex

Your best bet is by using an alias at the Shell level and use the alias only with those programs that need the extra memory. I don't think there is any config file that you can use to change the default but even if there is, it would be foolish to mess around with it.
V.V.

Similar Messages

  • Change "Default Java for browsers"

    Hi everyone,
    I am using Java 6 standard edition, update 15 in Windows 7 professional 64 bit. For some reasons, I need to change value in Java Control Panel->Advance->Default Java for browsers which sets to Microsoft Internet Explorer. But I can't because it appears in disable state (The checkbox looks grey).
    See picture at http://bit.ly/9JQumJ
    Please help me.
    Thanks in advance.
    Edited by: tujthevux on Oct 16, 2010 3:56 PM

    In Internet Explorer, go to Tools -> Manage Add-Ons and scroll down to Sun Java Plug-In.
    db

  • How do you change default java logo in JOptionPane?

    I want to know how do you change the icon(the java logo in the title bar) for the JOptionPane box. I am using a swing interface. I can change the icon of the main frame but not of the JOptionPane.
    for the main frame i have used:
         Toolkit kit = Toolkit.getDefaultToolkit();
         Image img = kit.getImage("mypicture.gif");
         setIconImage(img);
    Toolkit is part of java.awt package.
    thanks

    here was a discussions about that
    http://forum.java.sun.com/thread.jsp?thread=120724&forum=57&message=316526

  • Changing Java startup parameters

    Hello all
    I am trying to modify a startup parameter from its default value:
    -DrootDir=c://GDS//Configurations//
    I am doing this using the Config tool. I save the change and then I restart the cluster.
    When I check the developer trace of the server from the MMC I see that there is no change in the startup parameters. Of course the same is true within my Java code - System.getProperty(rootDir) still has the default value.
    When I restart the Config Tool and view the startup parameters they are as I edited them previously, ie. they are the new values.
    What do I have to do to make the change stay in place?
    Thanks
    Bill

    Hi Bill,
    see Karsten's answer in Changing the JDK - I think this should do the trick.
    Hope it helps
    Detlev
    PS: ... and if, please consider rewarding points. Thanks in advance!

  • Why can't change default cipersuits of JSSE by java system property?

    I am using jdk1.5.0_17,Now I am trying to change default ciphersuits of JSSE by java system property,so all code can be kept unchanged.In JSSE Reference Guide I know default ciphersuits can be customized by https.cipherSuites system property.I run my program by java -Dhttps.cipherSuites=SSL_RSA_WITH_RC4_128_MD5 myProgram
    but it doesn't work.the default ciphersuits of jre are always used.I am not able to change it.
    any comments? your help will be appreciated.

    Well that only works with HTTPS, i.e. with URLs and HttpsURLConnections. If you're using Sockets directly you have to use the API.

  • How to change the java control panel and the default java in windows.

    Hi,
    Please help on the above problem. I need the answer urgently.
    I have two java version 1.4 and 1.5. I first installed the java version 1.4.2_06 and then 1.5.0_19.Now the default java is 1.5.
    Now I want to chang the java settings to 1.4 by changing the envioronment variable (classpath,path,java_home)
    C:\Program Files\Java\jdk1.5.0_09;C:\j2sdk1.4.2_06
    C:\Program Files\Java\jdk1.5.0_09\lib;C:\j2sdk1.4.2_06\bin
    C:\Program Files\Java\jdk1.5.0_09\bin;C:\j2sdk1.4.2_06\bin
    But after setting these does not solve the problem. The java control panel which appears is the same what was appearing for java 1.5.
    I want to see the control panel for 1.4.2_06.
    Thanks for your help.
    Regards,
    Sarita

    sarita2320 wrote:
    ..Please help on the above problem. I need the answer urgently. ...Is it still urgent?
    When I opened your post and saw that line, I immediately moved it to the 'last in line' of a whole bunch of other stuff I did not have time to look at immediately. Now that all that other stuff that did not bore me with someone else's time constraints is out of the way/taken care of, I've returned to your post.

  • Java runtime parameters

    Hi,
    Does anyone know how to programmatically set the java-runtime-parameters?
    I need to set them to: "-classpath c:\jar\test.jar"
    My goal is to access test.jar thru the ActiveX Bridge, and test.jar is not inside the "applet" folder. Note: ActiveX bridge uses the java plug-in which has a default path to the applet folder, I need to programmatically set a java-runtime-parameter "-classpath" to c:\jar\test.jar...
    (I know that you can set the java-runtime-parameters thru control panel - java plug-in, but this will not work for what I am doing, I need to do it on the fly programmatically).
    Gene.

    After Java VM is launched, I don't think it is possible to change the classpath onfly. If you goal is to load test.jar on fly, you can always rely on classloader to do it. You can make your own classloader and let it to download and define the class you need.
    -Xiaobin

  • Java Runtime Parameters patch

    I currently have a signed applet which uses more than 96MB. To solve this obstacle I want to increase the memory heap. Is there any way, from a signed applet, to alter the Java Runtime Parameters? Ofcourse the user can alter the parameters but I want to take that trouble out of his hands. I am hoping to run a small "patch-applet" which adds the "-Xmx xxx" parameter to the JRE.

    After Java VM is launched, I don't think it is possible to change the classpath onfly. If you goal is to load test.jar on fly, you can always rely on classloader to do it. You can make your own classloader and let it to download and define the class you need.
    -Xiaobin

  • Change default VM from "client" to "server"

    Hi,
    By default, java uses the "client" VM on my system, as you can see:
    java -versionjava version "1.6.0_01"
    Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
    Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)
    I've made the server VM available by copying it from the SDK to the JRE's folder, though:
    java -server -versionjava version "1.6.0_01"
    Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
    Java HotSpot(TM) Server VM (build 1.6.0_01-b06, mixed mode)
    What I would like to do, is set the server VM as the default VM. This is on Windows Server 2003 (which I use as a desktop), so I've gone to the control panel -> java -> java tab -> view java applet runtime settings -> added "-server" to the java runtime parameters. AFAICT this is only for applets though, and the java control panel doesn't contain anything to change runtime parameters for my desktop applications (e.g. netbeans, azureus).
    What's the correct way to change the default VM? I'm interested in doing this on both Windows (2003) and GNU/Linux (Debian).
    Thanks!

    I figured out how to change it, posting it here in case anyone else wants to do this.
    You simply need to find the file "jvm.cfg" and put this line above all others: "-server KNOWN" (no quotes of course).
    On Debian GNU/Linux with Sun Java 1.5.0, the file in question is at /etc/java-1.5.0-sun/jvm.cfg.
    On Windows, somewhere in c:\program files\java.
    Edit: by the way, you can't have a blank line between the comments and the statements - this will give you an error.
    To test if it worked, run "java -version" - it should say "[...] Server VM [...]".

  • How to change default FCoE QoS class - Nexus 5020

    I see that on a Nexus 5020, the default FCoE QoS class is 50%. I am not using FCoE so I would like to adjust this value to 0%. I switch complains and says I can't change default values. How should I go about getting around this to eliminate the FCoE queue and give 100% BW to default? Thanks.

    No. The default classloader is a builtin classloader in
    the JRE. You can use other classloaders.
    The java.net.URLClassLoader is provided in
    the JDK. That's the only one. Otherwise you
    should subclass ClassLoader and implement
    the loadClass method (f.i.
    loadClass("my.program") {
    String file="my.program".replace('.','/') + ".class";
    // find the file in classpath
    // read the class file in a byte[]
    return defineClass(byte[]);
    although this is not the advised way to do it. Search the web for how to implement a classloader directly.

  • Help - I cannot set the Default Java for Browsers

    Hello:
    I'm running Win 7, the Home Premium, 64 bit flavor. I have IE 8 and FF 3.5.8 installed. FF is the default browser. I've installed Java and when I go to the test page: http://www.java.com/en/download/help/testvm.xml
    I get a message which says: "Something is wrong. Java is not working."
    HOWEVER, if I open a command prompt and type java -version, I get this:
    C:\Users\dogzilla>java -version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
    Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode)
    So I went to the control panel app, the advanced tab, and expanded the node for Default Java for Browsers. I have 2 problems.
    1. The checkbox for Microsoft Internet Explorer is greyed out; I cannot change any settings here at all.
    2. I checked the checkbox for Mozilla Family. Then, when I click OK, I get an error message which states:
    "Unable to change browser settings. Please check that Mozilla or Firefox or Netscape is properly installed on the system and/or that you have sufficient permissions to change system settings."
    Since I'm writing this message to the forum using FF, I'm going to guess that I have the browser installed correctly. So that leaves me with a permissions problem -- which I don't doubt. I have no idea where to start looking though. Especially considering I can run the files in the bin directory from a command line without any problems.
    Does anyone know how I can solve the two problems I described in this thread? Suggestions are greatly appreciated.
    Thanks!

    Thanks for the reply!
    I tried running as admin and no luck. Still experiencing the same problems.
    I've did some more reading (much more in fact for what this problem should be worth) and other forums mention that on 64 bit Windows systems, both the 32 bit and 64 bit JRE need to be installed.
    When I was running Win XP, I could just download the SDK, create an environment variable, and I was good to go. Now, it looks like if I just install the SDK, I need the JRE plugin download for just the browsers -- what a ridiculous waste/duplication!
    Thanks again for your help.

  • To make the variant default when launching transaction VT01N

    My SAP is ECC6, I created a variant by following the procedure below:
    1. Go to transaction SE38.
    2. Enter program 'SAPLV56L', then select 'Variants' and click 'Change'.
    3. In the Variant field, enter the variant name you will be using, then press Create.
    4. Click the 'Attributes' button.
    5. In the 'Delivery Date' line. Select the 'D' type of variable in the 'Selection variable' column.
    6. Then select value in the 'Name of Variable' column, in the 'Current date' variable enter 'I' in 'I/E' column and 'EQ' in 'Option' column and press enter.
    7. Write a short text in the Meaning field and save the variant.
    8. Check the variant in transaction 'VT01N' and it must have the current date as the default date.
    My question is how can I make the variant that I created to default in transaction VT01N?
    Is this possible to setup in transaction SU3? If yes, how?
    Or in transaction SHD0?
    Thanks in advance for your replies.

    Hi,
    You can make it default by parameter ID
    Go to transaction code SU01
    Enter user ID and click on change icon
    Go to parameters tab
    Enter *parameter ID as TSV  and enter parameter value as your created variant* XYZ
    Save
    Now when you run VT01N this variant will appear as default variant
    Kapil

  • How to set JRE 1.5.0_07 as default Java from the cmd line in Windows

    Hi All,
    We are currently in the process of upgrading our company to IE8. As MS JVM is incompatible we need to remove it.
    However, once we have done this JRE 1.5.0_07 is not the default version of Java any more for IE8.
    My question is - Is there a command line switch to set set JRE 1.5.0_07 as default Java from the cmd line in Windows. ie the setting in Java Control panel where you would tick Internet Explorer?
    Thanks in advance!

    This is to confirm a similar issue. Here is the scenario:
    We are currently using IE 6 and looking forward to upgrade to IE 8. Our current Java version is: J2RE 1.5.0_16.
    When updating from IE 6 to IE 8 with J2RE 1.5.0_16 on a test workstation, we get the following error from the Java testing website (http://www.java.com/en/download/help/testvm.xml): "load: class testvm2/Main.class not found."
    Workaround :
    -> Change Java JRE Network Settings in Control Panel to "User proxy server : xxx.xxx.xxx.xxx:xx"
    We are using an autoconfig.pac file and it seems IE8 can't parse the settings to JRE to go through the proxy.
    Please advise if you have a fix for the autoconfig.pac file.

  • Upgrade default java version in Solaris 8?

    I have Solaris 5.8 running on sun blade system. Default Java version is 1.2.2 and user need it to upgraded to latest version of Java so, I installed jre1.6.0 (combination of 32-bit install and 64 bit install). Now I can't point solaris to look at the newly installed java version. I have tried to change the path variable in .cshrc but it is readonly to root and group is deamon. I also tried changing the symbolic link from /usr/java to /usr/jre1.6.0 but it is still looking at default version of java1.2.2.
    I need help as I don't know much about Solaris to upgrade this java. Any help or guidance is greatly appreciated.
    Thanks,
    solaris_newbee

    After installing, you need to update the '/usr/java' sym link to point to your new root installation. For example, I installed jdk1_5_16 at /usr/jdk/jdk1.5.0_16/ and then added this symlink:
    ln -s /usr/jdk/jdk1.5.0_16/ /usr/java
    You may need to remove the symlink that is already there before it will allow you to successfully create the new one.
    There are several other dependent symlinks in /usr/bin that use /usr/java, but you only have to update /usr/java.
    From one noob to another.

  • I have changed default language in the program & have set Language & region in system preferences. My Word (Mac2011) keeps on changing the default language to US english every time I check. Please help!

    I have changed default language in the program & have set Language & region in system preferences. My Word (Mac2011) keeps on changing the default language to US english every time I check. Please help!

    If you're having trouble making changes to files that are inside your home folder (represented by a house icon in the sidebar of a Finder window), or if you can't get changes to the settings of an application to stick, then please see below.
    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Triple-click anywhere in the following line on this page to select it:
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR..; sudo chown -R $UID:staff ~ $_; sudo chmod -R u+rwX ~ $_; chmod -R -N ~ $_; } 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take a few minutes to run, or perhaps longer if you have literally millions of files in your home folder. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
    Boot into Recovery. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password dialog will open. You’re not going to reset a password.
    In the dialog, select the startup volume ("Macintosh HD," unless you gave it a different name) if it's not already selected.
    Select your username from the menu labeled Select the user account if it's not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

Maybe you are looking for