Heap size and 3 table update

I am new to this area so sorry if my questions will sound stupid to somebody. Recently I started developing an application using Toplink, ADF Databinding, struts and JSP. Curretnly the application is using 1 view built on 3 tables.
QUESTION 1: First time when I tried to test the browse page I got the error messages from JDeveloper saying "JBO-29000: Unexpected exception caught: java.lang.OutOfMemoryError, msg=null". So I limited number of records selected by the view just to 500 and the query worked. I guess it is somehow related to java heap size. How can I change the heap size. The application is run locally on my PC.
QUESTION 2: In this application I am trying to update 3 tables at the same time using a view. But when I try do it I am getting error saying "data manipulation operation non legal on this view error code 1732". Is there any way I can do this simultaneous update of 3 tables through the view?
Thanks in advance for any help, advice or hint

The switch -Djbo.debugoutput=console should produce messages in the debug output window like [694] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
[695] **PCollManager.resolveName** tabName=PS_TXN
[696] Getting a connection for internal use...
[697]    Creating internal connection...
[698] Trying connection: DataSource='com.evermind.sql.OrionCMTDataSource@20e'...
[699] Column count: 4
[700] ViewObject: BenutzerSessionView1 close prepared statements...
[701] ViewObject: BenutzerSessionView1 Created new QUERY statement
[702] BenutzerSessionView1>#q computed SQLStmtBufLen: 250, actual=222, storing=252
[703] SELECT BenutzerSession.BENUTZER_ID,         BenutzerSession.SESSION_ID,         BenutzerSession.ANMELDEZEIT,         BenutzerSession.LETZTER_ZUGRIFF FROM BENUTZERSESSION BenutzerSession WHERE (BenutzerSession.SESSION_ID=?)
[704] Bind params for ViewObject: BenutzerSessionView1
[705] Binding param 1: 998949578152
[706] Column count: 19
[707] ViewObject: BenutzerView1 close prepared statements...What I did is build a VO from 3 EO. Not every attribute of the EO are used in the VO and the EO are associated via their PK. I started my implementation from the toystore demo (take a look add the accounts VO or ReviewOrder VO and the ToyStorService prepareToCreateNewAccount(...)).
P.S. I'm from Germany

Similar Messages

  • Help regarding 'table controls' and 'internal table' updation

    Hi all.
    Basically this is what i have done..... I have created a table control in module pool program. I declared an Internal table and also have populated it from a database table. I have also used insert statement to insert an blank record in the table control view and delete statements to delete any record,  also in the table control view... .
    But I am not able to update any new record into an Internal table or  the  original table ..
    Any Ideas how to do it ,Gurus
    Thanks

    HEllo,
    Check thsi simple report.
    REPORT ZTFH_TABLECONTROL .
    TABLES : ZEMPTABLE.
    DATA : SELLINE .
    DATA : FLD(20).
    DATA : LINNO TYPE I , OFF TYPE I.
    DATA : ITAB LIKE ZEMPTABLE OCCURS 10 WITH HEADER LINE.
    CONTROLS  : CON_TAB TYPE TABLEVIEW USING SCREEN 100.
    SELECT * FROM ZEMPTABLE INTO TABLE ITAB.
    DESCRIBE TABLE ITAB LINES CON_TAB-LINES.
    CALL SCREEN 100.
    *&      Module  EXT_COMM  INPUT
    *       text
    MODULE EXT_COMM INPUT.
    LEAVE PROGRAM.
    ENDMODULE.                 " EXT_COMM  INPUT
    *&      Module  TAB_UPDATE  INPUT
    *       text
    MODULE TAB_UPDATE INPUT.
    CASE SY-UCOMM.
    WHEN 'DEL'.
          IF SELLINE = 'X'.
            DELETE ITAB WHERE EMPNO = ITAB-EMPNO.
            MESSAGE I000(ZYF_DEL).
          ENDIF.
    WHEN 'UPD'.
        IF SELLINE = 'X'.
             MODIFY ITAB INDEX CON_TAB-CURRENT_LINE.
             MESSAGE I001(ZYF_DEL).
        ENDIF.
    WHEN 'INS'.
         IF SELLINE = 'X'.
          GET CURSOR FIELD FLD LINE LINNO OFFSET OFF.
          SET CURSOR FIELD FLD LINE LINNO OFFSET OFF.
          IF FLD CP 'ITAB*' AND SY-SUBRC = 0.
            IF LINNO >= 1.
              LINNO = LINNO + CON_TAB-TOP_LINE - 1.
              CLEAR ITAB.
              INSERT ITAB INDEX LINNO.
              CON_TAB-LINES = CON_TAB-LINES + 1.
            ELSE.
              CLEAR ITAB.
              APPEND ITAB.
              CON_TAB-LINES = CON_TAB-LINES + 1.
            ENDIF.
          ENDIF.
        ENDIF.
    WHEN 'SAV'.
      MODIFY ITAB INDEX CON_TAB-CURRENT_LINE.
      MESSAGE I002(ZYF_DEL).
    ENDCASE.
    ENDMODULE.                 " TAB_UPDATE  INPUT
    “ FLOW LOGIC
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    LOOP AT ITAB WITH CONTROL CON_TAB.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    MODULE EXT_COMM AT EXIT-COMMAND.
    LOOP AT ITAB.
    MODULE TAB_UPDATE.
    ENDLOOP.     
    REgards,
    Vasanth

  • RBKP and BKPF table update from MIRO

    Hi All,
    I am using the BADI BADI_FDCB_SUBBAS01 to add a custom field in MIRO transaction. The added custom field is getting updated in RBKP transaction.
    I also want to update the custom field data in BKPF table, but i dont know when the BKPF table gets updated in MIRO transaction.
    Can you help me where the BKPF table will get updated. Is there any BADI for updating the custom fields in table BKPF via MIRO?
    Thanks and Regards,
    Vijay

    Hi Baskar,
    I have done this thing from MIRO transaction to update BKPF table. Please check the below code.
    METHOD if_ex_badi_fdcb_subbas01~put_data_to_screen_object.
      CONSTANTS:
      c_bkpf_xref1(25) TYPE c VALUE '(SAPLFDCB)BKPF-XREF1_HD'.
      FIELD-SYMBOLS: <fs_bkpf_xref1> TYPE ANY.
    fill interface attributes from importing paramters
      me->if_ex_badi_fdcb_subbas01~invfo  = im_invfo.
      ASSIGN (c_bkpf_xref1) TO <fs_bkpf_xref1>.
      IF sy-subrc = 0.
        <fs_bkpf_xref1> = me->if_ex_badi_fdcb_subbas01~invfo-zlet_number.
      ENDIF.
    ENDMETHOD.
    METHOD if_ex_badi_fdcb_subbas01~get_data_from_screen_object.
    CONSTANTS:
    c_bkpf_xref1(25) TYPE c VALUE '(SAPLFDCB)BKPF-XREF1_HD'.
    FIELD-SYMBOLS: <fs_bkpf_xref1> TYPE ANY.
    fill export parameters from interface attributes
      ex_invfo  = me->if_ex_badi_fdcb_subbas01~invfo.
    ASSIGN (c_bkpf_xref1) TO <fs_bkpf_xref1>.
    if sy-subrc = 0.
    <fs_bkpf_xref1> = ex_invfo-zlet_number.
    endif.
    ENDMETHOD.
    After passing the data through field symbols, then you need to update the BKPF table using the BADI AC_DOCUMENT. Refer the below code.
    METHOD if_ex_ac_document~change_after_check.
    variable declaration
      DATA: lv_let_number  TYPE zisr_let_number,
            lv_field TYPE char18 VALUE '(SAPLMRMP)xaccit[]',
            lv_let_field TYPE char27 VALUE '(SAPLMR1M)RBKPV-ZLET_NUMBER'.
    Field symbol declaration
      FIELD-SYMBOLS : <ft_accit> TYPE accit_t,
                      <fs_accit> TYPE accit,
                      <fv_let_number> TYPE ANY.
    Constant declaration
      CONSTANTS : lc_miro TYPE sytcode VALUE 'MIRO'.
    Check for transaction code MIRO
      IF sy-tcode EQ lc_miro.
        ASSIGN (lv_field) TO <ft_accit>.
        CHECK sy-subrc EQ 0.
        ASSIGN (lv_let_field) TO <fv_let_number>.
        CHECK sy-subrc EQ 0.
    Assign the letter number to BKPF table field XREF1_HD
        LOOP AT <ft_accit> ASSIGNING <fs_accit>.
          lv_let_number = <fv_let_number>.
          <fs_accit>-xref1_hd = lv_let_number.
        ENDLOOP.
      ENDIF.
    ENDMETHOD.

  • JVM heap size and performance

    We are kind of struggling with the good old "out of memory"
    issue of JVM while running our app on oracle 9i j2ee container
    (Solaris 2.6). I do not see much discussion about this
    particular problem in this forum. We are playing with heap
    allocation, garbage collector, max num of instances etc to
    overcome this out of memory issue. If you are running or about
    to run OC4J in a production environment please let me now what
    measures and settings are you using to tune the JVM.

    We start with 128m, and use 512m for the maximum, and have no
    troubles. That is:
    java -jar -Xms128m -Xmx512m orion.jar
    This is on linux. There are memory leaks with varous jdbc
    drivers, postgresql for example.
    Also, if you do not put a maximum on your instances of entity
    beans, they will just pile up. You can adjust this in the orion-
    ejb-jar.xml file. The bean problem occurs if you have not
    normalized your bean mapping for performance.
    regards,
    the elephantwalker
    www.elephantwalker.com

  • SETLEAF and SETHEADER table update via ABAP

    Hi All,
    I have a large number of sets and I am looking to update them automatically.
    Is there a BAPI that can be used for this?
    I saw some mention of various BAPIs but I was looking to see if anyone has actually done this before or knows about a BAPI that can be used?
    Regards;
    Shreekar

    Have you tried FM G_SET_MAINTENANCE?
    Rob

  • Java options heap size and out of memory warnings

    I have a 904 10g oc4j mid-tier build.
    I have three applications deployed to the Home container.
    Occassionally, one of the applications will get an error message stating java.lang outofmemory. The java Option was set to Xmx1024. I increased this to Xmx2048, but this had an adverse affect on the Home container and I couldn't get it running. Eventually I put the value for java option back to it's original value. The Home container started again.
    Is there another way I can increase the amount of memory available to the container/applications without having the adverse effect described above?
    Thanks
    Andy

    how much is your available physical memory size ?
    if you have more than 1 Gb, follow this :
    try set jvm options :
    -Xms1024m -Xmx1024m -XX:MaxPermSize=256m
    try to increase MaxPermSize if error still occured.
    Regards,
    Ricky H.P.

  • 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

  • NT Service and Heap size

    Can someone tell me if there is a way to :
    (1) verify and modify heap size in nt service?
    (2) in multi server mode, there are two nt services for weblogic
    domains, is it needed to change heap size for weblogicAdmin service for
    heap size increase? What will happen if PIA is 1024MB heap size and
    weblogicAdmin is 256MB?
    Thanks in advance/T

    Nicolas, test show that once the nt service is installed, modifying heap
    size in setenv.cmd and run setenv.cmd file reinstall nt service does not
    change the heap size already in registry. So, test shows that I can
    modify the heap size directly in registry and restart service?. Am i doing something wrong here.. can i correct and only to modify and existing heap size in
    registry?
    Please let me know what else should I do once the old heap
    size in already in registry and not the new heap size when reinstalled NT service.
    other question, long the weblogic tuning, I found the following from bea site. During the peak time, we may have 40000 unique users per day. Should I also consider increase maxUserPort? The weblogic domains are hosted on windows 2003 servers.
    Windows Tuning Parameters
    For Windows platforms, the default settings are usually sufficient. However, under sufficiently heavy loads it may be necessary to adjust the MaxUserPort and TcpTimedWaitDelay. These parameters determine the availability of user ports requested by an application.
    By default, ephemeral (that is, short-lived) ports are allocated between the values of 1024 and 5000 inclusive using the MaxUserPort parameter. The TcpTimedWaitDelay parameter, which controls the amount of time the OS waits to reclaim a port after an application closes a TCP connection, has a default value of 4 minutes. During a heavy loads, these limits may be exceeded resulting in an address in use: connect exception. If you experience address in use: connect exceptions try setting the MaxUserPort and TcpTimedWaitDelay registry values under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters key:
    MaxUserPort = dword:00004e20 (20,000 decimal)
    TcpTimedWaitDelay = dword:0000001e (30 decimal)
    Increase the value of the MaxUserPort parameter if the exception persists.
    For more information about Windows 2000 tuning options, see:
    § The Microsoft Windows 2000 TCP/IP Implementation Details.
    § The Windows 2000 Performance Tuning white paper.
    thanks
    T

  • How to increase the heap size of the container in whioch BPEL is running ?

    Hi All,
    I recently raised an SR they have asked me to do the following,
    Can you please try and start the container running the BPEL process with max
    heap space (-Xmx) of 2 GB and the eden space (-Xmn) at about 60% of 1228m and
    the option -XX:+AggressiveHeap set. (even though this option is recommended for
    multi processor machines say 4)
    can anyone kindly explain me how to increase the Heap size and Eden size of BPEL container ?
    Thank You

    Hi Deepak I cant see any attribute or element in the oc4j_opmn.xml file regarding heap memory. In the server properties I changed the size of heap memeory how can I rollback.
    I am getting the following error
    Configuration information
    Running in C:\product\10.1.3.1\OracleAS_1
    Operation mode:Startup, App Server, No Enterprise Manager, Single Instance
    Oracle home:C:\product\10.1.3.1\OracleAS_1
    Oracle home name:Unnamed
    Instance name:SOA.01hw117905.India.TCS.com
    Instance type:allProducts
    Version:10.1.3.4.0
    Uses infrastructure:false
    Not an infrastructure instance, no infrastructure information available
    Components:[j2ee, apache, orabpel, oraesb, owsm, Wsil]
    2009-08-19 09:08:51.863--Begin log output for Mid-tier services (SOA.01hw117905.India.TCS.com)
    2009-08-19 09:08:51.863--Processing Step: starting OPMN
    2009-08-19 09:09:00.394--Processing Step: starting OPMN managed processes
    2009-08-19 09:09:35.19--End log output for Mid-tier services (SOA.01hw117905.India.TCS.com)
    An unknown OPMN error has occured
    oracle.appserver.startupconsole.model.ConsoleException: An unknown OPMN error has occured
         at oracle.appserver.startupconsole.control.OPMNController.doStart(OPMNController.java:121)
         at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
         at oracle.appserver.startupconsole.control.GroupController.doStart(GroupController.java:47)
         at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
         at oracle.appserver.startupconsole.view.controller.ControllerAdapter.start(ControllerAdapter.java:30)
         at oracle.appserver.startupconsole.view.controller.MasterControlAdapter.run(MasterControlAdapter.java:94)
         at oracle.appserver.startupconsole.view.Runner.main(Runner.java:39)
    Caused by: oracle.ias.opmn.optic.OpticControlException: Error from opmn during process control operation
         at oracle.ias.opmn.optic.AbstractOpmnEntity.runCommand(AbstractOpmnEntity.java:174)
         at oracle.ias.opmn.optic.AbstractOpmnEntity.start(AbstractOpmnEntity.java:110)
         at oracle.appserver.startupconsole.control.OPMNController.doStart(OPMNController.java:89)
         ... 6 more
    Exception caused by
    Error from opmn during process control operation
    oracle.ias.opmn.optic.OpticControlException: Error from opmn during process control operation
         at oracle.ias.opmn.optic.AbstractOpmnEntity.runCommand(AbstractOpmnEntity.java:174)
         at oracle.ias.opmn.optic.AbstractOpmnEntity.start(AbstractOpmnEntity.java:110)
         at oracle.appserver.startupconsole.control.OPMNController.doStart(OPMNController.java:89)
         at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
         at oracle.appserver.startupconsole.control.GroupController.doStart(GroupController.java:47)
         at oracle.appserver.startupconsole.control.Controller.start(Controller.java:69)
         at oracle.appserver.startupconsole.view.controller.ControllerAdapter.start(ControllerAdapter.java:30)
         at oracle.appserver.startupconsole.view.controller.MasterControlAdapter.run(MasterControlAdapter.java:94)
         at oracle.appserver.startupconsole.view.Runner.main(Runner.java:39)
    <?xml version='1.0' encoding='WINDOWS-1252'?>
    <response>
    <msg code="-82" text="Remote request with weak authentication.">
    </msg>
    <opmn id="01hw117905:6200" http-status="206" http-response="2 of 3 processes started.">
    <ias-instance id="SOA.01hw117905.India.TCS.com">
    <ias-component id="default_group">
    <process-type id="home">
    <process-set id="default_group">
    <process id="172" pid="2176" status="Alive" index="1" log="C:\product\10.1.3.1\OracleAS_1\opmn\logs\\default_group~home~default_group~1.log" operation="request" result="success">
    <msg code="0" text="">
    </msg>
    </process>
    </process-set>
    </process-type>
    <process-type id="oc4j_soa">
    <process-set id="default_group">
    <process id="173" pid="5556" status="Stopped" index="1" log="C:\product\10.1.3.1\OracleAS_1\opmn\logs\\default_group~oc4j_soa~default_group~1.log" operation="request" result="failure">
    <msg code="-21" text="failed to start a managed process after the maximum retry limit">
    </msg>
    </process>
    </process-set>
    </process-type>
    </ias-component>
    <ias-component id="HTTP_Server">
    <process-type id="HTTP_Server">
    <process-set id="HTTP_Server">
    <process id="171" pid="2724" status="Alive" index="1" log="C:\product\10.1.3.1\OracleAS_1\opmn\logs\\HTTP_Server~1.log" operation="request" result="success">
    <msg code="0" text="">
    </msg>
    </process>
    </process-set>
    </process-type>
    </ias-component>
    </ias-instance>
    </opmn>
    </response>

  • How do define the limit of the max heap size?

    Hi All,
    I would like to know what should be the limit of the JVM max heap size.
    What will happen if we will not define it?
    What is the purpose of defining it from the technical point of view?
    Thanks
    Edited by: Anna78 on Jul 31, 2008 12:36 PM

    Defining a max heap space too large can have the following effect:
    If you create new objects, the VM may decide it is not worth getting rid of garbage-collectable ones, as there
    is still plenty of space between the current heap size and the max allowed. The result will be that the
    application will run faster and will consume more memory than it really needs.
    If the heap size is too small, but still sufficient, the application will do a lot of garbage-collection and therefore
    run slower. On the other hand, it will stay inside the tight space it has been allowed to use.
    The speed difference may or may not be noticeable, while the difference between 256M and 512M may
    or may not matter on today's computers.

  • Overriding the default heap size of 64mb

    I run the java program on my pc on windows xp
    I need to increase the heap size, currently I launch the jar file using a batch file, the contents of the batch file are:
    java -Xms64m -Xmx512m -jar Lines.jar
    I have set the min and max heap size and when I click on the .bat file it launches the jar file with tose heap settings
    But I do not want to launch the jar file in this way(I don't want to use a batch file), is there anyway to override the default heap size for the java program to 512mb so that every time I launch the jar file the heap size is 512mb??
    Edited by: muddy777 on Sep 23, 2009 6:30 PM

    Vikash.SunJava wrote:
    set this in some machine startup like a scheduled task at machine startup
    java -Xms64m -Xmx512m
    This this will be default JVM settings.Huh?

  • Why JVM shows another Heap size when Xms=Xsx?

    Hi everybody. I have two instances of oc4j on a cluster of two nodes. The configuration of parameters on opmn.xml is exactly the same for both instances.
    Particulary I see an strange behavior on memory heap. I expect that if Xmx and Xms parameters are equals to 4096, then the heap size must be fixed on 4 Gb exactly, and there will be not resizing.
    But monitoring the heaps with JVisualVM I can see that the heap size of the first instance is moving between 3.7 and 4 Gb, and the Heap size of the second node is moving around 3.2 Gb. The hosts have both 16 Gb of RAM, it's running on Windows 2003 Server R2 and there is no overload on the OS.
    Possibly the behavior is normal and I just have a wrong understanding of what is expectable.
    Here are some parameteres extracted from opmn.xml file:
    -D64
    -Dcom.sun.management.jmxremote
    -Xmx4096M
    -Xms4096M
    -XX:+UseParallelGC
    -verbose:gc
    -XX:+PrintGCTimeStamps
    -XX:+PrintGCDetails
    -Xloggc:D:\oracle\product\10.1.3\soa\j2ee\OC4J_SOA\archivo_loggc.log
    -Dcom.sun.management.jmxremote.port=8004
    -Dcom.sun.management.jmxremote.authenticate=false
    -Dcom.sun.management.jmxremote.ssl=false
    -Djava.security.policy=D:\oracle\product\10.1.3\soa\j2ee\OC4J_SOA\config\java2.policy
    -Djava.awt.headless=true
    -Dhttp.webdir.enable=false
    -Doc4j.userThreads=true
    -Doracle.mdb.fastUndeploy=60
    -Doc4j.formauth.redirect=true
    -Djava.net.preferIPv4Stack=true
    -Dorabpel.home=D:\oracle\product\10.1.3\soa\bpel
    -Xbootclasspath/p:D:\oracle\product\10.1.3\soa\bpel\lib\orabpel-boot.jar
    -Dstdstream.filesize=8
    -Dstdstream.filenumber=30
    -Dhttp.proxySet=false
    -XX:MaxPermSize=768M
    -XX:PermSize=768M
    -Doraesb.home=D:\oracle\product\10.1.3\soa\integration\esb
    -Dorabpel.process.lock.timeout=300
    -Drmi.client.connection.timeout=100
    -Doracle.dms.hunter.sleeptime=600000
    -Doracle.dms.gatherers=300000,2:1800000:3
    -Djavax.net.ssl.keyStore=D:\oracle\product\10.1.3\soa\jdk\jre\lib\security\cacerts
    -Djavax.net.ssl.keyStorePassword=changeit
    -DopmnPingInterval=90
    -Xrs
    -DHTTPClient.socket.staleCheck=true
    -DHTTPClient.disableKeepAlives=true
    -XX:+HeapDumpOnOutOfMemoryError

    Hi Sebastien, Thanks for responding.
    In fact I'm looking exactly where you say to determine your heap size.
    The thing is that I can't understand why one instance takes some minor heap size and fluctuates the size while the other instance take around 4 Gb and kept static in this value. I can see there is no diferences on configuration for both. I know that the used heap must present diferent behavior, but not the total size. I think that the size should be fixed and static with Xmx=Xms=4096, but this is not happening.
    I would like to show an image to ilustrate what I'm describing.
    About the PermGen, I think there's no problem with that, around 80% is in effective use, and this value is stable.
    Best regards

  • How to change heap size in control panel

    i've already searches previous post about this problem but still i couldnt get it to work or maybe i'm doing it wrong. i did it a lot of times but still i couldnt get it. can anybody show me how exactly to change the java heap sizes.
    and is it possible to display the current java heap size of my jvm?
    tnx in advance
    nashstanley

    You can change the heap by using an option to to the java command, when Java starts up. If you're starting an applet or a Web Start app(applies only to applets or Web Start) then use the Java Control Panel's Java tab to set a value.
    The syntax (in all cases) is defined in the documetation for the java command.
    There are a number of ways to see the heap size, none of which is "standard" Java, and they vary depending on the specifics of which Java you're running and what you're doing. See:
    http://www.google.com/search?q=display+java+heap+size

  • Retrieve Heap size from program

    Hi, i searched the foruns with "get heap size" and "retrieve size"
    and i also checked the System.getProperty(String key) string keys at
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#getProperty(java.lang.String)
    and havent found a method to retrieve the currently set heap size.
    Is there a way to do this?
    My program needs to initialize something based on how large the
    user set the heap size (using the command line -Xms32m -Xmx128m...)
    Any info would be appreciated! Thanks alot!

    Touche!
    Thanks alot you pointed me in exactly the right direction.
    When i did research on java.lang.Runtime
    i found this post
    http://forums.java.sun.com/thread.jspa?threadID=529065&start=0&tstart=165
    which is a great two page thread on this subject.
    Runtime
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html#maxMemory()

  • Change table size and headers in type def cluster

    Is is possible to change a table size and headers that is inside a type def cluster?
    I have a vi that loads test parameters from a csv file. The original program used an AC load so there was a column for power factor. I now have to convert this same program to be used with a DC load, so there is no power factor column.
    I have modified to vi to adjust the "test table" dynamically based on the input file. But the "test table" in the cluster does not update it's size or column headers.
    The "test table" in the cluster is used through out the main program to set the values for each test step and display the current step by highlighting the row.
    Attachments:
    Load Test Parms.JPG ‏199 KB
    Table Cluster.JPG ‏122 KB

    Nevermind, I figured it out...
    I was doing it wrong from the start, in an effort to save time writing the original program I simply copied the "test table" to by type def cluster.  This worked but was not really as universal as I thought it would be, as the table was now engraved in stone since the cluster is a type def.
    I should not have done that, but rather used an array in the cluster and only used the table in the top level VI where it's displayed on the screen.

Maybe you are looking for