Questions tagged [kill-process]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
204 views

How to stop a killed rollback process on MariaDB?

We have a failed attempt of a rollback on a Mariabd. The process is still listed in show full processlist but show no progress. How to stop this process? 22301639 user localhost db Killed ...
0 votes
0 answers
58 views

Tracing / Solving a sudden spike in Apache2

My server is running on Ubuntu20.04, a pure LAMP stack with Apache 2.4.41. In the last few weeks, there was a total of 2 occurrence where Apache2 was not responsive (users can't load our website), and ...
9 votes
3 answers
18k views

Getting PID from lsof list

I have a react-native application and I want to write a script for start test version. I need to shotdown the :8081 port if it is alive. The command: lsof -i :8081 kill -9 <PID> The lsof ...
0 votes
2 answers
833 views

How can I find out which program is executed through a PID which is ended

I found there is a program that killed my Apache regularly, according to the log information, I understand there is a program using "/etc/init.d/apache2 stop" to stop apache, since this ...
1 vote
1 answer
2k views

Powershell: start and stop flask server

I wrote a powershell script to start my flask server, run my tests then stop my server. It starts the server and runs my tests. However, when it kills the $server process, it leaves the actual server ...
1 vote
1 answer
2k views

How to kill a process running under SYSTEM account in the Windows Server?

I have a server with Windows Server 2008 R2 and a service process (our custom service) running on it under SYSTEM account. A service has presumably hanged and I wanted to stop it. I tried stopping via ...
2 votes
3 answers
20k views

Kill defunct xrdp session --- xrdp users cannot log on

user cannot connect to server over xrdp tested using linux remoted desktop client, as well as windows remote desktop client error messages is "error: problem connecting" /var/log/sesman.log shows ...
19 votes
5 answers
59k views

How to automatically kill slow MySQL queries after N seconds?

I am looking for a well tested bash script (or alternative solution) to do so, in order to avoid max_connection to be exhausted. I know that it is fighting the symptoms, but really need such script as ...
0 votes
2 answers
2k views

How to terminate backend PHP scripts invoked by Apache webserver?

I'm invoking some PHP backend scripts on Apache webserver that are programmed to run for a few days. The trouble is that I cannot figure out a way to stop these scripts (except restarting the server ...
1 vote
1 answer
3k views

how to stop md3_raid1 and md3_resync process which takes high load

how to stop md3_raid1 and md3_resync process which takes heavy load. can anyone please help me how to stop this process and may i know why this process in started,, now there are 100 plus visitor , i ...
0 votes
0 answers
1k views

How to kill non-existent process?

I have a process with PID 4276 which uses port 9191. I need this port to install software. can someone tell me how to kill this process? The Windows task manager doesn't show the process and ...
0 votes
1 answer
2k views

linux - ps have different column with process ID

I have simple Docker's command to kill database process: docker exec app-pgsql bash -c 'ps axuf |grep ils |cut -d" " -f3 |xargs kill -9 || :' and as you can see, I'm looking for 3rd column from ps ...
3 votes
3 answers
7k views

Run a python script that is never Killed

I have a script running python script.py in a new screen but sometimes the script gets killed: 18 21 Restarting processes... done 2 Killed How can I protect the script from being killed even when I ...
1 vote
1 answer
2k views

virt-install hangs and won't die. How to stop safely?

I am having a problem where virt-install gets stuck in the very early stages and cant be killed (after saying "starting installation", but before the VM is visible in virt-manager). Ctrl-C does not ...
14 votes
1 answer
80k views

Killing systemd service with and without systemctl

What is the difference between killing an running daemon systemd service like this : kill -SIGKILL 3645 and systemctl -s kill -SIGKILL 3645 where 3645 is the pid of the systemd service.Also are ...
1 vote
2 answers
760 views

How to find the port used by sshd for a port bind without sudo?

To remove a given port bind the pid can be found with sudo netstat -lnpt and then removed with kill pid. As the process name is known (sshd) the non sudoer user who started it may found the pid with : ...
0 votes
2 answers
4k views

How to kill a process by its full name, including the path?

Given the full file name of a process, how can I kill it? Not only by its file name, but by full file name. I've looked into kill and pkill and they're not what I'm looking for.
1 vote
1 answer
399 views

Kill (close) reliability monitor windows by PID powershell

I am trying create a process of the windows reliability monitor and kill it after I take a screenshot. I am having trouble to get the process and automatically close it before I take the screenshot ...
0 votes
1 answer
4k views

How to stop process fdhost?

I'm trying to update SQL Server 2016 to CU7. During the Files in Use check, I'm prompted to stop fdhost.exe for each running instance in order to prevent the need for a reboot. But how to stop this ...
1 vote
1 answer
2k views

Killing process group safely

How can one kill a process group safely, and force kill if needed? The goal is to do a kill with SIGTERM (-15) then if the apps in the tree do not die after a timeout (e.g. 60 seconds) do a SIGKILL (-...
1 vote
0 answers
818 views

Processes is getting killed randomly on REdHat

We have around java virtual machines with limited memory, and MongoDB. Deployed processes are randomly getting killed/terminated abruptly in time. No matter java process, nodejs or mongodb process. We ...
0 votes
1 answer
3k views

Cannot kill httpd process even with -9

I cannot kill httpd process on my VPS running centos 6.5. I tried killing it with -9 flag which didn't work either. Output of command: ps aux | grep httpd root 29459 0.0 0.0 103252 828 pts/...
0 votes
0 answers
2k views

Can't kill an process on GPU

i have an process running on an K80 GPU. Is there an way to stop it with the nvidia tools? I tried all the kill -9 etc. Nothing is killing it. $uname -a Linux slurm10 3.16.0-33-generic #44~14.04.1-...
0 votes
1 answer
2k views

How to kill all processes with Sl stat in ubuntu?

I have some scripts which spawns multiple processess to tasks in background. Most of them terminates but few of them does not terminates on finishing the task. The number of these types of processes ...
1 vote
4 answers
8k views

Kill processes if high load average

Not so far ago LA on my server raised to 400 and I couldn't even login to server using ssh. Does exists any software, that can prevent this situations by automatically killing processes that making ...
2 votes
1 answer
6k views

Long running PHP process randomly stops with message 'Killed'

I have a PHP script I wrote that I am running, and it has ran all the way through before, but for some reason, it keeps stopping with a message of 'Killed' ... It is my box, no one else is logged in ...
0 votes
1 answer
467 views

How to kill a respawn service on ubuntu 14.04 LTS

I want to kill a respawn service by using upstart. when I use "htop" command to monitor system,I observe a process "/123.lock". when I kill it via "kill" command,it restart again. how could I kill it ...
0 votes
1 answer
211 views

Is it possible to kill a process based on its environment, from the command line?

Scenario: Let's assume I have a script that spawns a few processes. There may be times when the script has to be aborted. Most times this is fine. However, sometimes one or two of the spawned ...
1 vote
1 answer
2k views

In the output of ps(1) on OS X-like systems, what do processes listed in parentheses mean, and how do I kill them?

username@yosemite ~ % ps wwwaux | grep java username 48111 0.0 0.0 0 0 ?? ?E 11:54AM 0:00.00 (java) username 91673 0.0 0.0 2432772 508 s006 R+ 3:19PM 0:...
1 vote
1 answer
4k views

Kill process and child processes, not parent processes, not group

I need to kill a process and all of its subprocesses programatically. Killing the group is not an option because I do not want to kill the parent processes. Example: pid process 1 ...
2 votes
1 answer
8k views

How to automatically re-start apache if it stops responding and socket is still in use

Apache server Debian Linux x64 serves the site mono applications in mysite.com and other sites using virtual hosting. Sometimes apache stops responding for unknow reason. Apache error_log contains: [...
0 votes
1 answer
226 views

Files deleted but process open [duplicate]

My /dev/md1 is full # du -x -m --max-depth=1 | sort -n shows 0 ./dev 0 ./proc 0 ./sys 1 ./home 1 ./lost+found 1 ./media 1 ./mnt 1 ./selinux 1 ./srv 1 ./tmp 4 ./lib32 6 ./bin ...
2 votes
1 answer
6k views

Safe to kill a process called *:etlservicemgr (LISTEN)?

I am trying to serve locally to port 9001 but I get an listen EADDRINUSE error. When I look at the port with lsof -i :9001 it shows the following COMMAND PID USER FD TYPE DEVICE ...
2 votes
1 answer
3k views

Batch file that kills a certain process

I am using the following script to kill a process in CLOSE_WAIT state that listens to a certain ip and to a certain port. FOR /F "tokens=5 delims= " %%I IN ( 'netstat -ano ^| find "127.0.0.1:5900"...
-1 votes
1 answer
2k views

Processes during stress test get killed

I've run into a somewhat curious situation. I'm currently stress testing a couple of new machines running Fedora 20. I've tried mprime, memtester and systester. All execute for a while and suddenly ...
5 votes
1 answer
2k views

BIND 9.10 constantly killed on FreeBSD 10.0 with out of swap space

In one of our slave DNS servers BIND, version bind910-9.10.0P2_3, constantly get killed with the following message in /var/log/messages: Jul 30 01:00:10 cinnabar kernel: pid 602 (named), uid 53, was ...
8 votes
1 answer
8k views

App Pool doesn't respect memory limits

I am dealing with a legacy .NET app that has a memory leak. In order to try and mitigate a run away memory situation, I've set the app pool memory limits from anywhere between 500KB to 500000KB (...
1 vote
1 answer
1k views

Set up Ubuntu to kill off Apache child processes when memory usage reaches 90%

My situation is following: We run Magento Professional on a 15Gb ram instance, rackspace. When running htop, we could see that 'apache2 -k start' keeps spawning more child processes, some of them ...
2 votes
0 answers
3k views

Preventing Linux Kernel from killing a Java process prematurely

Running Ubuntu 12.04.3 LTS with 32 cores 244GB. Its the Amazon EC2 memory instance the big one and Java 1.7u25 My java process is running with -Xmx226g I'm trying to create a really large local ...
6 votes
1 answer
19k views

How do I know if the Linux server killed my process and which process it killed?

It seems my server killed a process due to it using too much RAM. Is this possible? If it can happen, how can I know when and what process it killed?
-5 votes
1 answer
393 views

how do I kill these from ssh? [closed]

root 813251 813235 0 Feb02 ? 00:00:00 /bin/sh -c /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache root 813265 813251 ...
0 votes
1 answer
346 views

Kill .so file process

I have a program, I cannot change the code. It calls some .so file's function, but don't delete the object in the end. When the owner of the program tries to update the program he kills it and send ...
0 votes
1 answer
171 views

Kill or continue lost Linux sessions

I have an unreliable Internet connection. Sometimes it is lost while logged on to the text command interface of a Ubuntu server. This results in a "garbage" user session (seen when using the who ...
0 votes
2 answers
630 views

Close process in all pc of windows domain

How can i close a particular process in ALL domain's PC? I need this for maintenance. The domain is a Windows server 2003 domain. As Dan suggests PSKILL works very well for this purpose but i need ...
2 votes
1 answer
2k views

MySQL: nothing listening on port 3306 but the processes still exist. How to graceful shutdown?

Percona-XtraDB-Cluster-server-5.5.24-23.6.340.rhel5 This is a slave server. mysqladmin shutdown hangs at: [Note] Event Scheduler: Purging the queue. 24 events [Note] Slave I/O thread killed while ...