How to end an execution programmatically?

Hi,
I have a top level sequence which calls bunch of sequences in a new execution one after other (i have selected Before executing next step for wait for execution to complete). I noticed that when an execution finishes, it does not release all the memory it acquired (i am observing this using performance monitor). This causes a big memory leak and eventually Teststand crashes when it occupies 1300MB of RAM. How can i force teststand to end an execution before i start another execution. I will try to post an example as soon as i can. Thanks in advance.
Solved!
Go to Solution.

Hi NorbertB,
Thanks for your reply(That was very quick). I am attaching an example of what i am trying to do. Yes i do use code modules (Dll's) and i am aware of my load and unload options. I tried your suggestion, but no luck. Please run the sequence and observe the memory. Everytime i call the sequence which generates the data, the memory keeps going up. What i want is, when i call a new execution, i want all the previous execution data to be purged (All the memory allocated should be released). For every execution, a report is generated, so i will be getting 1 report for every sequence call. Once the report has been generated, i do not need any data from that execution. Thanks
Attachments:
CreateMemLeak.seq ‏7 KB

Similar Messages

  • How to end Spark datagrid editing session

    I am reading that I can use endEditorSession to end editing session programmatically.
    http://help.adobe.com/en_US/flex/using/WS0ab2a460655f2dc3-427f401412c60d04dca-7ff3.html#WS 0ab2a460655f2dc3-427f401412c60d04dca-7fec
    But DataGrid object does not have such method. Can someone clarify how to end up editing session?
    Thanks

    Checking "Continuously Updates Value" in the Bindings inspector under Value helped.

  • How to end text element in sap script

    how to end an text element in sap script
    this is the format.
    /E text element name
    &tablename-fieldname&
    text-text-text-text
    now if i do not end that text element it is not displayiny my below text , so what to do in this case

    Go through the links mentioned below.
    http://www.****************/Tutorials/Smartforms/SFMain.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
    http://www.sapmaterial.com/smartform_example.html
    Re: Hands on SAP Smart Forms
    smartforms
    Reward points if useful.

  • How to add (multiple) cursors programmatically in an XY graph?

     how to add (multiple) cursors programmatically in an XY graph?
    I am building an XY graph. then I would like to add cursors at certain locations (positioned on x axis) I determine through a program.
    How can I add cursors programatically?
    Thank you.

    Initialize a cluster array (CrsrList type) with as many cursors as you think you would ever need.   Setup your cursors dynamically, then delete the unused cursors (array elements) and then update your CursorList property.
    Message Edited by vt92 on 03-20-2009 04:04 PM
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
    Attachments:
    cursors.PNG ‏5 KB

  • How to end a work item exlicitly without executing it?

    i want to find out how to end a workitem explicitly without executing it from the business workplace. we have created a dummy workitem and would like to end it when it is not needed.
    i have set up the terminating event in the workitem task but even though the event is raised the workitem is not ended and the workitem is still in the inbox. i was expecting that when the event is raised the event will end the workitem and it will move into the outbox.
    am i doing something worng? why isnt the workitem getting ended and move to outbox when the terminating event is raised?

    Hi Arghadip,
    thanks for your inputs. That was really useful but in my case i dont have the workitem ID. Actually here is my process, the system creates a workflow when a invoice is created and it is blocked for payment. When the invoice triggers a workflow it does two things in a FORK. One it sends an email and the second it sends a workitem. The workitem is a dummy workitem. When the user reply's to the email a RFC FM is called from the external system which will release the invoice in SAP. Now once this is done we would like to close the workitem which is lying in the business workplace. So i have implemented the terminating event however i guess that doesnt work. When the RFC FM is called externally it releases the Invoice using a BAPI and once it is done i am calling the FM SWE_EVENT_CREATE to raise the event to terminate the event.
    Am i doing something wrong?

  • How to end RDP sessions remotely from different network?

    Hi
    How to end RDP sessions remotely for windows 2008r2 server from different network?
    not from local LAN
    Thanks

    Hi
    what ports need to be open to successfully connect to server behind firewall?
    from WAN to LAN using :
    net use \\servername_or_IP /USER:username “password“
    or
    qwinsta /server:ServerIP
    Thanks

  • How to create an IDoc programmatically at Inbound side?

    Hi,
    How to create an IDoc programmatically at Inbound side?
    Assume that you have a file(material master details) which is enough to create master data.
    Regards,
    Thiyagu

    Read the documentation of this FM first:
    FU IDOC_INBOUND_ASYNCHRONOUS                                                                               
    K. tekst
                                                                                    IDoc inbound processing via tRFC                                                                               
    Functionality
                                                                                    This function module starts inbound processing in the case of port type    
        "tRFC". The function module is a successor to INBOUND_IDOC_PROCESS,        
        which processes IDocs in the Release 4.0 record types. If you are          
        processing IDocs in Release 3.X record types, the function module          
        INBOUND_IDOC_PROCESS must still be called.                                                                               
    The function module checks the ID 'EDI_MES' in authorization object        
        B_ALE_RECV against the received message type.                                                                               
    The IDocs are saved by the function module IDOC_INBOUND_WRITE_TO_DB (a     
        COMMIT for all IDocs) and then transferred directly to the application     
        by the dispatcher module IDOC_START_INBOUND.                                                                               
    Parameter
                                                                                    IDOC_CONTROL_REC_40                                                        
        IDOC_DATA_REC_40                                                                               
    Exceptions
                                                                                    Functiegroep                                                                               
    Edited by: Micky Oestreich on Jun 11, 2009 12:52 PM

  • How to know query execution time in sql plus

    HI
    I want to know the query execution time in sql plus along with statistics
    I say set time on ;
    set autotrace on ;
    select * from view where usr_id='abcd';
    if the result is 300 rows it scrolls till all the rows are retrieved and finally gives me execution time as 40 seconds or 1 minute.. (this is after all the records are scrolled )
    but when i execute it in toad it gives 350 milli seconds..
    i want to see the execution time in sql how to do this
    database server 11g and client is 10g
    regards
    raj

    what is the difference between .. the
    statistics gathered in sql plus something like this and the one that i get from plan_table in toad?
    how to format the execution plan I got in sqlplus in a proper understanding way?
    statistics in sqlplus
    tatistics
             0  recursive calls
             0  db block gets
           164  consistent gets
             0  physical reads
             0  redo size
         29805  bytes sent via SQL*Net to client
           838  bytes received via SQL*Net from client
            25  SQL*Net roundtrips to/from client
             1  sorts (memory)
             0  sorts (disk)
           352  rows processedexecution plan in sqlplus... how to format this
    xecution Plan
      0      SELECT STATEMENT Optimizer=ALL_ROWS (Cost=21 Card=1 Bytes=10
             03)
      1    0   HASH (UNIQUE) (Cost=21 Card=1 Bytes=1003)
      2    1     MERGE JOIN (CARTESIAN) (Cost=20 Card=1 Bytes=1003)
      3    2       NESTED LOOPS
      4    3         NESTED LOOPS (Cost=18 Card=1 Bytes=976)
      5    4           NESTED LOOPS (Cost=17 Card=1 Bytes=797)
      6    5             NESTED LOOPS (OUTER) (Cost=16 Card=1 Bytes=685)
      7    6               NESTED LOOPS (OUTER) (Cost=15 Card=1 Bytes=556
      8    7                 NESTED LOOPS (Cost=14 Card=1 Bytes=427)
      9    8                   NESTED LOOPS (Cost=5 Card=1 Bytes=284)
    10    9                     TABLE ACCESS (BY INDEX ROWID) OF 'USR_XR
             EF' (TABLE) (Cost=4 Card=1 Bytes=67)
    11   10                       INDEX (RANGE SCAN) OF 'USR_XREF_PK' (I
             NDEX (UNIQUE)) (Cost=2 Card=1)
    12    9                     TABLE ACCESS (BY INDEX ROWID) OF 'USR_DI
             M' (TABLE) (Cost=1 Card=1 Bytes=217)
    13   12                       INDEX (UNIQUE SCAN) OF 'USR_DIM_PK' (I
             NDEX (UNIQUE)) (Cost=0 Card=1)
    14    8                   TABLE ACCESS (BY INDEX ROWID) OF 'HDS_FCT'
              (TABLE) (Cost=9 Card=1 Bytes=143)
    15   14                     INDEX (RANGE SCAN) OF 'HDS_FCT_IX2' (IND
             EX) (Cost=1 Card=338)
    16    7                 TABLE ACCESS (BY INDEX ROWID) OF 'USR_MEDIA_
             COMM' (TABLE) (Cost=1 Card=1 Bytes=129)
    17   16                   INDEX (UNIQUE SCAN) OF 'USR_MEDIA_COMM_PK'
              (INDEX (UNIQUE)) (Cost=0 Card=1)
    18    6               TABLE ACCESS (BY INDEX ROWID) OF 'USR_MEDIA_CO
             MM' (TABLE) (Cost=1 Card=1 Bytes=129)
    19   18                 INDEX (UNIQUE SCAN) OF 'USR_MEDIA_COMM_PK' (
             INDEX (UNIQUE)) (Cost=0 Card=1)
    20    5             TABLE ACCESS (BY INDEX ROWID) OF 'PROD_DIM' (TAB
             LE) (Cost=1 Card=1 Bytes=112)
    21   20               INDEX (UNIQUE SCAN) OF 'PROD_DIM_PK' (INDEX (U
             NIQUE)) (Cost=0 Card=1)
    22    4           INDEX (UNIQUE SCAN) OF 'CUST_DIM_PK' (INDEX (UNIQU
             E)) (Cost=0 Card=1)
    23    3         TABLE ACCESS (BY INDEX ROWID) OF 'CUST_DIM' (TABLE)
             (Cost=1 Card=1 Bytes=179)
    24    2       BUFFER (SORT) (Cost=19 Card=22 Bytes=594)
    25   24         INDEX (FAST FULL SCAN) OF 'PROD_DIM_AK1' (INDEX (UNI
             QUE)) (Cost=2 Card=22 Bytes=594)

  • How to end a procedure immediately

    How to end a procedure immediately before it is ended normally when some exceptions that I can't anticipate occur.

    If you want to stop the process, you have to propagate the exception through your PL/SQL blocks.
    Let's see this 2 examples :
    SQL> Declare
      2    ln$result number ;
      3    procedure p1 ( pn$input IN NUMBER )
      4    is
      5      ln$i pls_integer := 10 ;
      6    Begin
      7      ln$result := ln$i / pn$input ;
      8    Exception
      9      when zero_divide then
    10      dbms_output.put_line('** value error with : ' || pn$input ) ;
    11    End ;
    12  Begin
    13    For i In -5 .. 5 loop   
    14      p1(i) ;
    15   dbms_output.put_line( 'calulation for ' || i || ' = ' || ln$result ) ;
    16    end loop;
    17  Exception
    18    when others then
    19      dbms_output.put_line( 'stop with error : ' || sqlcode ) ;
    20  End;
    21  /
    calulation for -5 = -2
    calulation for -4 = -2,5
    calulation for -3 = -3,33333333333333333333333333333333333333
    calulation for -2 = -5
    calulation for -1 = -10
    ** value error with : 0
    calulation for 0 = -10
    calulation for 1 = 10
    calulation for 2 = 5
    calulation for 3 = 3,33333333333333333333333333333333333333
    calulation for 4 = 2,5
    calulation for 5 = 2
    PL/SQL procedure successfully completed.the main procedure is not stopped by the exception
    let's propagate the excexption from the p1 procedure (line 11) :
    SQL> Declare
      2    ln$result number ;
      3    procedure p1 ( pn$input IN NUMBER )
      4    is
      5      ln$i pls_integer := 10 ;
      6    Begin
      7      ln$result := ln$i / pn$input ;
      8    Exception
      9      when zero_divide then
    10      dbms_output.put_line('** value error with : ' || pn$input ) ;
    11      raise ; -- propagate the exception
    12    End ;
    13  Begin
    14    For i In -5 .. 5 loop   
    15      p1(i) ;
    16   dbms_output.put_line( 'calulation for ' || i || ' = ' || ln$result ) ;
    17    end loop;
    18  Exception
    19    when others then
    20      dbms_output.put_line( 'stop with error : ' || sqlcode ) ;
    21  End;
    22  /
    calulation for -5 = -2
    calulation for -4 = -2,5
    calulation for -3 = -3,33333333333333333333333333333333333333
    calulation for -2 = -5
    calulation for -1 = -10
    ** value error with : 0
    stop with error : -1476
    PL/SQL procedure successfully completed.Francois

  • How to change focus in programmatic way?

    Hi,
    1. how to change focus in programmatic way?
    2. is there any way to define tab index?
    With Regards,
    Wai Phyo

    1). http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17491/tagdoc/af_scrollComponentIntoViewBehavior.html
    2). no

  • HT4157 How to end a AT&T cellular data service on my Ipad

    How to end a at&t cellular data service on my Ipad

    http://support.apple.com/kb/HT4572
     Cheers, Tom

  • PERWSHRG form - How to end/terminate and assignment with end dated entered by user Apps R12.1

    Hi All.
    How to end/terminate and assignment with end dated entered by user Apps R12.1?
    when i try to end or terminate and assignemnt the sysdate is begin registered for effective_end date.
    any help is reaaly greatly appriciated
    thanks and regards
    Soni

    Hi Soni,
    What is the end date you want to enter as. Are you talking about 31-Dec-4712. If not, please change the sytem effective date (calendar icon on the oracle menu) to the date you want to terminate and follow the termination process.
    Thanks,
    Avinash

  • How to get query execution time without running...?

    Hi ,
    I had one requirement .... as follows ......
    i had 3 sql statements . I need to execute only one sql which execution time is very less.
    Can any one help me , how to get query execution time without running that query and without using explain plan..?
    Thanks,
    Rajesh

    Kim Berg Hansen wrote:
    But you have ruled out explain plan for some reason, so I cannot help you.OP might get some answers if query was executed before - but since restart. Check V$SQL dynamic performance view for SQL_TEXT = your query. Then ROUND(ELAPSED_TIME / EXECUTIONS / 1000000) will give you average elapsed time.
    SY.
    Edited by: Solomon Yakobson on Apr 3, 2012 8:44 AM

  • How to trace the Execution of ZReport

    I have to Trace the Excecution of a ZReport with it's Select-Options.
    I.e. The ZReport contains the MIRO Data and Selection Screen is BUDAT ( MIRO Posting Date)
    User Required to Keep trace when this Report is Executed with which Positng Date.
    How to trace ZReport Execution? Is it possible?

    Hi,
    Please see STAD transction code.. please refer the below link for more information.
    Re: program to find how many times a custom program is executed by user
    Regards,
    Nagaraj

  • How to end the pagenumber

    I started the numbering of the pages in the footer in a new section, after the first two pages. But how to end the numbering? I don't want to see the numbers on the last two pages of the booklet.

    Insert a section break before the last 2 pages.
    Create another section, with everything you want except the numbers for the remaining pages.

Maybe you are looking for