Long running Job, but executes fine online

Hi
  There is a program that is executing for close to 18 hours and still has not completed when executed background, however when the program is executed online, the program executes within matter of minutes.
  Please advise what might be causing this.
  Answers leading to solution will be rewarded points.
thanks and regards,
Arun

Hi,
Go to SM50
Choose the process..
In the table column check which table it is processing..
Also then in the menu..
Program/session -> program -> debugging.
It will take you to in the debugging mode..
Check where exactly it is running..
Thanks,
Naren

Similar Messages

  • Prgess indicator on long running jobs

    I have an FX application that is directly linked to my database. The program allows all DML operations as well as user defined actions (action commands and various other methods). I have the same application running in Swing, SWT, Canoo ULC and al works just fine. In each of the other front end types, the application automatically displays a busy indicator when a long running job is executed. Now I need this in FX.
    My application is basically a Rich Client framework which allows the same business logic and forms to have different front ends depending on customer requirements. The application is built by customers in a 4GL style development tool. The application is actually built at run time and the data is provided by the user through various services. Because I am building an FX program for a framework, I don't know when the user may execute a long running job when, for example, a button is pressed. I have full control over the retrieval and modification of data but not user interaction. I am therefore looking for a busy indicator that comes automatically when the main thread is waiting.
    Any help would be great!

    Hi guys and thanks for your answers
    I may have stretched the mark with "long running jobs" by these I mean a database query, a price calculation, order process etc. These are standard jobs that are issued on a Rich Client application. Basically I have a screen which will execute a query, and I want to give the user feedback when the query is executing so that he doesn't think that the application has hung. In Swing I have done this by creating my own event queue with a delay timer:
    public class WaitCursorEventQueue extends EventQueue implements DelayTimerCallback
        private final CursorManager cursorManager;
        private final DelayTimer    waitTimer;
        public WaitCursorEventQueue(int delay)
            this.waitTimer = new DelayTimer(this, delay);
            this.cursorManager = new CursorManager(waitTimer);
        public void close()
            waitTimer.quit();
            pop();
        protected void dispatchEvent(AWTEvent event)
            cursorManager.push(event.getSource());
            waitTimer.startTimer();
            try
                super.dispatchEvent(event);
            finally
                waitTimer.stopTimer();
                cursorManager.pop();
        public AWTEvent getNextEvent() throws InterruptedException
            waitTimer.stopTimer(); // started by pop(), this catches modal dialogs
            // closing that do work afterwards
            return super.getNextEvent();
        public void trigger()
            cursorManager.setCursor();
    }I then implemented this into my application like this:
    _eventQueue = new WaitCursorEventQueue(TIMEOUT);
    Toolkit.getDefaultToolkit().getSystemEventQueue().push(_eventQueue);Now each time the application waits for a specific time, the cursor will become a wait timer. This give s the user a visual feedback so that he knows that the application is working and not just hung. By doing this, I do not need to wrap each user callout in a timer. Much easier like this!
    I would like to implement the same in FX.
    Edited by: EntireJ on Dec 15, 2011 12:34 AM

  • How to research a long running job from 3 days ago

    Re: How to research a long running job from 3 days ago
    Client called to say that a job that normally runs for 6 hours ran for 18 hours on 11/01. 11/01 was a Saturday, and end of month. The long running job writes to a log and I can from the log that that the problem started right around 10:43am. Every step
    before 10:43 was taking the normal amount of time. Then at 10:43 a step that takes seconds hung for 12 hours. After 12 hours the step finished and the job completed successfully.
    I looked at the SQL Log, Event Log, Job History (for all jobs). What else can I look at to try and resolve an issue that happened on 11/01/2014?

    It does execute an SSIS package.
    Personally I feel this as kind of bug in SSIS package but I am not expert in SSIS so I would move it to SSIS forum. Please update your question giving complete information what SSIS package does.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Re:How to determine the long running jobs in a patch

    Hi ,
    How to determine the long running jobs in a patch .
    Regards

    Hi,
    Check the below MY ORACLE SUPPORT note:
    Note.252422.1 .... Check Completed Long Running Jobs In Oracle Apps.
    Best regards,
    Rafi

  • Long Running Jobs based on average time of last 5 run

    Hi Experts,
    I need a query to find out the Long Running Jobs, based on average time of last 5 run.
    Could you please help me.
    Thanks in advance. 
    --------------------------------- Devender Bijania

    SELECT 
        [sJOB].[name] AS [JobName]
        , CASE 
            WHEN [sJOBH].[run_date] IS NULL OR [sJOBH].[run_time] IS NULL THEN NULL
            ELSE CAST(
                    CAST([sJOBH].[run_date] AS CHAR(8))
                    + ' ' 
                    + STUFF(
                        STUFF(RIGHT('000000' + CAST([sJOBH].[run_time] AS VARCHAR(6)),  6)
                            , 3, 0, ':')
                        , 6, 0, ':')
                    AS DATETIME)
          END AS [LastRunDateTime]
        , CASE [sJOBH].[run_status]
            WHEN 0 THEN 'Failed'
            WHEN 1 THEN 'Succeeded'
            WHEN 2 THEN 'Retry'
            WHEN 3 THEN 'Canceled'
            WHEN 4 THEN 'Running' -- In Progress
          END AS [LastRunStatus]
        , STUFF(
                STUFF(RIGHT('000000' + CAST([sJOBH].[run_duration] AS VARCHAR(6)),  6)
                    , 3, 0, ':')
                , 6, 0, ':') 
            AS [LastRunDuration (HH:MM:SS)]
          , CASE [sJOBSCH].[NextRunDate]
            WHEN 0 THEN NULL
            ELSE CAST(
                    CAST([sJOBSCH].[NextRunDate] AS CHAR(8))
                    + ' ' 
                    + STUFF(
                        STUFF(RIGHT('000000' + CAST([sJOBSCH].[NextRunTime] AS VARCHAR(6)),  6)
                            , 3, 0, ':')
                        , 6, 0, ':')
                    AS DATETIME)
          END AS [NextRunDateTime]
    FROM 
        [msdb].[dbo].[sysjobs] AS [sJOB]
        LEFT JOIN (
                    SELECT
                        [job_id]
                        , MIN([next_run_date]) AS [NextRunDate]
                        , MIN([next_run_time]) AS [NextRunTime]
                    FROM [msdb].[dbo].[sysjobschedules]
                    GROUP BY [job_id]
                ) AS [sJOBSCH]
            ON [sJOB].[job_id] = [sJOBSCH].[job_id]
        LEFT JOIN (
                    SELECT 
                        [job_id]
                        , [run_date]
                        , [run_time]
                        , [run_status]
                        , [run_duration]
                        , [message]
                        , ROW_NUMBER() OVER (
                                                PARTITION BY [job_id] 
                                                ORDER BY [run_date] DESC, [run_time] DESC
                          ) AS RowNumber
                    FROM [msdb].[dbo].[sysjobhistory]
                    WHERE [step_id] = 0
                ) AS [sJOBH]
            ON [sJOB].[job_id] = [sJOBH].[job_id]
            AND [sJOBH].[RowNumber] = 1
    ORDER BY [LastRunDateTime] desc,
             [LastRunDuration (HH:MM:SS)] DESC
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Trigger Alert for Long Running Jobs in CPS

    Hello,
    I am currently trying to make a trigger so that I can monitor the long running jobs in the underlying ERP. Can you help me on the APIs to use?
    Im trying to modify my previous alert - Chekcing of failed jobs
      // only check error jobs
      if (jcsPostRunningContext.getNewStatus().equals(JobStatus.Error)) {
        String alertList = "email address ";
        String [] group = alertList.split(",");
        for (int i = 0; i < group.length; i++) {
          JobDefinition jobDefinition = jcsSession.getJobDefinitionByName("System_Mail_Send");
          Job aJob = jobDefinition.prepare();
          aJob.getJobParameterByName("To").setInValueString(group<i>);
          aJob.getJobParameterByName("Subject").setInValueString("Job " + jcsJob.getJobId() + " failed");
          aJob.getJobParameterByName("Text").setInValueString(jcsJob.getDescription());
    Im trying to look for the API so I can subtract the system time and the start time of the job and compare it to 8 hours?
    if (jcsPostRunningContext.getNewStatus().equals(JobStatus.Error)) {    <--  Can I have it as ( ( Start Run Time - System Time ) > 8 Hours )
    Or is there an easier way? Can somebody advise me on how to go about this one?

    Hi,
    You can do it using the api:
    if ((jcsJob,getRunEnd().getUTCMilliSecs() - jcsJob.getRunStart().getUTCMilliSecs()) > (8*24*60*1000))
    This has the drawback that you will only be notified when the job finally ends (maybe more then 8 hours!).
    The more easier and integrated method is using the Runtime Limits tab on your Job Definition or Job Chain. This method can raise an event when the Runtime Limit is reached. The event can trigger your notification method.
    Regards Gerben

  • This is urgent please help!  long running job in sm37 but not in sm66

    Hi,
    Can someone please help for an explanation as to why if you call sm37, you can see that the job is long running (example about 70,000 sec), but when you look at the PID where the job is running in sm66 it does not show 70,000 sec but only around 6,000 sec.
    Can someone please explain why?  Thank you very much

    For background processes, additional information is available for the background job that is currently running. You can only display this information, if you are logged onto the instance where the job is running, or if you choose Settings and deselect Display only abbreviated information, avoid RFC. In any case, the job must still be running.
    Regards
    Anilsai

  • Long running job in BW

    Hello Gurus,
           which transaction code can be used to show up all long-time running jobs in bw?  how can we identify if a job is running too long?
    Many thanks,
    frank

    Hi,
    Please check the below
    SM66 - Global Work Process Overview
    SM37 - Simple Job Selection ( Only active jobs)
    SM50 - Process Overview
    Sort them by Time
    -Vikram

  • Ccms monitoring - Long running job

    I checked in CMMS monitoring (RZ20) version ECC 6.0, there is no option to monitor long running background job.
    How to monitor long running background job using transaction RZ20?

    Hi,
    Check this [link|Re: How to monitor long running background job.;
    Thanks
    Sunny

  • Terminate long running job

    Hi All,
              I have a job that is scheduled to run every 5 minutes in our production environment. However , this job frequently exceeds a runtime of 5 minutes and as a consequence gets cancelled by the next running job. I need to find a way to cancel/terminate this job in the event that it exceeds 4m45s. I want to do this using another job which should be event trigerred, the event being the original job exceeding the runtime of 4m45s. Please suggest how I can do this. Thanks.
    Joyee

    I cant help it this sounds a little like caring about the symptoms instead of curing the disease.
    Isnt there a possibility to e.G. rework the coding of your first job to increase its performance and make sure it wont take more than 4 minutes and 45 seconds?
    Ok i´m not aware of the Problems you are facing, maybe your job has to wait for something and therefor cant be improved further. But still if there is any possibility to make sure its runtime wont exeed 5 minutes then this should be the way to go in my eyes.

  • Superdrive no longer recognizes CD, but works fine with DVD

    my Superdrive seems to have a problem recognizing any type of CD media, but works fine with DVD media.
    I reinstalled Leopard and still the same problem. I also zapped the NVRAM (this is an Intel 2.0 Ghz Mac Mini w/ 2 GB Ram.
    Is there anything else I can do or do I just need to replace the drive?

    Typically when this sort of symptom appears, it relates to a hardware failure, either due to a faulty lens, or dirt. You might try a lens cleaner to ensure it is not the latter.
    Since this is a 2.0GHz mini, it ought to be still under warranty - if that is the case it would be wise to have Apple, or an approved service provider, check it and undertake any necessary repairs.

  • Long Running Job SAP_XMB_PERF_AGGREGATE

    Hello,
    Above mentioned SAP job is running for days. I tried with changing parameters In integration engine administration SXMB_ADM for Category PERF there is a paramter DAYS_TO_KEEP_DATA.
    Created the Index too in Table SXMSPFAGG. But still the job is taking very long time.
    could any one faced same kind of issue and fixed with different solutions, pls
    FYI - My system -- SAP XI 3.1 SPS23.
    Thanks
    Vivekanandan

    Hello Nishwanth,
    Thanks for your reply.
    Job is running with the table SXMSPFAGG. But, i checked the table SXMSPFRAWH as mentioned in the SAP Note.(Index - AGG already exists.
    Even this index is required for the table SXMSPFAGG also.
    Could you please clarify me?
    Thanks
    Vivek

  • Long running job in BW source system - Urgent

    Hello,
    While loading BW data delta load for data source 0CO_OM_CCA_9 the
    corresponding R/3 job is taking the long time to complete approximately
    3 days.
    When we checked the Job log in the Source sytem we found the following
    entry
    "2 LUWs confirmed and 2 LUWs to be deleted with function module
    RSC2_QOUT_CONFIRM_DATA"
    and job is taking too much time to complete this task.
    Can you please help me out to resolve this issue at earliest?
    Best Regards

    Hi Venkata,
    When you check indexes in SE11 -> COEP -> Index 4
    You may see the status as "Active", but did u check the line below ?
    it should read
    "Index COEP~4 exists in database system"
    If it reads
    "Index does not exist in database system" , then the INDEX 4 is not active and not used.
    Cheers,
    Praveen.

  • Long running job

    Hi Guru's
    I've created generic datasource using structure and FM.I've chacked in rsa3 it's working fine but when I schedule INIT from bw it's still in yellow status and 1672 from 0 records on monitor screen.
    The records are in psa.
    Please advise what could be the wrong?
    Ramana.

    Hi,
    Are you using cursors??
    110 is for development thats why its working and and this is bound to give problems in production.
    Try to check the init part of the code...it seems you are pushing too many records when you open the cursor or if you are fetching the internal tables.
    function modules will not taking settings from infopackage until you do a coding in the fucntion module to do that and this can be taken only after the records are selected from the tables.
    can you try to use the he parameter MAXSIZE and divide it by may be 1000 or something so that the request fethced during the cusror is less.
    never tried this so not sure if it will work.
    Thanks
    Ajeet

  • Query regarding Calling   long run jobs

    I am Calling a java standalone program through a cronjob.
    In the program I have written logic that will create a CSV file.
    The problem is sometimes it takes long time to create the csv file, so I need to facilitate user some way of cancelling it. User will cancel it through UI.
    Can any body suggest what could be the best approach to implement it.
    Also I want multi threaded approach too because many users will request to create CSV file.
    Thanks

    How about this - create a thread for every user request and let it run in the background and when the file is generated just email the generated file to the user.
    Advantage of this is, if the user runs this through a web page, then this allows the user to just kick off that generation process and navigate to other pages. He doesn't have to stay on the same page until the file is generated.
    You can have another page where the user can see the list of threads running and can stop his thread if needed. This is done by invoking thread's interrupt() method. The contents of this page depends on the user's role.
    HTH.

Maybe you are looking for

  • Unable to read selected values from selectManyListbox control

    I have selectManyListbox component in my jsp page as follows: <h:selectManyListbox id="allBusinessFunctions" styleClass="maintxtbox selectCampaignBox" > <f:selectItems value="#{pc_CreateCampaigns.bizFunctions}"/> </h:selectManyListbox> I am doing mul

  • Gmail no longer pushes new messages to Apple Mail in Mavericks

    I Googled [gmail push Mavericks OR 10.9 "use idle command"], and restricted results to the last year; absolutely nothing came up, so I decided to post this: Gmail seems to no longer push email to Apple Mail in Mavericks-at least for me. In OS 10.8 an

  • Where the sub operation details of a activity of a WBS element are stored

    Hello experts,                     Where can i find the suboperation details ( quantities , UOM .........)  of the activities of WBS element in CJ20N transaction. In which table it is being stored.

  • WSDL vs SOAP

    Hello! I would like to have the differences between SOAP and WSDL explained to me. What are the advantages and disadvantages? Are SOAP used for the same purpose as WSDL or are the different kind of documents. I know thet WSDL i.e. can be used for met

  • Get popup in Batch session

    report ZPRG        no standard page heading line-size 255. include bdcrecx1. DATA : BEGIN OF GT_COUNT OCCURS 0,         DOC_NUM TYPE IKPF-IBLNR,         FI_YR TYPE IKPF-GJAHR,         CNT_DATE TYPE IIKPF-ZLDAT,         PER_VAR TYPE IIKPF-ABWEI,