How to increase memory associated to was

Hi all;
During our development period, we always meet with ' out of memeory ' error when we are debugging.
Is there any place for us to set memory for was ?
Thanks

Hi Jianhong,
The root cause of OutOfMemory error can be different though uaually it can be solved by increasing J2EE Server
MX size. To increase MX size execute J2EE ControlTool, click on the instance and select your server(s). On the right frame you will see Java settings tab.  you can adjust MX parameters as follows:
-Xms1024M
-Xmx1024M
-XX:MaxNewSize=192M
-XX:NewSize=192M
-XX:MaxPermSize=256M
-XX:PermSize=256M
Also set "Max Heap Size" to the same value (1024).
Then you'll need to restart you J2EE server to activate paramters. However if you have less then 2048 Mb of RAM,I would go with 512M settings fro teh MX/MS. Otherwise your system may go into swapping.
Regards,
Mike

Similar Messages

  • How to increase memory for building project using ant in ECLIPSE

    Hi All,
    for all java projects and java applications in eclipse i am giving -Xms and -Xmx to increase heap memory.
    But the same failed when i run ant. it says Out of Memory Error.eventhough i had 1GB ram in system.
    How to increase memory for Building through ANT.
    Thanks,
    J.Kathir

    even if this is not a eclipse forum
    In the package explorer view or navigator view right click on the build file select "Run as / Ant Build ...". On the JRE Tab you can enter the VM Aguments like -Xmx512m
    Consult the java dokumentation how to set the memory of the jvm.

  • How to increase memory allowed for an application

    Before in OS 9 and below we can expand the quantity of memory for an application, we can't do same in OS X.
    OS X is able to set himself the amount of memory for an application. This seems to work but I think there is a limit sets by OS X.
    My question is how to increase this amount of memory ?
    I tried to increase it in terminal using "ulimit -d unlimited" but this is not working enough.
    I use to do calculation with matrix systems and iterations in Mapple software but on my iMac with 4 GB of RAM memory, when application reaches 450 MB, I get a memory error message. Activity monitor at same time says there is more than 2 GB free !
    Has somebody a solution to free this limit, even for a small time or for only an application ?
    Thanks for your help.

    The full message is :
    "Kernel connection has been lost. The kernel returned the following message :
    Execution stopped : Memory allocation failed.
    Please sea ?alloc for more detail.
    You should save this worksheet and restart Maple
    Executing commands in Mapple requires a connection to the Maple kernel.
    Firewalls have been known to cause problems with kernel connections in Maple. Please ensure that any firewall software is configured to allow Maple to create connections to the kernel. Consul the FAQ for more information."
    I checked the firewalls of OS X, they are shutdown and no restrictions seems to be set for processes.
    We are expecting for a new version of Maple with some modifications due to Snow.

  • How to increase Memory and Java Heap Size for Content Server

    Hi,
    My content server is processing requests very slowly. Over performance is not good. I have 2 GB of RAM any idea what files I can modify to increase the Java Heap Size for the Content Server. If I increase the RAM to 4 or 6 GB where do I need to make changes for the Java Heap Size and what are the recommended values. I just have Content Server Running on the linux box. Or how do I assign more memory to the user that owns the content server install.
    Thanks

    You might find these interesting:
    http://blogs.oracle.com/fusionecm/2008/10/how_to_-javatuning.html
    http://download.oracle.com/docs/cd/E10316_01/cs/cs_doc_10/documentation/admin/performance_tuning_10en.pdf
    Do you have access to metalink? This has about everything you could want:
    https://metalink2.oracle.com/metalink/plsql/f?p=130:14:9940589543422282072::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,788210.1,1,1,1,helvetica
    Or search for "788210.1" in metalink knowledgebase if that link doesn't work and look for the FAQ on configuring Java for Content Servers

  • How to increase memory cache in After effects cs5?

    Hi everyone,
    I am having a great problem with my adobe after effect CS5. When i render my huge video, It shows low memory cache. So please resolve my problem or give me appropriate suggestion. I write for Graphics too.

    AE CS5 didn't do a very good job of encoding into H.264 anyway.
    I'd suggest rendering to an intermediate codec (QuickTime with the Photo-JPEG codec, for example) and then bring that into the Adobe Media Encoder. The AME has a lot more options for encoding anyway (such as multipass).
    For a clue as to how bad AE was at encoding H.264, the Adobe team removed the ability to do it at all from the current versions.

  • Outofmemoryerror, how to increase memory

    ok i got a heavy reading application which i'm running on my system which has 1gig of mem, yet for some reason the application throws the out of memory error without using the full memory.
    it throws it in the following part:
    public static Vector read(String file)
              Vector v = new Vector();
              try
                   BufferedReader in = new BufferedReader(new FileReader((file)));
                   String regel;          
                   while ( (regel = in.readLine() ) != null)
                        v.add(regel);
                             System.out.println(v.size());
                   in.close();
              catch (Exception e)
                   System.out.println("error " + e);
              return v;
    /code]
    the file i'm reading is a 35mb cvs file
    i'm guessing that the java application has a set max memory, is there a way to increase it, or set it to adaptive?
    i've tried searching for it on the site but that returns so much hits that it makes my head spin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    try using the -Xmx command line option, for example:
    java -Xmx256m MyClassName
    to give the JVM max. 256 MB memory. Try typing in this in the command prompt to get help on the non-standard options:
    java -X

  • How to increase memory size of a variable.

    Hello ABAP gurus,
    Plese clarify my doubt.
    My doubt is I have one variable which stores 20 characters.now i need to pass 50 characters to store 50 character.How can i achieve this.
    please clarify my doubt.
    Regards
    Maruthi.

    Create the variable dinamically:
    DATA: my_var TYPE REF TO DATA,
    my_type TYPE C,
    my_length TYPE i.
    FIELD-SYMBOLS: <fs_my_var> TYPE ANY.
    DESCRIBE variable_to_copy TYPE my_type.
    my_length = strlen( variable_to_copy ).
    CREATE DATA my_var TYPE my_type LENGTH my_length.
    ASSIGN my_var->* TO <fs_my_var>.
    <fs_my_var> = variable_to_copy.
    If you include this in a FORM than you can call it every time you have to pass a new value.
    Hope this helps,
    Roby.

  • How to increase java virtual machine.. i am using Ocj4 server

    How to increase memory size java virtual machine.. i am using Ocj4 server
    Edited by: java_net on Aug 29, 2008 4:09 PM

    Google ( [oc4j heap size|http://www.google.com/search?q=oc4j+heap+size] )

  • How to get memory to work faster

    hi
    found this little article on how to increase memory speed.
    bye
    http://www6.tomshardware.com/howto/20030701/index.html

    hi
    thought it would be of some interest.
    MANY people in here want there computer to run faster.
    im not happy.if i try to tweak my memory my computer wont start.
    im using noname ddr333 and it only works at spd timings.
    well im not that unhappy.
    i use my computer mainly to download and watch movies.
    bye

  • How to increase the memory of oracle

    Hi,
    I am having oracle database version 11.0.1.6 on windows server 2003 R2.
    My Server Ram size is 12 GB.
    select * from V$SGAINFO;
    Fixed SGA Size     1335136     No
    Redo Buffers     12529664     No
    Buffer Cache Size     1073741824     Yes
    Shared Pool Size     176160768     Yes
    Large Pool Size     8388608     Yes
    Java Pool Size     16777216     Yes
    Streams Pool Size     8388608     Yes
    Shared IO Pool Size     0     Yes
    Granule Size     8388608     No
    Maximum SGA Size     1297321984     No
    Startup overhead in Shared Pool     58720256     No
    Free SGA Memory Available     0     
    I want to increase my memory for oracle because i need to insert 31 billion rows into a table with nologging. I am inserting them chunk by chunk and commit after each chunk. But it is taking 62 hours to insert the rows. So i think if i increase the memory i could reduce the time to insert the rows.
    I really am not sure whether i am thinking in the right way. Please advise. If i want to increase the memory please let me know how to increase it.
    Thanks in advance

    Are all columns in the WHERE clause indexed?
    Are statistics current & accurate for all tables & indexes?
    post EXPLAIN PLAN for SQL below
    PROCEDURE Pro_unpvt_usm_dr
    IS
    BEGIN
        FOR k IN (SELECT DISTINCT pr_id
                  FROM   unpvt_im_dr_e0322) LOOP
            INSERT /*+ append */ INTO unpvt_usm_dr_e0322
            SELECT pr_id,
                   nr,
                   col,
                   Corr(n, m) val
            FROM   (SELECT a.pr_id,
                           a.nr,
                           b.nr  col,
                           a.n,
                           b.val m
                    FROM   unpvt_usm_drpre1_e0322 a,
                           unpvt_im_dr_e0322 b
                    WHERE  a.pr_id = k.pr_id
                           AND b.pr_id = k.pr_id
                           AND a.col = b.col)
            GROUP  BY pr_id,
                      nr,
                      col;
            COMMIT;
        END LOOP;
        dbms_output.Put_line('POPULATED UNPVT_USM_DR_E0322');
    END pro_unpvt_usm_dr;

  • DB_ACTION_STATNEW - Error - How to increase shared memory in shadow instanc

    Hi all,
    We are facing the below error in the DB_ACTION_STATNEW phase:
    TRACE-INFO: 82:                                                                                13  4.822960
    TRACE-INFO: 83:  [developertra,00000]   WHERE TABNAME = :A0;                                           8  4.822968
    TRACE-INFO: 84:  [dbntab      ,06694]  ***LOG BY4=>sql error 604    performing SEL on table DDNTT
    TRACE-INFO: 85:                                                                                222  4.823190
    TRACE-INFO: 86:  [dbntab      ,06694]  ***LOG BY0=>ORA-00604: error occurred at recursive SQL level 1
    TRACE-INFO: 87:                        ORA-04031: unable to allocate 4120 bytes of shared memory ("shared pool","select t.ts#,t.file#,t.block...","Typecheck","seg:kggfaAllocSeg")
    TRACE-INFO: 88:                                                                                21  4.823211
    TRACE-INFO: 89:  [dbeh.c      ,00000]  *** ERROR => missing return code handler                       13  4.823224
    TRACE-INFO: 90:                         caller does not handle code 1 from dbntab.c[3718]
    TRACE-INFO: 91:                         ==> calling sap_dext to abort transaction
    HALT 20080410111303
    We have a physical RAM of 64 GB.
    dcecqv1:root > dmesg | more
    Apr 10 11:24
       $Revision: vmunix:    B11.23_LR FLAVOR=perf Fri Aug 29 22:35:38 PDT 2003 $
    Memory Information:
        physical page size = 4096 bytes, logical page size = 4096 bytes
        Physical: 66399504 Kbytes, lockable: 51408244 Kbytes, available: 59648572 Kbytes
    From the error message, I feel that I need to increase the shared memory, can you help me how to increase the shared memory now, bcos system is now running in the shadow instance.
    Thanks & Regards
    Senthil

    Thank you for your mail Shaji.
    SQL> show parameter shared_pool_size
    ORA-00604: error occurred at recursive SQL level 2
    ORA-04031: unable to allocate 4120 bytes of shared memory ("shared
    pool","select x.inst_id,x.indx+1,ks...","Typecheck","seg:kggfaAllocSeg")
    When I tried to see the shared_pool_size it gives the above error.
    Regarding the three log files:
    STATNEW.LOG
    LISTNEW.LOG
    DBSTATNEW.LOG
    - I didnot find STATNEW.LOG file in the path /usr/sap/put/log
    - supadm> cat DBSTATNEW.LOG
    1 ETQ201XEntering upgrade-phase "DB_ACTION_STATNEW" ("20080410111258")
    2 ETQ367 Connect variables are set for standard instance access
    4 ETQ399 System-nr = '02', GwService = 'sapgw02'
    4 ETQ399 Environment variables:
    4 ETQ399   dbs_ora_schema=SAPR3
    4 ETQ399   auth_shadow_upgrade=0
    4 ETQ389 reading file "LISTNEW.LOG" in directory "/usr/sap/put/log".
    4 ETQ275 Created SQL-script "EXSTATE.ORA"
    4 ETQ275 Created SQL-script "EXSTATC.ORA"
    4 ETQ276 Executing SQL-script "EXSTATE.ORA"
    4 ETQ001 START time "2008/04/10 11:12:58"
    4 ETQ399 ext. env.: DIR_LIBRARY=/usr/sap/SUP/SYS/exe/run
    4 ETQ399 ext. env.: LD_LIBRARY_PATH=/usr/sap/SUP/SYS/exe/run:/opt/java1.5/jre/lib/IA64N:/opt/java1.5/jre/lib/IA64N/server:/opt/java1.5/jre/../lib/IA64N
    4 ETQ399 2008/04/10 11:12:58: put_execute: (tp) forkpid:2537
    4 ETQ002 END   time "2008/04/10 11:13:03"
    4 ETQ278 Errors during execution of SQL-script "EXSTATE.ORA"
    1EETQ203 Upgrade phase "DB_ACTION_STATNEW" aborted with errors ("20080410111303")
    supadm>
    supadm> tail LISTNEW.LOG
    NAME= WTY_OBJNR_INDEX
    NAME= WTY_PARTNER_TAB
    NAME= WTY_RCLHST
    NAME= WTY_RCLOBJ
    NAME= WTY_RELOB_TAB
    NAME= WTY_RELOB_TAB_TX
    NAME= WTY_TABLE_ALV
    NAME= WYT2M
    tp_exec_dbscript: 1 statement(s) successfully processed.
    supadm>
    Can u pl help
    Thanks
    Senthil

  • How to Increase Virtual memory in Windows XP (32 Bit ) O.S

    Hi Team,
    Could any one help me , how i can extend virtual memory in Windows Xp Professional sp3 (32 Bit Edition ) .  I am able to increase virtual memory in my Laptop ( Lenovo T 61, Windows Xp professional  ) up to 8 GB. But in desktop not able to
    increase more than 4 GB.
    is it  any hardware or processor dependency for virtual memory ?
    waiting for response ...
    Regards, Triyambak

    Sir, Follow these steps to Increase the Virtual Memory in XP.
    How to increase Virtual Memory?
    In Windows XP
    1.Click Start, and then click Control Panel.
    2.Click Performance and Maintenance, and then click System.
    3.On the Advanced tab, under Performance, click Settings.
    4.On the Advanced tab, under Virtual memory, click Change.
    5.Under Drive [Volume Label], click the drive that contains the paging file that you want to change.
    6.Under Paging file size for selected drive, click to Custom size check box. You can enter the amount of memory you would like to reserve for Virtual memory by entering the initial and maximum size. 
    7.Click Set
    When you are prompted to restart the computer, click Yes.
    Special Note: You should choose the same amount for the initial size and maximum size. This will Stop your CPU from constantly changing the paging file.
    Regards,
    MCP | MCTS | MCITP

  • After I upgrade from tiger to snow leopard, my macbook pro more often freezes. Any solution? Do I need to increase memory? If so, how?

    After I upgrade from tiger to snow leopard, my macbook pro more often freezes. Any solution? Do I need to increase memory? If so, how?

    After I upgrade from tiger to snow leopard, my macbook pro more often freezes. Any solution? Do I need to increase memory? If so, how?

  • How to determine memory leaks?

    I tried in XCODE, the RUN/ Start with Performance TOol / and tried out the various options. I was running my app and looking to see if it would report increasing memory use but it seemed to be looking at my total system (i was running under the simulator). In general what is the recommended procedure for determining memory leaks, which tool to use, and what tracing can i use?
    How does one look at the retain count of an object? are there system routines that have knonw leaks?

    You took the right path. Once instruments comes up select the Leaks tool. Turn off automatic leak detection. In your app, start off at some known state, do something, and come back to the known state and check for leaks. For instance start off in a view, do something that brings up another view then come back to the original view and check for leaks. Leaks will show you if you leaked. Since you took a very deterministic path then checked it should be straight forward to go to the code and find / fix the leaks. Leaks shows you where the code where the leak was generated.

  • How to increase a bean's heap size using -XMS

    Excuse my ignorance. We developed a bean that opens a hi resolution (3,000 pixels by 3,000 pixels) JPEG from the hard drive and through JAI:
    1. Zooms in
    2. Crops
    3. Streams the result to the browser
    It works perfectly with small files but when we use the large JPEGs it gives an Out of Memory Exception
    I have read extensively about how easy it should be to do the -XMS in the command line to increase the sandbox size to 256 MB or whatever.
    But apparently the command requires the name of an application among its parameters. If we try to run it without such parameter it returns the online help.
    Does anyone know what to enter in this parameter? Would it be our bean's name? Or certain class within JAI? How can we know which class is the one that runs out of memory?
    Please help!!
    :o)

    I'll try that first thing tomorrow when I'm in my
    workstation. Although I think we tried that. I'll let
    you know of the outcome though.
    My next question (in case what you say does not solve
    our problem) will very very likely be utterly stupid.
    I'll make it anyways.
    Our bean resizes and crops the image through calls to
    JAI. To follow your example, let's assume the bean is
    called FooClass. Is it a fact the memory increase
    should be applied to FooClass or can it be another JAR
    or class outside of ours the one that is actually
    running out of memory?
    In our first rounds we didn't even have the code
    inside a class but rather just a JSP. Since it was
    running out of memory and we didn't know how to assign
    memory to a JSP we decided to port it to a bean and
    attempt to XMX the bean. Is there a way to solve out
    of memory errors triggered by a JSP alone and not a
    class?The -Xmx and -Xms switches applies to the whole JVM where the class is running. They can not be applied to a special class. Use the java -Xms etc for starting the application server/servlet container where your jsp runs and it will increase the amount of memory available.

Maybe you are looking for