Questions tagged [kill-process]

This tag refers to the action of terminating (aborting) a process.

Use this tag for questions related to killing a specific process on a system.

646 questions
943
votes
30 answers

How to kill a process running on particular port in Linux?

I tried to close the tomcat using ./shutdown.sh from tomcat /bin directory. But found that the server was not closed properly. And thus I was unable to restartMy tomcat is running on port 8080. I want to kill the tomcat process running on 8080. I…
veer7
  • 14,540
  • 8
  • 37
  • 62
355
votes
12 answers

How to terminate a python subprocess launched with shell=True

I'm launching a subprocess with the following command: p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True) However, when I try to kill using: p.terminate() or p.kill() The command keeps running in the background, so I was wondering how…
user175259
  • 3,831
  • 4
  • 18
  • 12
139
votes
6 answers

Kill some processes by .exe file name

How can I kill some active processes by searching for their .exe filenames in C# .NET or C++?
131
votes
14 answers

Kill a Process by Looking up the Port being used by it from a .BAT

In Windows what can look for port 8080 and try to kill the process it is using through a .BAT file?
Mike Flynn
  • 21,905
  • 50
  • 167
  • 308
94
votes
4 answers

How to find MySQL process list and to kill those processes?

The MySQL database hangs, due to some queries. How can I find the processes and kill them?
Ashish Dadhich
  • 3,529
  • 3
  • 11
  • 24
92
votes
19 answers

Closing Excel Application Process in C# after Data Access

I'm writing an application in C# that opens an Excel template file for read/write operations. I want to when user closes the application, excel application process has been closed, without saving excel file. See my Task Manager after multiple runs…
Javad Yousefi
  • 2,146
  • 4
  • 32
  • 46
70
votes
1 answer

what does anon-rss and total-vm mean

Recently, tomcat process on my Linux machine was killed abruptly. After investigation I found below error message in /var/log/messages file: kernel: [1799319.246494] Out of memory: Kill process 28536 (java) score 673 or sacrifice childSep kernel:…
UW20989
  • 837
  • 2
  • 7
  • 9
49
votes
6 answers

How to stop 'uninterruptible' process on Linux?

I have a VirtualBox process hanging around which I tried to kill (KILL/ABORT) but without success. The parent pid is 1 (init). top shows the process as D which is documented as "uninterruptible sleep". strace shows up nothing. How can I get rid of…
Tilo Prütz
  • 1,613
  • 3
  • 16
  • 27
48
votes
2 answers

Does the Android OS release a wakelock if the app or service holding it is killed?

I have question about wakelock. In cases shown below, does android OS release wakelock (PARTIAL_WAKE_LOCK if you need to specify) to prevent wakelock was left acquired and wasting battery until turning power off (not sleep). Case 1-a: App has…
Tomcat
  • 1,375
  • 3
  • 20
  • 35
48
votes
5 answers

linux script to kill java process

I want linux script to kill java program running on console. Following is the process running as jar. [rapp@s1-dlap0 ~]$ ps -ef |grep java rapp 9473 1 0 15:03 pts/1 00:00:15 java -jar…
d-man
  • 53,999
  • 81
  • 200
  • 285
47
votes
5 answers

How to kill all processes with the same name using OS X Terminal

Getting the following output from running this: ps aux | grep Python Output: user_name 84487 0.0 0.0 0 0 ?? Z 12:15PM 0:00.00 (Python) user_name 84535 0.0 0.0 0 0 ?? Z 12:16PM 0:00.00 (Python) I want…
alphanumeric
  • 13,847
  • 39
  • 164
  • 305
46
votes
11 answers

Kill process tree programmatically in C#

I am starting Internet Explorer programmatically with code that looks like this: ProcessStartInfo startInfo = new ProcessStartInfo("iexplore.exe"); startInfo.WindowStyle = ProcessWindowStyle.Hidden; startInfo.Arguments =…
robr
  • 769
  • 1
  • 6
  • 15
45
votes
7 answers

subprocess: deleting child processes in Windows

On Windows, subprocess.Popen.terminate calls win32's TerminalProcess. However, the behavior I see is that child processes of the process I am trying to terminate are still running. Why is that? How do I ensure all child processes started by the…
Sridhar Ratnakumar
  • 68,948
  • 61
  • 139
  • 172
38
votes
1 answer

How do task killers work?

The usefullness of task killer apps is debated, but I'm wondering: how do they actually work? How is it possible to kill particular process? Is there an API for this, and if so what does it actually do? EDIT Worth adding: I saw task killer apps…
Igor Filippov
  • 14,641
  • 17
  • 81
  • 155
36
votes
3 answers

Kill tomcat service running on any port, Windows

Kill tomcat service running on any port, Windows using command promt like 8080/ 8005
Suraj Shingade
  • 1,745
  • 3
  • 16
  • 24
1
2 3
43 44