Xms and Xmx parameters

Hi, on a windows machine with jdk1.3 I start oracle's oc4j(standalone) from commandline. I specify Xms and Xmx parameters. Hence;
java -Xms512M -Xmx512M -jar oc4j.jar
is the command line command.
But after I start the app server, when I look at the Window's task manager the java. exe has about 50M memory usage. Is there something wrong???
Thanks all.

The best option is to set it in setDomain.cmd/sh OR comEnv.cmd/sh depending on your WLS version, since even if you are starting your manage servers from commandline rather than using nodemanager, it will internally use this to set the environment.
However if you are using nodemanager, you might try "server start" tab for passing JVM arguments.
For windows service try the following link:
http://e-docs.bea.com/wls/docs103/server_start/winservice.html#wp1186212 ----> its for WLS10.3

Similar Messages

  • How can I set VM parameters except Xms and Xmx?

    I can set the Xms and Xmx as the following:
    <j2se version="1.4+" initial-heap-size="80m" max-heap-size="80m"/>
    but how can I set other VM parameter such as Xmn,XX:SurvivorRatio,and some which to special JVM(for example:JRockit)?

    There is a whole list ov vm-args considered "safe" by java web start listed in the developers guide at:
    http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/syntax.html#resources
    these can be set with the new arg to the j2se element, vm-args like this:
    <j2se version="1.5.0+" java-vm-args="-esa -Xnoclassgc"/>
    /Andy

  • JVM Java heap space Error || even with -Xms- and -Xmx commands

    hi all, i got a problem by allocating a very great boolean array.
    first of all, here is my testcode:
    public static void main(String[] args) {
              boolean[] testfield = new boolean[70000000];          
              while(true){
              //NOP     
         }as you see, i try to allocate an array with 70.000.000 boolean values - as 1 boolean may be represented as at least one physical bit we calculate the total amount of needed RAM-Space:
    70.000.000 bit / 8 = 8750000 byte
    8.750.000 byte = 8.75 MByte
    My System ist WinVista Ultimate 64-bit running on a Quadcore T2200 with 2GB-DDR3 RAM
    Looking in my Vista Ressourcemanager shows, that eclipse.exe reserves about 1.023 Mbyte....
    As IDE I use eclipse
    my eclipse.ini looks as follows:
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    256M
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Xms512m
    -Xmx1024m
    -XX:PermSize=512mby using following VMCommand "-XX:+PrintGCDetails" and running the above code the output displays:
    [GC [DefNew: 180K->63K(960K), 0.0008311 secs][Tenured: 43K->107K(4096K), 0.0060371 secs] 180K->107K(5056K), 0.0069249 secs] [Times: user=0.00 sys=0.00, real=0.01 secs]
    [Full GC [Tenured: 107K->105K(60544K), 0.0044835 secs] 107K->105K(61504K), [Perm : 17K->16K(12288K)], 0.0045553 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
         at termain.main(termain.java:15)
    Heap
    def new generation   total 4544K, used 163K [0x246a0000, 0x24b80000, 0x24b80000)
      eden space 4096K,   4% used [0x246a0000, 0x246c8fe0, 0x24aa0000)
      from space 448K,   0% used [0x24aa0000, 0x24aa0000, 0x24b10000)
      to   space 448K,   0% used [0x24b10000, 0x24b10000, 0x24b80000)
    tenured generation   total 60544K, used 105K [0x24b80000, 0x286a0000, 0x286a0000)
       the space 60544K,   0% used [0x24b80000, 0x24b9a420, 0x24b9a600, 0x286a0000)
    compacting perm gen  total 12288K, used 16K [0x286a0000, 0x292a0000, 0x2c6a0000)
       the space 12288K,   0% used [0x286a0000, 0x286a41c0, 0x286a4200, 0x292a0000)
        ro space 8192K,  62% used [0x2c6a0000, 0x2cba2ba0, 0x2cba2c00, 0x2cea0000)
        rw space 12288K,  52% used [0x2cea0000, 0x2d4e88e0, 0x2d4e8a00, 0x2daa0000)so can anyone tell me please, how i manage to allocate bigger arrays? or where at least is the problem?
    Originally i was thinking like that way: Integer.MAXVALUE = (2^32)-1
    => biggest index an array can have
    => biggest allocation possible with ints weights (((2^32)-^1)/8)/1000*1000 = (round) 537 MByte < 2GByte => everything fine .... but it seems like not :-(
    When i try to allocate 60.0000.000 it works fine....but that is far not enough :-&
    thank you very much for your helping answers!

    The Sun Java virtual machine stores booleans as bytes, not bits, so for an array of 70 million booleans you need 70 million bytes, plus 8 bytes for the object header, and 4 bytes for the array length.
    I suspect that your eclipse.ini controls the JVM running the Eclipse IDE, not the JVM running your application. Note that in the -XX:+PrintGCDetails output at the end, it shows you running out of memory with 4MB of young generation and 60MB of old generation. That's the default configuration, as if you hadn't specified -Xms and -Xmx.
    The array of 60 million booleans only requires 60 million bytes (plus overhead), which fits in the default old generation.
    I think you need to put the -Xms and -Xmx in the same place you put the -XX:+PrintGCDetails, since that does seem to display information about the JVM running your application, not the JVM running Eclipse.

  • Why are -Xms and -Xmx limits so small?

    On a Win XP machine with 3GB of installed memory, the limits for -Xms and -Xmx are 1GB. My knapsack program works for small inputs (< 20 objects). But for real world problems it crashes immediately with an out-of-memory error. What possible harm could it do to allow a Java user to increase -Xms and -Xmx to 2 or 3 GB, or even larger? I would not care if it thrashed, if it finally came up with a good answer.

    CHE22 wrote:
    CHE22 wrote:
    On a Win XP machine with 3GB of installed memory, the limits for -Xms and -Xmx are 1GB.
    tschodt wrote:
    How did you arrive at that?
    By reading this:
    http://java.sun.com/j2se/reference/whitepapers/memorymanagement_whitepaper.pdf.
    I guess you are referring to
    Automatic Selection of Collector, Heap Sizes, and Virtual Machine
    A server-class machine is defined to be one with
    • 2 or more physical processors and
    • 2 or more gigabytes of physical memory
    13 Ergonomics - Automatic Selections and Behavior Tuning Sun Microsystems, Inc.
    This definition of a server-class machine applies to all platforms, with the exception of 32-bit platforms running a version of the Windows operating system.
    On machines that are not server-class machines, the default values for JVM, garbage collector, and heap sizes are
    • the client JVM
    • the serial garbage collector
    • Initial heap size of 4MB
    • Maximum heap size of 64MB
    On a server-class machine, the JVM is always the server JVM unless you explicitly specify the -client
    command line option to request the client JVM. On a server-class machine running the server JVM, the default
    garbage collector is the parallel collector. Otherwise, the default is the serial collector.
    On a server-class machine running either JVM (client or server) with the parallel garbage collector, the default initial and maximum heap sizes are
    • Initial heap size of 1/64th of the physical memory, up to 1GB. (Note that the minimum initial heap size is 32MB, since a server-class machine is defined to have at least 2GB of memory and 1/64th of 2GB is 32MB.)
    • Maximum heap size of 1/4th of the physical memory, up to 1GB.
    Otherwise, the same default sizes as for non-server-class machines are used (4MB initial heap size and 64MB maximum heap size). Default values can always be overridden by command line options. Relevant options are shown in Section 8.And you missed that it said default.
    And by adding any small integer to 1 in -Xms1G.Show us exactly what you specified, do you realize that-Xms11Gmeans 11 GB, much larger than 32-bit Windows can handle.

  • Proper use of JVM XMs and XMx settings

    I've configured Tomcat to run with -XMs1024m -XMx1024m, and am interested to know GC performs when the -XMs and XMx are the same value.
    Would it generally be better to have a lower -xms value?

    The -XMs only tells the VM how much memory to initially allocate, and doesn't have any correlation with normal operation of GC. I've used -XMs in the past when I know my memory requirements are pretty large, and that way will keep the VM from continuing to dynamically allocate more and more memory up to the XMx setting.

  • Parameters Xms and Xmx

    Hi guys,
    I put the parameters "-server -Xms768m -Xmx1024m" in java options from my instance at Oracle Application 10g and don´t work.
    The instance started, but the parameters don´t work.
    I have Linux with Oracle Application Server 10g.
    What can be?
    Regards,

    I did some testing with an OC4J instance set to a 256 minimum and 512 maximum. When I restart the instance the memory hangs around 65MB. When I start increasing the load on the server the memory increases rapidly to the 128 range, but not to 256. Once I got to 256 I get OutOfMemory exceptions.
    I think the other responders may have it right when they say the JVM is not going to just allocate a huge chunk of memory when it has no use for it. I have seen other cases where the JVM acts this same way with Oracle's CMSDK nodes. Even if you set mins and maxs, memory will only get used when it is needed.

  • What do -Xms and -Xmx do?

    I know what they are supposed to do, but am unable to see any tangible results from setting them...

    On my machine they do exactly what they're supposed to...that is, to set the initial and max memory available for a program. I wrote two programs to test this :
      //this shows how much memory is available at start up
      public void main(String args[]) {
        System.out.println(Runtime.getRuntime().freeMemory());
      //this outputs how many KB memory the program sucked before crashing.
      public static void main(String args[]) throws Exception {
        Vector vec = new Vector();
        int i = 0;
        try {
          while (true) {
            vec.add(new byte[1024]);
            ++i;
        } finally {
          System.out.println(i);
        }When I run the first program w/o -x set, I get around 1.5 mb (1760896 bytes); when I invoke it with -Xms16m it returns 16 mb (16440960 bytes). The second program crashes at around 64mb (63633 to be exact). Invoking it with -Xmx16m crashes it at 16 mb, as expected (15813).
    Both -Xmx and -Xms are unsupported options...thus their effects are implementation-dependent. It's thus possible that your implementation doesn't support them. (I'm running this on Win2000 using Sun's JVM 1.4.1_01-b01.)
    The only other thought that occurs to me is that you're sending the wrong parameters...-Xms16 means you want to set the initial stack to 16 bytes, obviously something that would have little effect. -Xms16k would be 16kbytes, -Xms16m is in megabytes.

  • Java-options, What is the difference between the parameters xms and ms

    Hi,
    I have a problem with deploy bpel process , I get an error "java.lang.OutOfMemoryError: PermGen Space" several sources of information tells me that I have to change some parameters in the file "<ORACLE_HOME> / opmn / conf / opmn.xml" but I doubt some of the parameters, what is the difference between Xms and ms?
    And what is the value of the parameter MaxPermSize, which I must also change.
    Thanks
    Gustavo

    Did you ever find out what the difference between the two parameters were!? I have the same questions. Default for opmn.xml = "-server -XX:MaxPermSize=128M -ms512M -mx1024M ...." In attempting to maximize performance and accessible memory, Oracle docs identify adding/modifying "-server -Xmn1228m -XX:+AggressiveHeap -Xms2048m -Xmx2048m -XX:MaxPermSize=128M -ms2048M -mx2048M...." But I question if Xms and ms are really the same parameter or not?
    Thanks in advance...
    Steve

  • Option -splash and -Xmx result in "Unable to launch JVM" error

    Hello everybody,
    we have a severe problem with launching our Java application using the "-splash:" and "-Xmx" command line options for which we cannot find any solution in the web. Our application needs a lot of heap space, so we usually set "-Xmx=920M". Usually, we are working with Java 6 and use the "-splash:" option to show a splash screen while the application is loading. In some cases, we get an "Unable to launch JVM" error now. This happens only on particular customer systems (servers as well as desktop machines) and the only solution is to decrease the maximum heap size for a couple hundred megabytes. The latter is usually unacceptable since our application requires a lot of heap memory and the machines do have more than sufficient memory. The other option is to completely remove the "-splash:" option, but then there is of course no splash screen anymore.
    Unfortunately, we are unable to track the error back and to figure what exactly is going wrong. Does anyone of you have any hints how to debug or analyze the error? Our assumption is that something is wrong due to memory partitioning which leads to unsufficiently large memory partitions to allocate the required heap memory by the JVM.
    Any ideas?
    Thank you very much.
    Regards
    Timo Rohrberg
    Software Developer, initplan GmbH

    910396 wrote:
    This happens only on particular customer systems (servers as well as desktop machines) Red flag: it is not consistent, in other words it is system dependent. It is already hard for you to diagnose such an occurrence, I wouldn't expect anything more by asking in a forum. At least you have SOME way of doing some more diagnosing.
    I'm sorry, but you'll have to dive in deep. Figure out what update versions of Java the failing machines are running. Which OS. Which processor architecture. Etc. See if there is a common factor involved. If not, hunt through release notes of newer JDKs to see if any of them mention something related to the splash screen and if you find something, let the client attempt an update of the JDK on such a failing machine to see if the problem is remedied. If it is windows, try running with the server VM (java -server) in stead of the default client VM, if you are not already doing that.
    And yeah if all that fails and nobody else has something to add, I'm sorry to say that Oracle support will be your next logical step.

  • How to open a page from a Form and pass parameters to the form on that page

    I found a similar example on this forum, but it did not work for me:
    declare
    l_names owa.vc_arr;
    l_values owa.vc_arr;
    i number;
    begin
    PORTAL.wwpro_api_parameters.retrieve(l_names, l_values);
    FOR i in 1..l_names.count
    LOOP
    htp.p(l_names(i) || ' ' || l_values(i));
    END LOOP;
    end;
    By using this method i get the parameters for the Form, like the session ID, but not the parameters for the Page that the form is displayed in.
    Another method I tried:
    To open a Form from a Form and pass parameters works fine like this:
    --In the After processing page PL/SQL event.
    declare
    v_id number;
    blk varchar2(10):='DEFAULT';
    Begin
    v_id:=p_session.get_value_as_number (p_block_name=&gt;blk,p_attribute_name=&gt;'A_ID');
    if v_id &gt; 0 then
    htp.formOpen('PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=2649500412&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=ID&p_arg_values='||to_char(v_id),'post');
    htp.formSubmit(NULL,'Upload Files');
    htp.formClose;
    end if;
    End;
    But I want to open a Page containing the Form instead of just opening the Form. Is this possible to open a Page and pass paramters to the page, and then let the form inside the Page access the passed paramters. The reason for this is that a Form cannot be based on a page template, or can it? When opening the form i want to keep the left menu, which I can if it is a page based on my template with the left menu.
    Best regards
    Halvor

    Hi,
    You can do this by calling the url of the page with the form. You can then use p_arg_names and p_arg_values to pass parameters. In the called form you can get the value from p_arg_names and p_arg_values and assign it to the form field.
    You can call this code in the success procedure of the calling form.
    declare
    v_id number;
    blk varchar2(10):='DEFAULT';
    v_url varchar2(2000);
    Begin
    v_id:=p_session.get_value_as_number (p_block_name=>blk,p_attribute_name=>'A_ID');
    v_url := <page_url>;
    if v_id > 0 then
    call(v_url||'&p_arg_names=id&p_arg_values='||v_id);
    end if;
    End;
    In the called form in "Before displaying form" plsql section write this code.
    for i in 1..p_arg_names.count loop
    if p_arg_names(i) = 'id' then
    p_session.set_value(
    p_block_name => blk,
    p_attribute_name => 'A_ID',
    p_value => p_arg_values(i)
    end if;
    end loop;
    This code picks up the value from p_arg_values and assigns it to the form field.
    Hope that helps.
    Thanks,
    Sharmila

  • Exporting and importing parameters

    Hi,
    Can any one explain how the exporting and imopting parameters work in case of function call.
    for example in the folowing code:
    CALL FUNCTION ‘DOWNLOAD’
         EXPORTING
              FILENAME     = <default file name>
              FILETYPE     = <default file type>
              MODE          = <create new or extend>
         IMPORTING
              FILESIZE     = <size of file in bytes>
         TABLES
              DATA_TAB     = <internal table to transfer>
         EXCEPTIONS. . . .
    Do we have to specify the importin parameters also in the program, and if yes what is the use of specifying them.
    Thanks,
    Dhiraj

    You need to fill only export parameter and tables parameter
    CALL FUNCTION ‘DOWNLOAD’
    EXPORTING
    FILENAME = <default file name> -> specify local file name
    FILETYPE = <default file type> 'ASC'
    MODE = <create new or extend> comment mode
    IMPORTING -> comment import parameters
    FILESIZE = <size of file in bytes> comment
    TABLES
    DATA_TAB = <internal table to transfer> -> give internal table
    EXCEPTIONS. . . . uncomment all exceptions
    this FM will download the data from internal table data to local file as like.txt or .xls
    Thanks
    Seshu

  • What are the names and the parameters of the SSIS reports

    what are the names and the parameters  of the SSIS reports
    (delivered with and included in the SSMS)
    to navigate from my reports to the build in reports
    it's necessary to know the reportname and the parameters.
    I want to "combine" respectively want to navigate
    from custom reports (works excellent) to the 5 build in reports
    please have a look at the attached picture and in particular
    to the blue arrow.SSIS_ReportsNavigation
    thank you for providing an answer or a hint.

    to navigate from my reports to the build in reports
    Those integrated reports in SSMS are not hosted in SSRS, so there is no URL available where you can navigate to.
    The reports run in client side rendering mode = RDLC.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Mail Adapter - Dynamically maintaining To and From Parameters

    Hi all,
    I am using the mail adapter as receiver in my scenario where i need to set up the TO and FROM parameters dynamically in the adapter configuration. Can any body please suggest how to do that?
    Thanks
    -Kulwant

    Kulwant,
    Did you gone thru this link?
    http://help.sap.com/saphelp_nw70/helpdata/EN/6b/4493404f673028e10000000a1550b0/content.htm
    use the below code
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/Mail","THeaderTO");
    String to_add = "[email protected]"
    conf.set(key, to_add);
    return ""; 
    raj.
    Edited by: Raj on Oct 29, 2008 3:55 PM

  • Difference between Import and Export parameters in Function Module

    Hi All,
    I am unclear about the import and export parameters, when i create a function module. Can anyone explain abt this. However when i call the function module in any program the import parameters in Function module are displayed as exporting in program amd the export parameters as importing.
    Any help on this would be appericiated.
    Shejal.

    HI,
    Import parameter in FM is the value u provide to FM for processing.
    export is the value u get from FM after processing.
    when u call a FM in a progam the import parameter will appear as Export bcos u r giving value to the FM.
    and u r getting value from FM in import parameter(bcos u r importing).
    rgds,
    latheesh
    Message was edited by: Latheesh Kaduthara

  • Import and export parameters of an FM are passed by value---why?

    Q]      By default the import and export parameters of an FM are passed by value---what is  the advantage of this system?

    Hi,
    Import and export parameters are, by default, passed by value. However, they can also be passed by reference. Tables parameters can only be passed by reference.
    Pass by reference means, passing the address itself rather than passing the value.
    I guess passing by value is easier and advantageous

Maybe you are looking for