Questions tagged [kill-process]

43 questions
18
votes
5 answers

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 a short term solution.
alfish
  • 3,027
  • 15
  • 45
  • 68
12
votes
1 answer

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 there any drawbacks of using the first method?
Gordon
  • 141
  • 1
  • 1
  • 4
8
votes
1 answer

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 (500MB) however the app pool doesn't seem to respect…
lucuma
  • 145
  • 1
  • 7
6
votes
3 answers

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 The lsof getting back this result: COMMAND PID USER FD …
PumpkinSeed
  • 295
  • 2
  • 5
  • 12
5
votes
1 answer

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 killed: out of swap space This service runs on a…
Vinícius Ferrão
  • 5,400
  • 10
  • 52
  • 91
5
votes
1 answer

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?
Phil
  • 245
  • 2
  • 5
  • 12
3
votes
3 answers

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 close the console? Shall I use & or nohup?
donald
  • 453
  • 1
  • 6
  • 17
2
votes
3 answers

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 this error [20170419-22:06:02] [INFO ] scp thread…
xrdp
  • 21
  • 1
  • 1
  • 2
2
votes
1 answer

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 The script does not have the word 'Killed' in it…
2
votes
1 answer

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: [Sat Jun 20 13:56:31 2015] [error] [client…
Andrus
  • 169
  • 4
  • 11
2
votes
1 answer

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 SIZE/OFF NODE NAME node 3369 Name 12u IPv4…
iluvatar14
  • 21
  • 1
  • 2
2
votes
0 answers

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 cache using CQEngine and so far its blazingly fast…
user432024
  • 273
  • 3
  • 14
2
votes
1 answer

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 reading event [Note] Slave I/O thread exiting,…
quanta
  • 50,327
  • 19
  • 152
  • 213
1
vote
1 answer

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 work to cancel virt-install, and systemctl restart…
Stonecraft
  • 243
  • 2
  • 4
  • 15
1
vote
2 answers

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 : $ ps --user user -o pid,comm | grep sshd 8543…
hello world
  • 103
  • 2
  • 8
1
2 3