Questions tagged [kill]
The kill tag has no summary.
126 questions
1
vote
0
answers
489
views
How to deal with uninterruptible processes due to CIFS mounted filesystem
I am observing very high IOWAIT time on the CPUs of my server:
top - 14:24:20 up 846 days, 14:14, 2 users, load average: 14.42, 14.33, 14.57
Tasks: 345 total, 1 running, 341 sleeping, 3 stopped, ...
0
votes
1
answer
1k
views
Permission denied when using kill as root
I'm starting a java program as a non-privileged user that I sudo'd into, then exit the shell. Being root again I try to kill -9 the java process.
This causes a "permission denied" error.
...
3
votes
4
answers
22k
views
Can't remove /var/lib/docker due to "Device or resource busy"
I've tried to uninstall docker and failed because I am not able to remove this dir /var/lib/docker and it gives me this error:
(base) [xxx@xxx ~]$ sudo rm -rf /var/lib/docker/
rm: cannot remove ‘/var/...
1
vote
1
answer
1k
views
How can I kill a process remotely on a windows server when the server has exceeded its memory limit?
Context
I use and manage* a windows server at work. It is used for general computations by up to 5 users at a time via RDP.
The server has 128GB of RAM which is sufficient for the work we do on it (...
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 ...
1
vote
0
answers
1k
views
Kill a hanging sync from a cifs drive
I copied a file to a cifs drive and instinctively ran a sync on it, which hung indefinitely. Strangely, I could successfully unmount/remount the drive without issues, making me think that the drive ...
0
votes
1
answer
5k
views
Kill a running process inside a docker
I've run a find command on a very large folder inside my docker, and now it is stuck for more than an hour.
I've tried to kill -9 the process, and kill the docker container with docker kill <...
14
votes
1
answer
97k
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 ...
0
votes
1
answer
7k
views
How to restart linux services if it reaches 100% CPU? [closed]
I have postfix email server with saslauthd. Time and again saslauthd daemon eats 100% CPU. Restarting these services returns to normal cpu usage.
Is there any proper script to determine services with ...
0
votes
2
answers
5k
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.
0
votes
1
answer
5k
views
ssh remote command: Killed by signal 15
script:
#!/usr/bin/env bash
set -e
set -u
set -x
set -o pipefail
hosts=(
host1
host2
)
for host in ${hosts[@]}
do
ssh $host 'pids=$(ps -aux|pgrep -f "/usr/bin/nmon"); kill $pids; wait $...
0
votes
3
answers
2k
views
Is it safe to stop a Jboss EAP server with Kill -9?
We are having an internal debate about this. Running jboss eap 7 on RHEL.
We currently have a script to stop the server by simply running kill -9 on the java process.
My suggestion was to use the ...
0
votes
2
answers
657
views
How to make a shell script return 0 even after getting killed
I have a scheduled shell script running in a distributed environment. There are some scenarios where the process might get killed by some other processes. But I need the process to return 0 even after ...
0
votes
1
answer
810
views
Kill an application knowing its name and command line arguments
If I run a single instance of an application I can kill it via "kill my_app_name" without having to find out what its PID is. But when I'm running multiple instances of the same application with ...
1
vote
1
answer
303
views
how to stop for loop on another tty
We are connecting to the same host via the same user. So, only our sessions/tty are different. If one of us starts a for loop such as:for i in *; do command $i; done, I don't know how to stop it. All ...