How to kill a system process on terminal

Be very careful when killing system process with this procedure, use it only if you really have no other choise:
1- Open Terminal
2- Type: top on the shell
3- Find the number of the process you what to terminate Exp: If you what to kill NortonMiss it will be display like this:
262 NortonMiss 0.0% 0:00.02 1 21 19 68K 540K 436K 27.5M
4- You can't kill this process, is system protected, you need to logon as superuser, to do this, open an other window of the shell and type:
sudo kill 262
(the number of the process is different on each session, and depending on the application or process you what to terminate)
5- You'll be ask for your password, type it and press enter, the app will be kill! (when typing the password, it will not be display on the screen). To cancel the kill press CTRL+Z
NOTES:
Some system process will reboot after they are killed, but this command is usefull if the process hang up, when is rebooted it will work again on most cases.
A superuser have access to all the process and has no restriction on the use of commands on UNIX. Be sure not to reveal the password of your computer to anybody, because if they logon as superuser on your mac, they can deleted any folder.
Use very caution on the use of the "sudo" command.
iMac (Summer 2001) 600Mhz RAM=384MB Slot loading   Mac OS X (10.3.5)   CD-RW, 40 GB hard drive, Slot loading CD-RW

Well, I only post this as one method, but I know that UNIX is a very flexible OS, so I'm sure there are more ways to kill a process, thanks for sharing them, and...
NifflerX, Thanks! I didn’t know that one, but I also like the top command, 'cause I can see the process activity as I work, useful to know if the process still hang-up or all of the sudden goes back to life like a nosferatu... hehehe. By the way... all that people that just got their macs after a PC with.... agggghhh... Windows XP (sorry I say that)... you will find that the top command is the counterpart of the Process Viewer that shows up by pressing CTRLALTDEL on the ugly PC keyboard.
Oh.,. And Daniel Macks, you can cancel the command with CTRL+Z when the prompt asks for your password, only at this point.
Thanks for the extra tips everyone!
iMac (Summer 2001) 600Mhz RAM=384MB Slot loading   Mac OS X (10.3.5)   CD-RW, 40 GB hard drive, Slot loading CD-RW

Similar Messages

  • How to kill a system process from java code.

    Hi,
    i need to kill or remove windows system process like cmd.exe from java code.
    like removing it from end process in task mgr.
    i tried below code but its not removed.
    is there a better way we can do this.
    killing a system process from java code will create any issues?
       public static void main(String[] args) throws Exception {
       String[] cmd = { "cmd.exe" };
       Process p = Runtime.getRuntime().exec(cmd);
       p.destroy();
    any suggestions or ideas are really appreciated.
    thanks.

    Hi  jtahlborn, mohan
    yes the process is created from my java code. 
    in my code iam creating a process like below and if it is running for a long i need to kill it from java.
    For that " Runtime.getRuntime().exec("taskkill /F /PID " +  7408); " is working fine.
    7408 is my process id in taskmgr created from java and iam manually passing the PID it to kill it.
    But i need to get the PID from java code.
    Thanks for your suggestions.
    Sample Code:
    public static void main(String args[])
            try {
              Process process = Runtime.getRuntime().exec(new String[]{"cmd.exe","/c","start"});        
              Field f = process.getClass().getDeclaredField( "handle");
              f.setAccessible( true);         
              long procHandle = f.getLong( process);
              System.out.println( "prochandle: " + procHandle );
              //Runtime.getRuntime().exec("taskkill /F /PID " +  procHandle);
            } catch( Exception e) {
              e.printStackTrace();

  • How to kill a BPM Process

    Hi Guys,
    I want to know how to kill a BPM process.
    any help would be appreciated
    Thanks,
    Srini

    Srini,
    Refer this -Re: How to stop infinite loop?
    raj.

  • How to kill an instance process in BPM studio 6.0

    Hi i'm Fabio.
    I'm working on BPM Studio 6.0 and i need to complete a task.
    I have an instance id process, and i need to create a new process in order to kill this istance id.
    I read how to create a PAPI client (http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/papi/index.html?t=modules/papi/c_Writing_Your_First_Java_PAPI_Program.html) but it doesn't work for my purpose.
    First of all, i understood that i have to follow these step:
    * Import the required libraries.
    * Create a process service.
    * Create a process service session.
    * Perform operations with PAPI.
    * Close the process service.
    Now, i'm working on my xpdl file and i'm using the Standard Module "Fuego" and my plan is to create a process servcie, a process service session and then operate with PAPI.
    But using the PAPI module include in the BPM studio 6.0 i'm no able to load the library for the session import fuego.papi.ProcessServiceSession;
    so i'm worng something. Could you tell me how can menage this problem? Really do i need a session? Is possible to abort an istance process in BPM studio or i need to load my ear project in Enterprise environment and then kill my instance process? Thanks, regards Fabio.

    Thanks Dan, i read your suggestion but my boss was to implement a different solution:
    package hp.abort.process;
    import fuego.boot.*;
    import fuego.papi.CommunicationException;
    import fuego.papi.InstanceInfo;
    import fuego.papi.InstanceId;
    import fuego.papi.ProcessService;
    import fuego.papi.ProcessServiceSession;
    import fuego.papi.OperationException;
    import java.util.Properties;
    import javax.transaction.*;
    import java.lang.Exception;
    public class AbortProcess {
    public static void main(String[] args) {
    /////////////////// API Initialization ///////////////////
    Properties configuration = new Properties();
    configuration.setProperty(ProcessService.DIRECTORY_ID, "default");
    configuration.setProperty(ProcessService.PROJECT_PATH, "C:/Documents and Settings/Administrator/AlbpmWorkspace/EarOMatic");
    configuration.setProperty(ProcessService.WORKING_FOLDER, "C:/tmp");
    try {
    ProcessService processService = ProcessService.create(configuration);
    /////////////////// Establish a session ///////////////////
    ProcessServiceSession session = processService.createSession("adminEarOMatic", "adminEarOMatic", "localhost");
    /////////////////// Operate with PAPI ///////////////////
    for (String processId : session.processesGetIds()) {
    System.out.println("\n Process: " + processId);
    for (InstanceInfo instance : session.processGetInstances(processId) ) {
    System.out.println(" -> " + instance.getId());
    System.out.println("ActivityName -> " + instance.getActivityName());
    System.out.println("ActivityId -> "+ instance.getActivityId());
    //Problema: nn vuole ActivityId ma Process Id
    session.activityAbort("/CreateEurekaSRService#Default-1.0/eomWait","/CreateEurekaSRService#Default-1.0/1/0@EarOMatic");
    /////////////////// Close the session ///////////////////
    session.close();
    /////////////////// Release API Resources ///////////////////
    processService.close();
    } catch (CommunicationException e) {
    System.out.println("Could not connect to Directory Service");
    e.printStackTrace();
    } catch (OperationException e) {
    System.out.println("Could not perform the requested operation");
    e.printStackTrace();
    Now, i got the following exception:
    Local folder C:/tmp\system\Schema-4154784351820594721\catalogs found.
    Loading catalogs from local folder: C:/tmp\system\Schema-4154784351820594721\catalogs
    0 jars found locally.
    [CatalogMgrCache] =======================
    Registering CatalogMgr [EarOMatic] ...CatalogManagerCache 10390580:
    Managers:
    Counters:
    [CatalogMgrCache] =======================
    CatalogMgr [EarOMatic] REGISTERED!CatalogManagerCache 10390580:
    Managers:
    {EarOMatic=fuego.util.LocalCatalogManager@106df95}
    Counters:
    Process: /AbortInstanceProcessService#Default-1.0
    Unreachable Engine Tolerance (seconds):
    by default: 0
    to be used: 0
    This papi client will not cache exceptions which imply that an engine could not be reached.
    Changing InstanceCache Entry[processId=/AbortInstanceProcessService#Default-1.0, state=0] to 3
    Changing InstanceCache Entry[processId=/AbortInstanceProcessService#Default-1.0, state=3] to 2
    Process: /CreateEurekaSRService#Default-1.0
    Changing InstanceCache Entry[processId=/CreateEurekaSRService#Default-1.0, state=0] to 3
    Changing InstanceCache Entry[processId=/CreateEurekaSRService#Default-1.0, state=3] to 2
    -> /CreateEurekaSRService#Default-1.0/1/0
    ActivityName -> eomWait
    Adding local catalog for project: 1
    ActivityId -> /CreateEurekaSRService#Default-1.0/eomWait
    Exception in thread "main" fuego.server.exception.InvalidIdRuntimeException: Invalid identification.
    Detail:Invalid identification (Identification value: /CreateEurekaSRService#Default-1.0/eomWait)
         at fuego.server.ActiveProcessImpl.getActivity(ActiveProcessImpl.java:632)
         at fuego.server.execution.microactivity.AbstractProcessExecutionHandler.getExecutableActivity(AbstractProcessExecutionHandler.java:58)
         at fuego.server.AbstractProcessBean.abortActivity(AbstractProcessBean.java:3262)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
         at fuego.lang.JavaObject.invoke(JavaObject.java:227)
         at fuego.component.Message.process(Message.java:587)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:778)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:753)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
         at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:248)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:837)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
         at fuego.component.CustomExecution.next(CustomExecution.java:172)
         at fuego.component.ExecutorClient.invoke(ExecutorClient.java:118)
         at fuego.papi.impl.rmi.ProcessControlProxy.abortActivity(ProcessControlProxy.java:407)
         at fuego.papi.impl.rmi.ProcessControlProxyWrapper.abortActivity(ProcessControlProxyWrapper.java:683)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at fuego.papi.impl.AbstractProcessControlHandler.invokeInternal(AbstractProcessControlHandler.java:72)
         at fuego.papi.impl.rmi.RMIProcessControlHandler.invoke(RMIProcessControlHandler.java:165)
         at $Proxy23.abortActivity(Unknown Source)
         at fuego.papi.impl.ProcessInstanceOperation.abortActivity(ProcessInstanceOperation.java:726)
         at fuego.papi.impl.ProcessServiceSessionImpl.activityAbort(ProcessServiceSessionImpl.java:184)
         at hp.abort.process.AbortProcess.main(AbortProcess.java:45)
    Caused by: fuego.metadata.exception.InvalidIdException: Activity '/CreateEurekaSRService#Default-1.0/eomWait' was not found in process '/CreateEurekaSRService#Default-1.0'.
         at fuego.metadata.Process.getActivity(Process.java:261)
         at fuego.server.ActiveProcessImpl.getActivity(ActiveProcessImpl.java:629)
         at fuego.server.execution.microactivity.AbstractProcessExecutionHandler.getExecutableActivity(AbstractProcessExecutionHandler.java:58)
         at fuego.server.AbstractProcessBean.abortActivity(AbstractProcessBean.java:3262)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
         at fuego.lang.JavaObject.invoke(JavaObject.java:227)
         at fuego.component.Message.process(Message.java:587)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:778)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:753)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
         at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:248)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:837)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
    I understood that tha activity id's format is not valid, but i obtained it just using the following function: instance.getActivityId()
    Are you abel to give me some suggestion? Is it good this method to kill instance?
    Thanks a lot, regard Fabio.

  • Help: how to kill a bpm process

    I create a bpm process with an infinite loop and my server crash everytime.
    How to kill this process.

    Hi Capro
    Log into NWA
    Navigate to manage processes
    NWA-> Operation management -> Processes and Tasks -> Manage Processes
    Select the nasty process instance and click on Actions> Cancel
    By doing so you will be canceling the process instance and this will help in saving your server from crashing
    If you are using 7.20 there are options to handle this too from BPM System Overview
    Regards,
    Harsha

  • How to kill back ground processes?

    I had installed Amonitor app and it shows there are these 3 processes, poc-bbot, bash, cp running. It was never there. can anyone tell me how to kill it?

    Hi, thanks.
    Actually these 3 processes has never shows up. And yes, i was kill all the apps once i dont use them. my recently open bar is always empty.
    The reason why i has concern is my bat life is shorter when these 3 processes are running. It used to has this, so i restore to factory mode. then after awhile, these came back.

  • How to kill Forms Runaway Process using 95% CPU and running for 2 hours.

    We had a situation at E-Business Suite customer (using Oracle VM server) where some of Form processes were not being cleared by form timeout settings automatically.
    Also when user exits the form session from front end, the linux form process (PID) and DB session did not exit properly, so they got hung.
    They were spiking CPU and memory usage and causing e-business suite to perform slowely and ultimately causing VM host to reboot the production VM guest (running on Linux).
    We could see the form processes (PIDs) using almost 100% cpu with "top" command and running for a long time.
    Also we verified those Form Sessions did not exist in the application itself.
    ie. Using from Grid Control -> OAM-> Site Map -> Monitoring (tab) -> "Form Sessions".
    It means that we could safely kill that form process from Linux using "kill -9 <PID>" command.
    But that required a continuous monitoring and manual DBA intervention as customer is 24x7 customer.
    So, I wrote a shell script to do the following;
    •     Cron job runs every half an hour 7 days a week which calls this shell script.
    •     Shell script runs and tries to find "top two" f60webmx processes (form sessions) using over 95% cpu with 2 minutes interval.
    •     If no process is found or CPU% is less than 95%, it exits and does nothing.
    •     If top process is found, it searches for its DB session using apps login (with hidden apps password file - /home/applmgr/.pwd).
    a.     If DB session is NOT found (which means form process is hung), it kills the process from unix and emails results to <[email protected]>
    b.     If DB session is found, it waits for 2 hours so that form process times automatically via form session timeout setting.
    It also emails the SQL to check the DB session for that form process.
    c.     If DB session is found and it does not timeout after 2 hours,
    it kills the process from unix (which in turn kills the DB session). Output is emailed.
    This are the files required for this;
    1. Cron job which calls the shell script looks like this;
    # Kill form runaway process, using over 95% cpu having no DB session or DB session for > 2hrs
    00,30 * * * * /home/applmgr/forms_runaway.sh 2>&1
    2. SQL that this script calls is /home/applmgr/frm_runaway.sql and looks like;
    set head off
    set verify off
    set feedback off
    set pagesize 0
    define form_client_PID = &1
    select count(*) from v$session s , v$process p, FND_FORM_SESSIONS_V f where S.AUDSID=f.audsid and p.addr=s.paddr and s.process='&form_client_PID';
    3. Actual shell script is /home/applmgr/forms_runaway.sh and looks like;
    # Author : Amandeep Singh
    # Description : Kills runaway form processes using more than 95% cpu
    # and Form Session with no DB session or DB session > 2hrs
    # Dated : 11-April-2012
    #!/bin/bash
    . /home/applmgr/.bash_profile
    PWD=`cat ~/.pwd`
    export PWD
    echo "`date`">/tmp/runaway_forms.log
    echo "----------------------------------">>/tmp/runaway_forms.log
    VAR1=`top -b -u applmgr -n 1|grep f60webmx|grep -v sh|grep -v awk|grep -v top|sort -nrk9|head -2|sed 's/^[ \t]*//;s/[ \t]*$//'| awk '{ if ($9 > 95 && $12 = "f60webmx") print $1 " "$9 " "$11 " "$12; }'`
    PID1=`echo $VAR1|awk '{print $1}'`
    CPU1=`echo $VAR1|awk '{print $2}'`
    TIME1=`echo $VAR1|awk '{print $3}'`
    PROG1=`echo $VAR1|awk '{print $4}'`
    PID_1=`echo $VAR1|awk '{print $5}'`
    CPU_1=`echo $VAR1|awk '{print $6}'`
    TIME_1=`echo $VAR1|awk '{print $7}'`
    PROG_1=`echo $VAR1|awk '{print $8}'`
    echo "PID1="$PID1", CPU%="$CPU1", Running Time="$TIME1", Program="$PROG1>>/tmp/runaway_forms.log
    echo "PID_1="$PID_1", CPU%="$CPU_1", Running Time="$TIME_1", Program="$PROG_1>>/tmp/runaway_forms.log
    echo " ">>/tmp/runaway_forms.log
    sleep 120
    echo "`date`">>/tmp/runaway_forms.log
    echo "----------------------------------">>/tmp/runaway_forms.log
    VAR2=`top -b -u applmgr -n 1|grep f60webmx|grep -v sh|grep -v awk|grep -v top|sort -nrk9|head -2|sed 's/^[ \t]*//;s/[ \t]*$//'| awk '{ if ($9 > 95 && $12 = "f60webmx") print $1 " "$9 " "$11 " "$12; }'`
    PID2=`echo $VAR2|awk '{print $1}'`
    CPU2=`echo $VAR2|awk '{print $2}'`
    TIME2=`echo $VAR2|awk '{print $3}'`
    PROG2=`echo $VAR2|awk '{print $4}'`
    PID_2=`echo $VAR2|awk '{print $5}'`
    CPU_2=`echo $VAR2|awk '{print $6}'`
    TIME_2=`echo $VAR2|awk '{print $7}'`
    PROG_2=`echo $VAR2|awk '{print $8}'`
    HRS=`echo $TIME1|cut -d: -f1`
    exprHRS=`expr "$HRS"`
    echo "PID2="$PID2", CPU%="$CPU2", Running Time="$TIME2", Program="$PROG2>>/tmp/runaway_forms.log
    echo "PID_2="$PID_2", CPU%="$CPU_2", Running Time="$TIME_2", Program="$PROG_2>>/tmp/runaway_forms.log
    echo " ">>/tmp/runaway_forms.log
    # If PID1 or PID2 is NULL
    if [ -z ${PID1} ] || [ -z ${PID2} ]
    then
    echo "no top processes found. Either PID is NULL OR CPU% is less than 95%. Exiting...">>/tmp/runaway_forms.log
    elif
    # If PID1 is equal to PID2 or PID1=PID_2 or PID_1=PID2 or PID_1=PID_2
    [ ${PID1} -eq ${PID2} ] || [ ${PID1} -eq ${PID_2} ] || [ ${PID_1} -eq ${PID2} ] || [ ${PID_1} -eq ${PID_2} ];
    then
    DB_SESSION=`$ORACLE_HOME/bin/sqlplus -S apps/$PWD @/home/applmgr/frm_runaway.sql $PID1 << EOF
    EOF`
    echo " ">>/tmp/runaway_forms.log
    echo "DB_SESSION ="$DB_SESSION >>/tmp/runaway_forms.log
    # if no DB session found for PID
    if [ $DB_SESSION -eq 0 ] then
    echo " ">>/tmp/runaway_forms.log
    echo "Killed Following Runaway Forms Process:">>/tmp/runaway_forms.log
    echo "-------------------------------------------------------------------">>/tmp/runaway_forms.log
    echo "PID="$PID1", CPU%="$CPU1", Running Time="$TIME1", Program="$PROG1>>/tmp/runaway_forms.log
    kill -9 $PID1
    #Email the output
    mailx -s "Killed: `hostname -a` Runaway Form Processes" [email protected] </tmp/runaway_forms.log
    cat /tmp/runaway_forms.log
    else
    # If DB session exists for PID
    if [ ${exprHRS} -gt 120 ]; then
    echo $DB_SESSION "of Database sessions exist for this forms process-PID="$PID1". But its running for more than 2 hours. ">>/tmp/runaway_forms.log
    echo "Process running time is "$exprHRS" minutes.">>/tmp/runaway_forms.log
    echo "Killed Following Runaway Forms Process:">>/tmp/runaway_forms.log
    echo "-------------------------------------------------------------------">>/tmp/runaway_forms.log
    echo "PID="$PID1", CPU%="$CPU1", Running Time="$TIME1", Program="$PROG1>>/tmp/runaway_forms.log
    kill -9 $PID1
    #Email the output
    mailx -s "`hostname -a`: Runaway Form Processes" [email protected] </tmp/runaway_forms.log
    cat /tmp/runaway_forms.log
    else
    echo "Process running time is "$exprHRS" minutes.">>/tmp/runaway_forms.log
    echo $DB_SESSION "of Database sessions exist for PID="$PID1" and is less than 2 hours old. Not killing...">>/tmp/runaway_forms.log
    echo "For more details on this PID, run following SQL query;">>/tmp/runaway_forms.log
    echo "-----------------------------------------------------------------------">>/tmp/runaway_forms.log
    echo "set pages 9999 lines 150">>/tmp/runaway_forms.log
    echo "select f.user_form_name, f.user_name, p.spid DB_OS_ID , s.process client_os_id,, s.audsid, f.PROCESS_SPID Forms_SPID,">>/tmp/runaway_forms.log
    echo "to_char(s.logon_time,'DD-Mon-YY hh:mi:ss'), s.seconds_in_wait">>/tmp/runaway_forms.log
    echo "from v\$session s , v\$process p, FND_FORM_SESSIONS_V f">>/tmp/runaway_forms.log
    echo "where S.AUDSID=f.audsid and p.addr=s.paddr and s.process='"$PID1"' order by p.spid;">>/tmp/runaway_forms.log
    mailx -s "`hostname -a`: Runaway Form Processes" [email protected] </tmp/runaway_forms.log
    cat /tmp/runaway_forms.log
    fi
    fi
    else
    #if PID1 and PID2 are not equal or CPU% is less than 95%.
    echo "No unique CPU hogging form processes found. Exiting...">>/tmp/runaway_forms.log
    cat /tmp/runaway_forms.log
    fi
    If you have the same problem with some other unix and DB processes, the script can be easily modified and used.
    But use this with thorough testing first (by commenting out <kill -9 $PID1> lines.
    Good luck.
    Edited by: R12_AppsDBA on 19/04/2012 13:10

    Thanks for sharing the script!
    Hussein

  • How to kill the apps process?

    Is my Yoga tab 2 1050F In this few weaks, after turn on the tab 2-3 hours, RAM has 500m onlyand cannot kill the apps process at all... WHY? Standby under than 24hours ... few weaks before that is 1 week standby times. I was turn on ALL power save function. WHY? I need help pls   Look at picture, Aweak has never stop.  Thx

    Hi
    If the process chain is running in background,
    goto <b>SM37</b>
    Give * in the jobname
    Give the username who scheduled the process chain
    Job status - check the check boxes - SCHED, relased, ready, active
    click <b>execute</b>.
    It displays all the process chains that, scheduled & running.
    You can select the process chain that need to be stopped & click STOP active job or ctrl+F1.
    Hope this helps!
    Kindly award points for all useful answers.
    If you post the BW related queries in the <b>BI general</b> forum, you will get more answers.
    Best regards,
    Thangesh

  • How to kill TP process at OS Level

    Dear ALL,
    How to kill the TP process at OS level
    Operating System : win 2003

    Q.1 Different Method for Kernel Upgradation
    So far till now, I have known only one method for Kernel upgradation which is very very simple. I dont think we need any other work-around for Kernel upgrade as this method is very very straight forward. The steps to be followed are ---
    Go to the SAP OSS Site :- 
    http://service.sap.com/SWCenter-Main
    From here Download the kernel programs in a temporary folder or use Download Basket toi download the Kernel.
    Now shutdown the R/3 database and all services including saposcol. 
    Create a folder and copy the original executables from  /exe/run/ directory then uncar the downloaded files and replace the original executables in /exe/run/ directory. 
    Then restart your system. 
    A couple of important points to remember are :-.
    a) Always make a copy of the files you're going to replace. For e.g. Create a directory (oldkern) and copy all the old files before replacing them (this helps when sometimes the new Kernel has problems, and you can revert it)
    b) You have to shutdown SAP and the Database using the OLD kernel file. Again it is good practice to shutdown everything first.
    Regards,
    Mandar

  • How to kill process/Actavity in SAP ?

    How to kill process/Actavity in SAP ?

    The core file contains the memory state of the work process at the point it was terminated. You could use it for debugging the work process if you had access to the kernel source code, which you don't unless you are SAP. For most people, then, the core file is of no interest and just takes up space in the operating system's file system. Using "cancel without core" is the thing to do.
    That said, sometimes I find "cancel without core" doesn't actually work but "cancel with core" does. I always try without core first, but occasionally have to resort to with core. If you do cancel with core, make sure to go and delete the core file afterwards to avoid the file system filling up. Work process core files can be large. You'll find it in a directory/folder here - /usr/sap/SID/DVEBMGS00/work (substitute DVEBMGS00 as appropriate).
    Steve.

  • How to kill process in windows

    Hi,
    how to kill the process in windows.
    Thanks in advance

    >
    I already tried that one rmishra......
    but it was not killed.>
    I think you are trying to find something like "ps - ef" in Unix for windows? if yes then you can follow below:
    show processes
    C:\>tasklist
    Image Name                   PID Session Name     Session#    Mem Usage
    ========================= ====== ================ ======== ============
    System Idle Process            0 Console                 0         28 K
    System                         4 Console                 0        260 K
    smss.exe                     892 Console                 0        460 K
    csrss.exe                    952 Console                 0    396,948 K
    winlogon.exe                 976 Console                 0      5,944 K
    services.exe                1020 Console                 0     69,300 K
    lsass.exe                   1032 Console                 0      4,260 K
    svchost.exe                 1204 Console                 0     14,384 K
    svchost.exe                 1312 Console                 0     14,056 K
    svchost.exe                 1436 Console                 0     59,188 K
    snac.exe                    1488 Console                 0      1,600 K
    svchost.exe                 1656 Console                 0      6,668 K
    svchost.exe                 1744 Console                 0     10,656 K
    spoolsv.exe                 1864 Console                 0     12,560 K
    svchost.exe                  332 Console                 0      8,884 K
    jqs.exe                      576 Console                 0      1,424 K
    notepad.exe              4772 Console                 0      5,640 K
    .........................................ect
    C:\>taskkill /pid 4772
    SUCCESS: The process with PID 4772 has been terminated.-RMishra

  • How to kill concurrent request oracle session which is terminated

    Dear,
    In our production environment Concurrent request "Gather Schema Stats" was running 2 days. Hence we cancelled the request.
    Request completed as terminated status. Unfortunately the oracle session of that concurrent request went to "Killed" status. Still utilizing CPU resource.
    If we try, "alter system kill session 'SID,serial#';"
    it gives below message,
    ERROR at line 1:
    ORA-00031: session marked for kill
    Could you please provide steps to kill this oracle session.
    Instance detail:
    Oracle Applications R12.1
    Oracle database 11.1.0.7
    Thanks,
    ...basha
    Edited by: 913932 on Jun 25, 2012 2:32 AM

    In our production environment Concurrent request "Gather Schema Stats" was running 2 days. Hence we cancelled the request.
    Request completed as terminated status. Unfortunately the oracle session of that concurrent request went to "Killed" status. Still utilizing CPU resource.
    If we try, "alter system kill session 'SID,serial#';"
    it gives below message,
    ERROR at line 1:
    ORA-00031: session marked for killTry "alter system kill session 'SID,serial#' immediate".
    Could you please provide steps to kill this oracle session.Concurrent Processing - How to Find Database Session & Process Associated with a Concurrent Program Which is Currently Running. [ID 735119.1]
    Thanks,
    Hussein

  • The system process 'C:\Windows\system32\lsass.exe' terminated unexpectedly with status code 255

    Hello All
    We have a server 2008 R2 HyperV server and during the last few months it started to reboot randomly.
    Initially we thought its related to the issue fixed by the following hotfix so we applied it but even with the hotfix it still keeps rebooting.
    http://support.microsoft.com/kb/2732595
    Unlike what's mentioned in the hotfix , the faulting module is not "ntdll.dll" but "msvcrt.dll".Also came up with the following indication the reboots could be related to KB2871997 but that update is not installed
    on this system.                                                
    Following are the events from system log.
    Log Name:      System
    Source:        LsaSrv
    Date:          2/9/2015 11:58:12 PM
    Event ID:      5000
    Task Category: None
    Level:         Error
    Keywords:     
    User:          SYSTEM
    Computer:      HV2008-Host
    Description:
    The security package Kerberos generated an exception. The exception information is the data.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="LsaSrv" Guid="{199FE037-2B82-40A9-82AC-E1D46C792B99}" />
        <EventID>5000</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2015-02-10T04:58:12.415529200Z" />
        <EventRecordID>8091130</EventRecordID>
        <Correlation />
        <Execution ProcessID="736" ThreadID="5888" />
        <Channel>System</Channel>
        <Computer>HV2008-Host</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData>
        <Data Name="Package">Kerberos</Data>
        <Binary>050000C00000000000000000000000001111F6FEFE070000020000000000000000000000000000008EEB1802000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</Binary>
      </EventData>
    </Event>
    Log Name:      System
    Source:        USER32
    Date:          2/9/2015 11:58:24 PM
    Event ID:      1074
    Task Category: None
    Level:         Information
    Keywords:      Classic
    User:          SYSTEM
    Computer:      HV2008-Host
    Description:
    The process wininit.exe has initiated the restart of computer HV2008-HOST on behalf of user  for the following reason: No title for this reason could be found
     Reason Code: 0x50006
     Shutdown Type: restart
     Comment: The system process 'C:\Windows\system32\lsass.exe' terminated unexpectedly with status code 255.  The system will now shut down and restart.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="USER32" />
        <EventID Qualifiers="32768">1074</EventID>
        <Level>4</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2015-02-10T04:58:24.000000000Z" />
        <EventRecordID>8091132</EventRecordID>
        <Channel>System</Channel>
        <Computer>HV2008-Host</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData>
        <Data>wininit.exe</Data>
        <Data>HV2008-HOST</Data>
        <Data>No title for this reason could be found</Data>
        <Data>0x50006</Data>
        <Data>restart</Data>
        <Data>The system process 'C:\Windows\system32\lsass.exe' terminated unexpectedly with status code 255.  The system will now shut down and restart.</Data>
        <Data>
        </Data>
        <Binary>06000500000000000000000000000000000000000000000000000000000000000000000000000000</Binary>
      </EventData>
    </Event>
    Following are the events from Application logs.
    Log Name:      Application
    Source:        Application Error
    Date:          2/9/2015 11:58:14 PM
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      HV2008-Host
    Description:
    Faulting application name: lsass.exe, version: 6.1.7601.22653, time stamp: 0x534893ed
    Faulting module name: msvcrt.dll, version: 7.0.7601.17744, time stamp: 0x4eeb033f
    Exception code: 0xc0000005
    Fault offset: 0x0000000000001111
    Faulting process id: 0x2e0
    Faulting application start time: 0x01d03c91dbe5854f
    Faulting application path: C:\Windows\system32\lsass.exe
    Faulting module path: C:\Windows\system32\msvcrt.dll
    Report Id: 6af0ff3d-b0e1-11e4-83ca-0026b9340d61
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Error" />
        <EventID Qualifiers="0">1000</EventID>
        <Level>2</Level>
        <Task>100</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2015-02-10T04:58:14.000000000Z" />
        <EventRecordID>267648</EventRecordID>
        <Channel>Application</Channel>
        <Computer>HV2008-Host</Computer>
        <Security />
      </System>
      <EventData>
        <Data>lsass.exe</Data>
        <Data>6.1.7601.22653</Data>
        <Data>534893ed</Data>
        <Data>msvcrt.dll</Data>
        <Data>7.0.7601.17744</Data>
        <Data>4eeb033f</Data>
        <Data>c0000005</Data>
        <Data>0000000000001111</Data>
        <Data>2e0</Data>
        <Data>01d03c91dbe5854f</Data>
        <Data>C:\Windows\system32\lsass.exe</Data>
        <Data>C:\Windows\system32\msvcrt.dll</Data>
        <Data>6af0ff3d-b0e1-11e4-83ca-0026b9340d61</Data>
      </EventData>
    </Event>
    Log Name:      Application
    Source:        Windows Error Reporting
    Date:          2/9/2015 11:58:23 PM
    Event ID:      1001
    Task Category: None
    Level:         Information
    Keywords:      Classic
    User:          N/A
    Computer:      HV2008-Host
    Description:
    Fault bucket , type 0
    Event Name: APPCRASH
    Response: Not available
    Cab Id: 0
    Problem signature:
    P1: lsass.exe
    P2: 6.1.7601.22653
    P3: 534893ed
    P4: msvcrt.dll
    P5: 7.0.7601.17744
    P6: 4eeb033f
    P7: c0000005
    P8: 0000000000001111
    P9:
    P10:
    Attached files:
    C:\Windows\Temp\WER5001.tmp.appcompat.txt
    C:\Windows\Temp\WER535C.tmp.WERInternalMetadata.xml
    C:\Windows\Temp\WER53DA.tmp.hdmp
    C:\Windows\Temp\WER6690.tmp.mdmp
    These files may be available here:
    C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_lsass.exe_3c1aa5eeba75bf26fcebc4f54e714efe7b5162a2_cab_20a56871
    Analysis symbol:
    Rechecking for solution: 0
    Report Id: 6af0ff3d-b0e1-11e4-83ca-0026b9340d61
    Report Status: 0
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Windows Error Reporting" />
        <EventID Qualifiers="0">1001</EventID>
        <Level>4</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2015-02-10T04:58:23.000000000Z" />
        <EventRecordID>267650</EventRecordID>
        <Channel>Application</Channel>
        <Computer>HV2008-Host</Computer>
        <Security />
      </System>
      <EventData>
        <Data>
        </Data>
        <Data>0</Data>
        <Data>APPCRASH</Data>
        <Data>Not available</Data>
        <Data>0</Data>
        <Data>lsass.exe</Data>
        <Data>6.1.7601.22653</Data>
        <Data>534893ed</Data>
        <Data>msvcrt.dll</Data>
        <Data>7.0.7601.17744</Data>
        <Data>4eeb033f</Data>
        <Data>c0000005</Data>
        <Data>0000000000001111</Data>
        <Data>
        </Data>
        <Data>
        </Data>
        <Data>
    C:\Windows\Temp\WER5001.tmp.appcompat.txt
    C:\Windows\Temp\WER535C.tmp.WERInternalMetadata.xml
    C:\Windows\Temp\WER53DA.tmp.hdmp
    C:\Windows\Temp\WER6690.tmp.mdmp</Data>
        <Data>C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_lsass.exe_3c1aa5eeba75bf26fcebc4f54e714efe7b5162a2_cab_20a56871</Data>
        <Data>
        </Data>
        <Data>0</Data>
        <Data>6af0ff3d-b0e1-11e4-83ca-0026b9340d61</Data>
        <Data>0</Data>
      </EventData>
    </Event>
    Log Name:      Application
    Source:        Windows Error Reporting
    Date:          2/9/2015 11:58:22 PM
    Event ID:      1001
    Task Category: None
    Level:         Information
    Keywords:      Classic
    User:          N/A
    Computer:      HV2008-Host
    Description:
    Fault bucket , type 0
    Event Name: APPCRASH
    Response: Not available
    Cab Id: 0
    Problem signature:
    P1: lsass.exe
    P2: 6.1.7601.22653
    P3: 534893ed
    P4: msvcrt.dll
    P5: 7.0.7601.17744
    P6: 4eeb033f
    P7: c0000005
    P8: 0000000000001111
    P9:
    P10:
    Attached files:
    C:\Windows\Temp\WER5001.tmp.appcompat.txt
    C:\Windows\Temp\WER535C.tmp.WERInternalMetadata.xml
    C:\Windows\Temp\WER53DA.tmp.hdmp
    C:\Windows\Temp\WER6690.tmp.mdmp
    These files may be available here:
    C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_lsass.exe_3c1aa5eeba75bf26fcebc4f54e714efe7b5162a2_cab_20a56871
    Analysis symbol:
    Rechecking for solution: 0
    Report Id: 6af0ff3d-b0e1-11e4-83ca-0026b9340d61
    Report Status: 4
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Windows Error Reporting" />
        <EventID Qualifiers="0">1001</EventID>
        <Level>4</Level>
        <Task>0</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2015-02-10T04:58:22.000000000Z" />
        <EventRecordID>267649</EventRecordID>
        <Channel>Application</Channel>
        <Computer>HV2008-Host</Computer>
        <Security />
      </System>
      <EventData>
        <Data>
        </Data>
        <Data>0</Data>
        <Data>APPCRASH</Data>
        <Data>Not available</Data>
        <Data>0</Data>
        <Data>lsass.exe</Data>
        <Data>6.1.7601.22653</Data>
        <Data>534893ed</Data>
        <Data>msvcrt.dll</Data>
        <Data>7.0.7601.17744</Data>
        <Data>4eeb033f</Data>
        <Data>c0000005</Data>
        <Data>0000000000001111</Data>
        <Data>
        </Data>
        <Data>
        </Data>
        <Data>
    C:\Windows\Temp\WER5001.tmp.appcompat.txt
    C:\Windows\Temp\WER535C.tmp.WERInternalMetadata.xml
    C:\Windows\Temp\WER53DA.tmp.hdmp
    C:\Windows\Temp\WER6690.tmp.mdmp</Data>
        <Data>C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_lsass.exe_3c1aa5eeba75bf26fcebc4f54e714efe7b5162a2_cab_20a56871</Data>
        <Data>
        </Data>
        <Data>0</Data>
        <Data>6af0ff3d-b0e1-11e4-83ca-0026b9340d61</Data>
        <Data>4</Data>
      </EventData>
    </Event>
    Would really appreciate if someone can point us to the correct direction on how to get this issue sorted.
    Regards,
    Dhanushka

    Hi Sir,
    Please try the following items:
    1. if ther is anti-virus installed , please uninstall it temporarily
    2. run  " sfc /scannow "
    3. keep windows up-to-date
    4. if you updated some hardware driver please roll it back
    5. if the issue persists , please use windows installation media to perform inplace-upgrade for the system
    Also please refer to reinstall C++ runtime within the similar thread:
    https://social.technet.microsoft.com/Forums/windows/en-US/bf69eeff-24c4-499f-b280-b6a3098f4f9f/problem-with-msvcrtdll-version-70760117744?forum=w7itprogeneral
    Best Regards,
    Elton Ji
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

  • How to kill these processes?

    I want to see if port 11162 is in use or not so I issued the below command
    netstat -a | grep 11162
    and this is what I got back
    hostname.11162 hostname.50916 49152 0 49152 0 CLOSE_WAIT
    *.11162 *.* 0 0 49152 0 LISTEN
    hostname.11162 hostname.50291 49152 0 49152 0 CLOSE_WAIT
    hostname.11162 hostname.51288 49152 0 49152 0 CLOSE_WAIT
    I have 2 questions
    1) What is the meaning of CLOSE_WAIT?
    2) How do I kill all processes that use this port 11162 currently? I tried these commands kill 50916, kill 50291, kill 51288 but it said No such process. Basically I want to kill all processes that use this port 11162 currently.
    Thanks

    Andrew2008 wrote:
    I have 2 questions
    1) What is the meaning of CLOSE_WAIT?From 'netstat':
    CLOSE_WAIT
    Remote shutdown; waiting for the socket to close.
    This means that the remote side sent us a shutdown packet. The OS told the application that it received the shutdown, and it's waiting for the application to close the socket. It will remain in that state until the socket is closed or until the process exits.
    2) How do I kill all processes that use this port 11162 currently? I tried these commands kill 50916, kill 50291, kill 51288 but it said No such process. Basically I want to kill all processes that use this port 11162 currently.Those numbers are the port numbers on the other end of the connection. They are not PIDs.
    You would need to either install 'lsof' and ask it which processes are using the port (lsof -i :11162), or you need to run 'pfiles' on all the system processes and see which ones report having port 11162 open. I'm sure there's some simple scripts that automate the second task.
    Darren

  • How could we do this without killing the system?

    If we take in a file through the PI file adapter that has 1 million lines and read it in and process each line as a single transactionu2026  How could we do this without killing the system?

    Hi,
    >>>How could we do this without killing the system?
    which system ? PI could do this if the transactions are small (only one line so very small I guess)
    but I'm not sure about the ERP...
    Regards,
    Michal Krawczyk

Maybe you are looking for