Check asynchronous process is running

Hi,
A quick question: I have this program consisting of multiple state machines. The user interface can start these state machines (asynchronous) and send commands to them. Now, the problem is that I need to be able to check whether a certain state machine is running or not. What's the best way of doing this?
Kind regards,
Wouter
Solved!
Go to Solution.

I would have the FGV or variable include a timestamp as well.
There is a property node for VI's called Executiontate.  That will tell you the status of a VI.  But I don't think I'd rely on it.  It would tell you a VI is running, but perhaps you are actually stuck in some sort of endless loop that prevents it from effectively doing what you are expecting it to do.  For your App, you would consider it stuck, but according to LabVIEW it is running.
I would rely on that watchdog method where you update a variable that would be a cluster of a timestamp and another useful piece of information such as your state machines current state.  Now you'll know what is happening, and you'll know if that data is too old.

Similar Messages

  • Why won't new version 4.0 open on my desktop while version3.6.17 works fine. When I check the processes running on the computer the firefox is running but it won't open on the desktop(monitor)

    When I updated firefox from version 3.6.16 to 4.0 the program would not open on the desktop after I double-clicked the short cut on the desk top. I checked the processes running on the computer and it showed firefox running. I followed the short cut to its file and clicked on the executable file with the same result(it won't open). I went back to the previous version and it works fine. What could be the problem?

    Hey djclark24,
    Have you tried starting Firefox in Safe Mode? Hold down "shift" while Firefox is starting up. If the crash doesn't happen in Safe Mode, you should read [[Troubleshooting extensions and themes]].
    There is also a lot of useful stuff in the [[Firefox crashes]] Knowledge Base article.
    You could also try [https://support.mozilla.org/en-US/kb/Managing-profiles?s=create+a+new+profile&r=2&e=es&as=s#w_creating-a-profile Creating a new profile].
    Hopefully this helps!

  • Command to check if task process is run

    Does it any db command that allows me to check if specific process already runs in DB server?

    You can query. How the process is executed?
    If is a job then dba_jobs_running, if do not, find the session in v$session and check the status, to find the session you can use v$sql...

  • Oracle transactions with asynchronous processes

    I am using VB 6 to create 2 asynchronous processes that make
    separate connections to an oracle db. One process is
    implemented as class by the other and runs as a background task.
    Each process has several insert/updates that implement
    transactions; every insert/update is followed by a commit.
    The background process includes a timer module that includes
    some insert/update statements.
    There are checks in place to ensure that the processes do not
    attempt to close while the timer is executing.
    However, when the application exits, it generates a "Connection
    object cannot be explicitly closed while in a transaction"
    error, usually in the startup foreground app, although sometimes
    in the background process.
    I can't for the life of me find how a transaction could be open
    nor any method to test for an open transaction before trying to
    close.
    Anyone have any ideas?

    Are you doing explicit start/commits in your SQL code, are you
    using ODBC's auto-commit feature, or are you using both
    simultaneously?
    Justin

  • PUMP process is Running. Not generating message in report.No replication

    Hi,
    I am using GoldenGate 11g with Oracle database 11g on IBM AIX server at source and Linux at destination.
    I have created the extract process and the pump process but the pump process is not responding.
    The report of my PUMP process is as below. I can't see any run time messages getting generated in it. Even the replication is not happening.
    Please suggest how to search for the issue here and get the replication working.
    GGSCI (FIFLX595) 85> view report IUT01dp
                     Oracle GoldenGate Capture for Oracle
            Version 11.1.1.1 OGGCORE_11.1.1_PLATFORMS_110421.2040
      AIX 5L, ppc, 64bit (optimized), Oracle 11g on Apr 22 2011 03:25:30
    Copyright (C) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
                        Starting at 2012-02-01 15:30:08
    Operating System Version:
    AIX
    Version 5, Release 3
    Node: FIFLX595
    Machine: 00C576D24C00
                             soft limit   hard limit
    Address Space Size   :    unlimited    unlimited
    Heap Size            :    unlimited    unlimited
    File Size            :    unlimited    unlimited
    CPU Time             :    unlimited    unlimited
    Process id: 16019716
    Description:
    **            Running with the following parameters                  **
    EXTRACT IUT01DP
    SETENV (ORACLE_SID = "NGPIUT")
    Set environment variable (ORACLE_SID=NGPIUT)
    uSERID ggs_owner, PASSWORD *********
    RMTHOST OFSMUG-VM-87.i-flex.com, MGRPORT 7809
    RMTTRAIL /oracle/GoldenGate/Setup/ggs/dirdat/IUT01/rt
    PASSTHRU
    TABLE IUT01.*;
    CACHEMGR virtual memory values (may have been adjusted)
    CACHEBUFFERSIZE:                         64K
    CACHESIZE:                                8G
    CACHEBUFFERSIZE (soft max):               4M
    CACHEPAGEOUTSIZE (normal):                4M
    PROCESS VM AVAIL FROM OS (min):          16G
    CACHESIZEMAX (strict force to disk):  13.99G
    Database Version:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for IBM/AIX RISC System/6000: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Database Language and Character Set:
    NLS_LANG environment variable specified has invalid format, default value will be used.
    NLS_LANG environment variable not set, using default value AMERICAN_AMERICA.US7ASCII.
    NLS_LANGUAGE     = "AMERICAN"
    NLS_TERRITORY    = "AMERICA"
    NLS_CHARACTERSET = "AL32UTF8"
    Warning: your NLS_LANG setting does not match database server language setting.
    Please refer to user manual for more information.
    2012-02-01 15:30:13  INFO    OGG-01226  Socket buffer size set to 27985 (flush size 27985).
    2012-02-01 15:30:13  INFO    OGG-01052  No recovery is required for target file /oracle/GoldenGate/Setup/ggs/dirdat/IUT01/rt000000, at RBA 0 (file not opene
    d).
    2012-02-01 15:30:13  INFO    OGG-01478  Output file /oracle/GoldenGate/Setup/ggs/dirdat/IUT01/rt is using format RELEASE 10.4/11.1.
    **                     Run Time Messages                             **
    ***********************************************************************Thanks !!!

    Thanks for your reply.
    The GoldenGate log is as follows :- ( the last few lines )
    2012-02-01 16:15:05  INFO    OGG-00991  Oracle GoldenGate Capture for Oracle, iut01dp.prm:  EXTRACT IUT01DP stopped normally.
    2012-02-01 16:15:08  INFO    OGG-00987  Oracle GoldenGate Command Interpreter for Oracle:  GGSCI command (oracle): start iut01dp.
    2012-02-01 16:15:08  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from GGSCI on host 10.180.22.245 (START EXTRACT IUT01DP ).
    2012-02-01 16:15:08  INFO    OGG-00975  Oracle GoldenGate Manager for Oracle, mgr.prm:  EXTRACT IUT01DP starting.
    2012-02-01 16:15:08  INFO    OGG-00992  Oracle GoldenGate Capture for Oracle, iut01dp.prm:  EXTRACT IUT01DP starting.
    2012-02-01 16:15:09  INFO    OGG-00993  Oracle GoldenGate Capture for Oracle, iut01dp.prm:  EXTRACT IUT01DP started.
    2012-02-01 16:15:14  INFO    OGG-01226  Oracle GoldenGate Capture for Oracle, iut01dp.prm:  Socket buffer size set to 27985 (flush size 27985).
    2012-02-01 16:15:14  INFO    OGG-01052  Oracle GoldenGate Capture for Oracle, iut01dp.prm:  No recovery is required for target file /oracle/GoldenGate/Setup/ggs/dirdat/IUT01/rt000000, at RBA 0 (file not opened).
    2012-02-01 16:15:14  INFO    OGG-01478  Oracle GoldenGate Capture for Oracle, iut01dp.prm:  Output file /oracle/GoldenGate/Setup/ggs/dirdat/IUT01/rt is using format RELEASE 10.4/11.1.I am not sure how to check "extract read the changed data and store in to trail files? and the same check pump process read the trail files or not? "
    I can see the lt file "lt000003" getting updated regularly. which is the local trail file for extract process. The path of this file is :-
    /data01/oradata/GoldenGate/dirdat/IUT01
    The RMTTRAIL path for PUMP process is : -
    /oracle/GoldenGate/Setup/ggs/dirdat/IUT01/rt ( this path is present on the remote machine ) . This file is not getting updated regularly.
    The detail report file for iut01dp is as follows :-
    GGSCI (FIFLX595) 119> info iut01dp, detail
    EXTRACT    IUT01DP   Last Started 2012-02-01 16:15   Status RUNNING
    Checkpoint Lag       00:00:00 (updated 00:00:00 ago)
    Log Read Checkpoint  File /data01/oradata/GoldenGate/dirdat/dpump/IUT01/lt000000
                         2012-02-01 15:35:31.000000  RBA 0
      Target Extract Trails:
      Remote Trail Name                                Seqno        RBA     Max MB
      /oracle/GoldenGate/Setup/ggs/dirdat/IUT01/rt          0          0         10
      Extract Source                          Begin             End
      /data01/oradata/GoldenGate/dirdat/dpump/IUT01/lt000000  2012-02-01 15:35  2012-02-01 15:35
      /data01/oradata/GoldenGate/dirdat/dpump/IUT01/lt000000  2012-02-01 15:35  2012-02-01 15:35
      /data01/oradata/GoldenGate/dirdat/dpump/IUT01/lt000000  * Initialized *   2012-02-01 15:35
      /data01/oradata/GoldenGate/dirdat/dpump/IUT01/lt000000  2012-02-01 14:31  2012-02-01 14:31
      /data01/oradata/GoldenGate/dirdat/dpump/IUT01/lt000000  2012-02-01 14:31  2012-02-01 14:31
      /data01/oradata/GoldenGate/dirdat/dpump/IUT01/lt000000  2012-02-01 14:31  2012-02-01 14:31
      /data01/oradata/GoldenGate/dirdat/dpump/IUT01/lt000000  * Initialized *   2012-02-01 14:31
      /data01/oradata/GoldenGate/dirdat/dpump/IUT01/lt000000  2012-02-01 12:14  2012-02-01 12:14
      /data01/oradata/GoldenGate/dirdat/dpump/IUT01/lt000000  2012-02-01 12:14  2012-02-01 12:14
      /data01/oradata/GoldenGate/dirdat/dpump/IUT01/lt000000  2012-02-01 12:14  2012-02-01 12:14
      /data01/oradata/GoldenGate/dirdat/dpump/IUT01/lt000000  2012-02-01 12:14  2012-02-01 12:14
      /data01/oradata/GoldenGate/dirdat/dpump/IUT01/lt000000  2012-02-01 12:14  2012-02-01 12:14
      /data01/oradata/GoldenGate/dirdat/dpump/IUT01/lt000000  2012-02-01 12:14  2012-02-01 12:14
      /data01/oradata/GoldenGate/dirdat/dpump/IUT01/lt000000  * Initialized *   2012-02-01 12:14
      /data01/oradata/GoldenGate/dirdat/dpump/IUT01/lt000000  * Initialized *   First Record
      /data01/oradata/GoldenGate/dirdat/dpump/IUT01/lt000000  * Initialized *   First Record
      /data01/oradata/GoldenGate/dirdat/dpump/IUT01/lt000000  * Initialized *   First Record
    Current directory    /data01/oradata/GoldenGate
    Report file          /data01/oradata/GoldenGate/dirrpt/IUT01DP.rpt
    Parameter file       /data01/oradata/GoldenGate/dirprm/iut01dp.prm
    Checkpoint file      /data01/oradata/GoldenGate/dirchk/IUT01DP.cpe
    Process file         /data01/oradata/GoldenGate/dirpcs/IUT01DP.pce
    Stdout file          /data01/oradata/GoldenGate/dirout/IUT01DP.out
    Error log            /data01/oradata/GoldenGate/ggserr.logP.S. :- I am very new to GoldenGate, please also let me know how can i find out the answers for your queries. I hope the data provided above is sufficient for your queries , if you need anything more let me know.
    Suggest some idea to start the replication.
    Thanks.

  • TO check whether import is running

    Hi how to check
    whether import is running or not.I am using oracle 8.1.7 in solaris 8 .I used ps -ef | grep imp
    in os level its showing its running
    i am importing the indexes only no data,When i am checking the freespace in index tablespace its not reducing.i checked the transaction it showing 1 transaction running.
    How i confirm wheter import is running fine.The log also not updating ( i am using split and compress) after completing the job only i think it will update
    How i check whether this process is running
    with regards
    ramya

    Hello !
    You can try this:
    select substr(sql_text,instr(sql_text,'INTO "'),30) table_name,
    rows_processed,
    round((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60,1) minutes,
    trunc(rows_processed/((sysdate-to_date(first_load_time,'yyyy-mm-dd hh24:mi:ss'))*24*60)) rows_per_min
    from sys.v_$sqlarea
    where sql_text like 'INSERT %INTO "%'
    and command_type = 2
    and open_versions > 0;
    Regards,
    Jean-Luc

  • Fault in initializing asynchronous process

    Hi Guys,
    As many posts and articles suggest, asynchronous process is better because of its flexibility. I am very happy with it until I encounter the following problem.
    We do the fault handling on all of our processes, using both the catch and fault policy framework. For asynchronous process, we use a separate invoke to return the fault. Recently, we noticed a problem. For some reasons, every Sunday when the production BPEL server restarts, there are always a few BPEL process turned retired and off. We've already raised a service request for this on metalink. But this causes another very serious issue:
    The calling BPEL instance sends a request to initiate the asynchronous process . As it is turned off and retired by accident, the initialization fails. However, as it's asynchronous, the calling process is not notified, which means there is no fault raised on the calling process. This causes a lot of trouble because we are not notified with the problem. This has never been a problem because we did not have process turned off and retired before.
    This can be easily verified by a simple test case. Create a synchronous process A and an asynchronous process B. Let A invoke B. Then turn off and retire B. A instance can still be executed successfully without saying the problem calling B. If B is a synchronous process, A will always report a fault in such situation.
    Of course, the domain log file records this ORABPEL-02106 problem. but we don't want to check log file all the time and want to be notified when it happens. Is there a way to catch such exception/fault in the calling process?
    Thanks in advance!!!
    Steven
    Edited by: sw12345 on Jul 26, 2010 9:41 AM

    HI Sridhar,
    Thanks for you advice. I think I will do the following:
    1. I will still keep all process as asynchronous with the deliveryPersistPolicy as default.
    2. I will add a cron job to scan the server whenever it restarts to detect any default version of BPEL process with a retire or off status. If there are, I'll correct them.
    3. I will implement the program to re-submit the failed invoke. But I cannot make it an alert program because I cannot get detail fault through IInvokeHandle (Please correct me if I am wrong).
    By the way the defect of the "ClassCastException" is fixed in 10.1.3.5, I guess that can upgrade that too :-)
    Thanks,
    Steven

  • Re : what is diffrent Between  Synchronies and   Asynchronies  process

    Hi ,
          what is diffrent between Synchronies and   Asynchronies  process in  session Method and call Transcation method  pls give one Example...
    Thanks
    Arief .S

    Synchronus data processing is that in which the program calling the update task waits for the update work process to finish the update before it continues processing.
    In Asynchronus update the callng program does not wait for update work process to finish the update and continues as normal.
    A BDC done with sessions is always synchronus.
    A BDC with call transaction is by default asynchronus
    unless you define it explicitly as
    call transaction 'XXXX' ...... update 'S'.
    ( If you donot define update option it is defaulted to "A" ).
    The update method is of importance when one transaction locks data which may be required by a subsequent transaction . The subsequent transaction will fail if data is locked from previous one. An example would be you are creating sales order for same material in succession ( with asynchronus update ). Quite likely that some of transactions would fail due to material locked.
    For large volume of data Call Transaction will be faster but you have no restart capability here. Suppose from 1000 transactions 100 fails . You will have to run the BDC program again exclusing the ones which wrere successful. However with session method you have the option to process the error transactions again in SM35 . So if you are sure that errors will not occur use call transaction else use session method.

  • Asynchronous processing options.

    On a CF9 system which of the various Asynchronous options would the group-think consider the easiest and best to implement for the following purpose.
    I have a file on one server that does some initial processing.  When done sucessfully it posts a received file to another server.  I want it to NOT wait for a response from that server.  Rather I just want the request to finish and return an initial response to the client that contacted the first server.
    Here is the code where The file is posted to an internal server.
    <cftry>
         <!--- Submit POST request to the internal server with to deliver the XML file --->
         <cfhttp url="http://#application.internalServer#/pur-loader/ws/ppur_int_v0.cfc" method="post" multipart="yes" timeout="0">
              <cfhttpparam name="incomingFile" type="file" file="#cffile.serverDirectory & '/' & cffile.serverFile#">
              <cfhttpparam name="method" type="url" value="receiveData">
         </cfhttp>
         <cfcatch type="any">
              <cflog application="yes" file="PPUR" type="error" text="HTTP Request to the Internal Web service failed.">
              <cfrethrow>
         </cfcatch>
    </cftry>
    I thought the timeout=0 was a very old method to generate an Asynchronous process.  But, apparently I am wrong or this is no longer true.  As this code does not work.  The <cfhttp...> tag is waiting for a response and is timing out from the request time out not the http timeout, do to the interal process is going to take serverl minutes or more.
    Would a <cfthread...> work well here?  My concern in the number of threads that can be spawned.  The initial template may be accessed upwards of 60 times in a relatively short time.  Would creating 60ish long running threads with the <cfthread...> be of concern?
    Would a gateway improve that situation in any way?
    Are there other Asynchronous options I am overlooking?

    your problem could be timeout="0"...i dont think it is a good idea to use zero...and <cfhttpparam is missing some pounds around variables...

  • Firefox process is running but the GUI doesn't show up.

    System description:
    ThinkPad T61, Windows 7 X64 with both Firefox 3.6 and 4.0 beta installed.
    Now both version of Firefox won't show their GUI when I start them but the "firefox.exe *32" process is running.
    I tried to clean up all the customize information about the firefox, uninstall both of them and reinstall the 3.6, but the GUI still won't show up.

    Did you create a new profile for the Firefox 4.0 beta version?
    See http://kb.mozillazine.org/Profile_Manager
    If you use the same profile for both versions then create a new profile as a test to check if your current profile is causing the problems
    See [[Basic Troubleshooting#Make_a_new_profile|Basic Troubleshooting&#58; Make a new profile]]
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins"
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Process is running  in sm50

    Dear All,
    In sm50 i see one process is running from last 2 days.
    running        Yes           SAPLTHFB
    But in sm37  there is no process running.
    Please guide.
    Thanks & Regards
    Kumar

    Hi
    Sm50 is local work process monitor and sm66 is global work process monitor.
    If there is some long running process in sm50 you can actually relate the PID i.e. process id of this running program with the other transaction like ST06 in that detail analysis menu -> Top CPU user where actually you can find the pid of that process and you can check whether the process putting load on the system what kind of process is this system, external or user.
    And the process which you are asking means you are using a workprocess. You are the one using the system.
    If not required you can actually cancel the process.
    Hope it helps.
    Edited by: Esha Rajpal on Sep 4, 2008 7:45 AM

  • Process Chain running even after end date

    Hi,
    We are scheduling month end PC to run every 2 hours and also we have given end date for today evening.but process chain runs even after end date for every 2 hours.so we have to manually remove it from scheduling.
    Any method how can PC stop on its own after end date .
    Any help highly APPRECIATED
    Thanks
    Nilesh Pathak

    There might be multiple release jobs for thie process chain.
    So check the same. Right click on process chain --> Display scheduled jobs --> Here all the jobs logs of the chain will be available.. So check the same here...
    As you have descheduled it now.. probably you may not be having it as the first release job might be moved to Schedule status as soon as the END date has reached and then second one might have gone when you have removed the chain from Schduling..
    Anyway check the same.. and also check in SM37 whether any other user has triggered it manually today or not?

  • AQ Asynchronous Processes Count

    Hi,
    Oracle 9i Version 2
    aq_tm_processes = 2;
    job_queue_processes = 20;
    Does anyone know if it is possible to have more than 10 AQ callback procedures running at the same time?
    I use a PL/SQL callback procedure (asynchronous) that calls a JAVA stored procedure. The procedure simply inserts a row into a table and then sleeps for two minutes. When I look at the rows inserted into my test table it appears that 10 processes are run simultaneously. I would like to increase this number if possible.
    Any ideas or information is appreciated.
    Thanks,
    Keith

    I added a subscriber as you suggested and then registered the pl/sql function.
    When I enqueue messages to the queue, the callback procedure is still not
    notified that the queue received a message....
    Created a subscriber:
    DECLARE
    subscriber sys.aq$_agent;
    BEGIN
    subscriber := sys.aq$_agent('derive_sub','derivations.S3068_QUE',NULL);
    DBMS_AQADM.ADD_SUBSCRIBER(queue_name => 'S3068_que', subscriber => subscriber);
    END;
    registered the pl/sql procedure as such:
    declare
    reginfo1 sys.aq$_reg_info;
    reginfolist sys.aq$_reg_info_list;
    BEGIN
    reginfo1 := sys.aq$_reg_info('derivations.S3068_QUE:derive_sub',dbms_aq.namespace_aq, 'plsql://derivations.notifycb',HEXTORAW('FF'));
    reginfolist := sys.aq$_reg_info_list(reginfo1);
    sys.dbms_aq.register(reginfolist,1);
    END;
    enqueued the queue:
    DECLARE
    enqueue_options dbms_aq.enqueue_options_t;
    message_props dbms_aq.message_properties_t;
    message_handle RAW(16);
    message message_type;
    BEGIN
    message := message_type('TEST','TESTING');
    dbms_aq.enqueue(queue_name => 'S3068_que',
    enqueue_options => enqueue_options,
    message_properties => message_props,
    payload => message,
    msgid => message_handle);
    Commit;
    END;
    Any other ideas would be appreciated.
    Thanks,
    Keith

  • How to check hanged process in solaris

    Hi every one ...
    I have a 10 processes running in my server .. suddenly on process got hanged ..
    How can i check the hanged process...is there any specific command or ehat does the notation it shows in prstat command
    Thanks in Advance

    First, if the process is not showing 0% CPU utilization in prstat, it's not hung, although it may be stuck in an infinite loop. That's actually a significant difference, as an infinite loop is a logic error, whereas getting stuck could be a failure of some type.
    To see if it's really hung, you can use the "truss" or "pstack" commands:
    truss -p PID &or
    pstack PID &where PID is the process ID of the process you want to check. Note the ampersand to background the process. That's because if the process is indeed stuck in an unkillable wait for a kernel lock, your truss or pstack process will also be stuck and unkillable.
    The pstack call should just run and return. It will show the current call stack for all threads in the process. Run it several times and see if it changes. The truss call will run as long as the target process is running, and it will show all system calls made by the process. If it doesn't output anything at all the process is running in user space and should still be getting CPU time, or it's stuck.

  • Process chains run

    Hi all,
    We have a BW 3.5 system in our landscape.The process chains run get triggered through control M.When i checked the process chains are occupying the dialog work process.Is that how it should run.Dont we have a option to run in background.Thanks.

    Hi Ambarish,
    Process chains run in background.
    Check if your PC is really executing by using RSPC1 transaction and providing your PC name. Check the job log for the day when the PC is executed.
    You might also like to check if your system do have enough number of background processes. May be your basis team can help you here.
    Rrds,
    Nilima Rodrigues

Maybe you are looking for