Stopping a "run-away" request

What is the best way to stop a "run-away" request from a JSP? Say the User has a page from which he can issue a request. For example, say that the request performs a database query and returns a list of objects. If the system performance is slow, and the User is tired of waiting for a response, how may the applicaiton be designed to terminate a request to permit the User to issue a new request that is more granular and refined in its scope, and which will presumably run more quickly? Can one place a stop button on the form? Are there any threading issues in terms of the functionality with the stop button to be able to terminate the previous request that is "in-flight" with respect to the middle tier or the host?
Does killing the browser session (which causes the client to lose connectivity to the middle-tier) automatically stop the request?
Does pressing the stop button in the browser have the same effect?

We are running the JSP in an IFrame within the browser, and I have noticed that pressing the browser's stop button has no effect on the JSP.
Even if we could get this to work, I am not sure if it will cause the process on the middle-tier to stop consuming resources.
Thanks for your feedback. I guess I am interested in learning about any/all implementation alternitives, with a view to understanding the complexity/cost/and limitations of each implementation alternative.

Similar Messages

  • How to stop the running infospoke

    Hi Experts,
    there is a infospoke is still running so long time, it's incorrect, i'll cancel it as kick off the dependenies, i have no idea to how to stop the running infospoke. Anybody could tell me how to do it. thanks in advance.

    hi denny,
       Go to SM37 , find the job , stop the process
    or
       To stop the job find the job with the help of the request name ( TC - SM37 ),then in the job Details find the PID .
    find the process in the process Overview (SM50 / SM51 ).
    Set the restart to NO and Cancel the process without core
    u can also see these threads that are already posted:
    stopping v3 run job LIS-BW-VB_APPLICATION_02_010
    how to cancel or change the background job which is scheduled
      In SM37, for the job , click on Step button. Then from the menu Goto > variant. You can see the process chain name here.
    sure it helps
    Thanks
    Varun CN

  • ESSBASE V9 run away query

    Hi
    I have noticed that if you use a calc script to export your database from a Block storage cube, you can create a run away query. I was missing a parameter and ran a query to export some data - it just kept running, even after I tried to terminate it. is there a way to stop the query without having to bring down the server?

    I would doubt that the data could of caused this issue, I would of thought the problem would lie down to either metadata changes or the database compression changing.
    If you want to start the database up again, first make sure there is no ghost esssvr process running, if the database crashed it could leave a ghost process running and it will stop the database starting again, kill the process try again.
    If it doesn't work you could restore the db from backup.
    Or if you want to just clear the data, delete the ess**.pag ess*.ind and .esm files and start up the application, then reload the data.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Firefox is working fine, but there is a blue band at the top of the screen that says, "Downloading the latest applications", and there is a swirly, circle thing that would indicate downloading, but it won't stop or go away. I just updated to the latest v

    My Firefox is working fine, but there is a blue band at the top of the screen that says, "Downloading the latest applications," and it has a swirly, circle thing that indicates something is downloading, but it never stops or goes away. I updated to the latest version of Firefox, but the blue band is still there.
    == This happened ==
    Every time Firefox opened
    == Just the other day. no matter how long the computer runs, it doesn't stop.

    This problem can be caused by the MSN® Toolbar (Tools > Add-ons > Plugins)
    See [[Troubleshooting plugins]]
    See [[Troubleshooting extensions and themes]]

  • Zoom function run away in Indd CC 2014

    with ALT and trackpad/magic mouse - my zoom function run away in Indd CC 2014....

    Sounds like the same issue that's discussed in this thread: Fast playback (multicam) won't stop until end of timeline reached
    Exactly which release of CC7.x are you on? One bug in this vein was fixed in 7.1, but another case remains that we haven't been able to reproduce in-house.

  • How to stop a running job in 10g Scheduler?

    The following is a duplicate post. I posted the following to the general database forum before seeing that otn has a new scheduler forum:
    I am not able to find in the Admin Guide a method to stop a currently running instance of a job in the 10g scheduler.
    In 9i, I run the following script calling DBMS_JOB.broken and DBMS_JOB.remove to shut down currently running jobs:
    DECLARE
    jobid NUMBER;
    CURSOR c1
    IS
    SELECT job
    FROM dba_jobs
    WHERE priv_user = 'ME';
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1
    INTO jobid;
    EXIT WHEN c1%NOTFOUND;
    DBMS_JOB.broken (jobid, TRUE);
    COMMIT;
    DBMS_JOB.remove (jobid);
    COMMIT;
    END LOOP;
    CLOSE c1;
    END;
    How may I create similar code to shut down currently running jobs using DBMS_SCHEDULER in 10g? According to the Admin Guide, disabling jobs with the force option will still allow the job to finish.
    How can I terminate a running job in 10g?

    You can stop a currently running job using the STOP_JOB api.
    STOP_JOB Procedure
    This procedure stops currently running jobs or all jobs in a job class. Any instance of the job will be stopped. After stopping the job, the state of a one-time job will be set to SUCCEEDED whereas the state of a repeating job will be set to SCHEDULED or COMPLETED depending on whether the next run of the job is scheduled.
    Syntax
    DBMS_SCHEDULER.STOP_JOB (
    job_name IN VARCHAR2
    force IN BOOLEAN DEFAULT FALSE);
    Parameters
    Table 83-44 STOP_JOB Procedure Parameters
    Parameter Description
    job_name
    The name of the job or job class. Can be a comma-delimited list. For a job class, the SYS schema should be specified.
    If the name of a job class is specified, the jobs that belong to that job class are stopped. The job class is not affected by this call.
    force
    If force is set to FALSE, the Scheduler tries to gracefully stop the job using an interrupt mechanism. This method gives control back to the slave process, which can update the status of the job in the job queue to stopped. If this fails, an error is returned.
    If force is set to TRUE, the Scheduler will immediately terminate the job slave. Oracle recommends that STOP_JOB with force set to TRUE be used only after a STOP_JOB with force set to FALSE has failed.
    Use of the force option requires the MANAGE SCHEDULER system privilege.
    Setting force to TRUE is not supported for jobs of type executable.
    Usage Notes
    STOP_JOB without the force option requires that you be the owner of the job or have ALTER privileges on that job. You can also stop a job if you have the CREATE ANY JOB or MANAGE SCHEDULER privilege.
    STOP_JOB with the force option requires that have the MANAGE SCHEDULER privilege.

  • How to tell if the AE programm is called from (1) SYSTEM PROCESS REQUEST or (2) page run control request

    We just wrote an AE program and is called through the vanilla SYSTEM PROCESS REQUEST.
    It's running on a daily basis ie. with RECURRENCE.
    Now we need to call the same program through the regular page run control request.
    But we are not how to recognize from inside the AE program if whether it's been called from SYSTEM PROCESS REQUEST or RUN CONTROL REQUEST.
    Any of you might have suggestion ?
    Any technique or workaround is also appreciated.
    THANKS in Advance .

    This AE pgm is currently automatically called from SYSTEM PROCESS REQUEST on a daily basis to load data from an input file deposited on the server ready for pickup.
    We would like to use the same AE pgm ( thus using the same validation and loading logic ) to load the same file format but defined by the user ( via attachment load ) as needed any time during the day.
    The user will initiate this AE pgm online ( ie. from a page with his parameters ).
    Currently, the pgm now already runs automatically daily and we wish to make it also available to be run by user anytime in the day
    To achieve that, we would need to know:
    Is the AE pgm ran by (a) the user or by the (b) SYSTEM PROCESS REQUEST so that the program can decide of where to take input file.
    (a) Take from an attachment defined by user or (b) from the input file already deposited on the server for pickup
    That is the reason why we try to detect who called the AE pgm in order decide where to pickup the input file.
    Your help is much appreciated as I do researches but so far haven't gotten a concluded decision.
    Thank you.
    Message was edited by: Kel_123

  • How to stop a running report in BI Publisher?

    Is there a way to stop a running report/sql in BI Publisher from BI Publisher itself?  ( killing it in database by DBA is one way)
    Thanks
    Ashish

    Yes that is the only option which we can stop a running report in BI Publisher
    I suspect you'll need to ask your DBA to kill the session.
    However, if you have DBA privileges yourself, you can do this by a few methods, some of which are described here:
    http://www.oracle-base.com/articles/misc/KillingOracleSessions.php
    Mark if helps,
    Thanks,

  • HT203254 I have this problem on my macbook pro. I live in Sault Ste marie, ON. I took it to Genius Bar at the Apple Retail Store at Eton Center Toronto. They said it cannot be fixed for free, It would cost me more than a grand. I scared & run aways. Haha.

    I have this problem on my macbook pro. I live in Sault Ste marie, ON. I took it to Genius Bar at the Apple Retail Store at Eton Center Toronto. They said it cannot be fixed for free, It would cost me more than a grand. I scared & run aways. Haha.I think I should call & set up an appointment at apple third party service provider in my city. wish me luck

    Ah, but there's this caveat:
    Apple will continue to evaluate the repair data and will provide further repair extensions as needed.
    And a number of folks have found sympathetic managers and had the 2008 logic boards replaced, even after four years.
    Clinton

  • How to stop the running process chain

    How to stop the running process chains or infopackges...just qm status change is enought?

    BI - SM 37 - Kill the Job
    ECC - SM 50 - Kill the job

  • List of long running Conc Requests required for last 6 days

    Hi All,
    I need List of long running Conc Requests required for last 6 days.But somewhat my query is not working and giving me the output.
    Could anyone please let me know what is wrong in the query which gives me the output for 60 mins but not for the last 6 days as required.
    Query:
    set echo off
    set feedback off
    set linesize 97
    set verify off
    col request_id format 9999999999 heading "Request ID"
    col exec_time format 999999999 heading "Exec Time|(Minutes)"
    col start_date format a10 heading "Start Date"
    col conc_prog format a20 heading "Conc Program Name"
    col user_conc_prog format a40 trunc heading "User Program Name"
    spool long_running_cr.lst
    SELECT
    fcr.request_id request_id,
    TRUNC(((fcr.actual_completion_date-fcr.actual_start_date)/(1/24))*60) exec_time,
    fcr.actual_start_date start_date,
    fcp.concurrent_program_name conc_prog,
    fcpt.user_concurrent_program_name user_conc_prog
    FROM
    fnd_concurrent_programs fcp,
    fnd_concurrent_programs_tl fcpt,
    fnd_concurrent_requests fcr
    WHERE
    TRUNC(((fcr.actual_completion_date-fcr.actual_start_date)/(1/24))*60) > NVL('&min',45)
    and
    TRUNC(((fcr.actual_completion_date-fcr.actual_start_date)/(1/30))*6) > NVL('&days',5)
    and
    fcr.concurrent_program_id = fcp.concurrent_program_id
    and
    fcr.program_application_id = fcp.application_id
    and
    fcr.concurrent_program_id = fcpt.concurrent_program_id
    and
    fcr.program_application_id = fcpt.application_id
    and
    fcpt.language = USERENV('Lang')
    ORDER BY
    TRUNC(((fcr.actual_completion_date-fcr.actual_start_date)/(1/24))*60) desc,
    TRUNC(((fcr.actual_completion_date-fcr.actual_start_date)/(1/30))*6) desc;
    spool off
    Thanks for your time!
    Regards,

    Hi,
    I suggest that you look at this line in particular:
    TRUNC(((fcr.actual_completion_date-fcr.actual_start_date)/(1/30))*6) > NVL('&days',5)and consider whether it is asking the question that you want it to ask.
    Furthermore, it looks like you are expecting to get time in minute from the following line, and this definitely does not return minutes:
    TRUNC(((fcr.actual_completion_date-fcr.actual_start_date)/(1/24))*60) I recommend finding one or two IDs for concurrent requests that you know are running for a long time, comparing the start and end times, testing that information against the output of the above functions, and adjusting your query accordingly.
    Regards,
    John P.
    http://only4left.jpiwowar.com

  • How to make a button to stop and run a for loop?

    How to make a button to stop and run a for loop?  and if it is stopped it shall start from where i t stopped.

    Your VI has some very fundamental flaws.
    The start/stop button is outside the FOR loop, thus it will NOT get read during execution of the FOR loop, but only before the FOR loop starts. Think dataflow!
    Thus the terminal of the start/stop button belongs inside the FOR loop.
    Your FOR loop iterates 20x, which probably takes about a nanosecond. You will NOT be fast enough to reliably press the start/stop button during a specific iteration of the FOR loop.
    Your code does not "stop and run" a FOR loop (sic). The loop always spins, but executes an empty case when "Stopped". I guess that's what you actually want?
    Once you solve (2), the x indicator will contain a random value whenever you "stop".
    As soon as the 20 iterations complete, the outer while loop spin an things start over, another nanosecond later.
    Place e.g. a 500ms wait inside the FOR loop to solve this.
    Don't place terminals of indicators on top of formula nodes.
    Your formula does not produce any output, so really has no purpose.
    Use a real "stop" button to terminate the while loop (mechanical action: latch when released). Right now you are using a plain switch, which does not reset to false before the next run. This means that you need to manually reset it before running the program again.
    It is oftern useful to operate the VI in execution highlighting mode. You will immediately see that your button does not get read during execution of the FOR loop. Try it!
    LabVIEW Champion . Do more with less code and in less time .

  • Correct way to stop and run again a FPGA reference

    Hi guys !
    I have some issues when I try to stop and run again an FPGA vi, I explain.
    I have two DMA FIFO, one to send data to the FPGA from the CPU, and another from the CPU to the FPGA. When it receives data, the FPGA processes them and sends them back to the CPU and according to the result the CPU makes something. For instance it can be switch on LEDs or rotate a DC motor.
    But to do this kind of actions, I have to use an "FPGA Personality", LEDs and I/O Pins seem to be managed by the FPGA core. So I've to close my FPGA vi reference in charge of receive data from the CPU, make my LEDs switching on and then after rerun again my FPGA VI again, If I don't do that LEDs blinking or motor rotation stay without effect... But close and start again the FPGA VI creates problems during the execution, especially for previous waiting of reading on the DMA FIFO... I've tried to catch errors on the FIFO to start again the FPGA VI with a right timing but nothing... I'm lost and I think that I'm missing something, a concept or something else.
    I can't share my code because I'm working for a company but I would like to know if you have VI with this type of structure : an FPGA reference which have to be halted to allow hardware interaction with the default FPGA personality and then run again, everything with a good synchronisation...
    I hope I'm clear, but if it's not the case, I can reword if necessary.
    Thank you for the help !
    Afghow.
    Solved!
    Go to Solution.

    Afghow wrote:
    I think the end user doesn't have to know that when he wants to make LEDs blinking he has to call a FPGA bitfile. I mean running an FPGA VI and want to make LEDs blink from the CPU VI at the same time should be transparent for the user and this without keep in mind horrors like bitfile switching for instance.
    He doesn't have to load a different FPGA bitfile.  Everything you need that FPGA to do should be in the bitfile.  Keep in mind that we are talking about HARDWARE when we talk about FPGA.  Each time you change bitfiles, the hardware has to be reconfigured.  That takes time and is pointless for the situation you are talking about.  Build your FPGA code to do everything you need it to and you will be fine.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • HT4097 my i-pad fall and and it stopped working right away! what should i do? please help if u can

    my i-pad fall and and it stopped working right away! what should i do? please help if u can

    Get the new keyboard at eBay and replace by yourself may be cheaper way, though you're required higher skill and well know about MacBook Air.
    http://www.ebay.com/sch/i.html?_from=R40&_trksid=p2050601.m570.l1313.TR0.TRC0.H0 .Xmacbook+air+2011+keyboard&_nkw=macbook+air+2011+keyboard&_sacat=0
    https://www.youtube.com/watch?v=gLbasVD69xo

  • St22 show u201CCOMPUTE_BCD_OVERFLOWu201D and st03 stop at running

    Hi guys, my 4.6C system in st22 show u201CCOMPUTE_BCD_OVERFLOWu201D and st03 stop at running at 08.05.2010.
    The dump detail show:
    ABAP runtime errors COMPUTE_BCD_OVERFLOW
    Occurred on 12.05.2010 at 17:15:07
    Overflow for arithmetical operation (type P) in program "SAPLSTUW "
    What happened?
    The current ABAP/4 program "SAPLSTUW " had to be terminated because one of the statements could not be executed.
    This is probably due to an error in the ABAP/4 program.
    A value does not fit in a calculation field.
    If you require an interim solution to this error, you can look in the SAP note system. If you have access to
    the SAP notes system yourself, enter the following search strings:
    "COMPUTE_BCD_OVERFLOW"
    "BCD_FIELD_OVERFLOW" (By release 4.0a, this error has been remedied at this
    point)
    "SAPLSTUW " or "LSTUWF01 "
    "CONVERT_PFDIAREC"
    Appreciate anyone can help and have any ideal what is going on?
    Thanks

    Try this note: SAP Note 1384846 - ST03N: BCD_OVERFLOW in
    SAPWL_LCL_03N_HITLNRESPTI
    and also check SAP note 881124
    It is a good idea if you give all the system information at the beginning so assistance can be more relevant.
    Maybe you should start pushing SAP for an update.

Maybe you are looking for