The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
2answers
321 views

Kill process that hogs all CPU

So ImageMagick has the "convert" command which I use for my (Linux) web platform to deal with image resizing and such. Sometimes this command gets "stuck", meaning it starts eating machine resources ...
0
votes
4answers
3k views

How to kill processes on a remote *nix machine

I would like to issue a kill command across many *nix machines. I'm attempting to do something like this: rsh <remotemachine> ps -ef | grep <somepattern> | awk '{print $2}' | xargs n1 -t ...
-2
votes
1answer
36 views

Unable to find a process id [closed]

I have an app in Erlang which I fail to launch: "Protocol: ~tp: the name my_app@my_comp seems to be in use by another Erlang node",["inet_tcp"]} I've tried to figure out the PID of the Erlang to ...
1
vote
1answer
48 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 ...
7
votes
6answers
11k views

Find (and kill) old processes

Basically I need to be able scan the process tree and find processes that match a certain name and started running more than a week a go. Once I have them, I need to kill them. All the processes are ...
7
votes
14answers
20k views

How do I kill processes older than “t”?

First, yes I have seen this question: http://serverfault.com/q/71360/14428 The answers there are incorrect and do not work. I have voted and commented accordingly. The processes I want to kill look ...
7
votes
5answers
4k views

Bash snippet for killing a process until it's dead?

I'm trying to write a robust bash script, and in it I create a background process. At the end of the script, I want to kill it. I have it's PID. I was thinking of somthing like this while [[ ps ef $...
0
votes
0answers
28 views

Tomcat does not execute all expected threads

I'm running Apache tomcat 7 with java 7 on Cent OS. My tomcat server contains many (more than 100) virtual hosts, each host runs a common web application in its own context. Inside the application, I'...
0
votes
3answers
3k views

pptp vpn - Kill User Connection

I'd like to be able to terminate a user's connection to my pptp server from the server itself without interrupting anyone else's connection. Problem is - I have no idea how and have found no useful ...
1
vote
1answer
167 views

What can be used to prevent the termination/killing of a process, even by the root user?

Is there a security framework or general tool that can be used to ensure that a certain process started at boot in Linux cannot be terminated by any user or other process, including the root user?
1
vote
5answers
8k views

crashed VNC sessions detect and killing

I have following issue: Many users create VNC session and after that they forget about them. After some time these sessions crash and start to consume about 100% power. Then somebody has to manually ...
1
vote
1answer
250 views

ps and top show a different command name then what pkill and pgrep sees

Often times I want to kill process that I believe has changed its command name (I think through setproctitle() or something similar). Apparent pkill, pgrep, and friends do not read the new command ...
1
vote
2answers
4k views

With Powershell, how can I get the id of a process owned by a specific user?

Using Powershell, I want to do the equivalent of Unix ps -auxc | grep Emacs kill -9 364 (Assuming 365 was the pid the first command told me.) How do I do that? I find it incredibly hard to get ...
1
vote
1answer
65 views

MariaDb and Httpd getting killed due to memory

I have a Centos7 VPS on OVH with this settings: 1Virtual Core 1 GB Ram 10 GB Raid 10 I have running on it 3 wordpresses. One of them is still on building (0 access to public), other has very few ...
0
votes
1answer
220 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 ...
5
votes
1answer
485 views

SSSD process won't die

Thanks for taking the time to check out my problem. I'm currently working on an issue that has only appeared once before. Back on Jan 3rd when this first appeared we were able to reboot the server ...
-1
votes
2answers
2k views

Bash script to kill specific process running longer than 5m [closed]

Hi I'm looking for a BASH script for CentOS 6.5 that kills a processes by name that's been running longer than 5 minutes. I asked this question before and received a response that doesn't work under ...
0
votes
0answers
103 views

VPS restarted for no reason. Why?

I have a VPS that runs a Java server, a redis server and a PostgreSQL server. Everything is running well but last night my server "crashed" at 3:15:50 AM. At least that's what I thought. I looked at ...
1
vote
0answers
46 views

How do processes stuck on uninterruptible sleep state get cleared upon reboot? [closed]

While processes stuck on an uninterruptible sleep state (i.e. TASK_UNINTERRUPTIBLE waiting I/O from a defunct device) cannot be killed by signals sent by root via the kill command, more often than not ...
4
votes
2answers
5k views

Cant kill process on Windows Server 2008!! - Thread in Wait:Executive State

I hope someone can help me with our issue we are having. We have a major issue with a process that we can not kill and the only way to get rid of the process is to reboot the machine. I have tried ...
10
votes
5answers
4k views

Kill a process and force it to return 0 in Linux?

In the Linux environment, how can I send a kill signal to a process, while making sure that the exit code returned from that process is 0? Would I have to do some fancy GDB magic for this, or is there ...
9
votes
4answers
20k views

kill a screen (but not all screens)

I have multiple screens running on an Ubuntu server that are initiated as: screen -dmS screen1 cmd screen -dmS screen2 cmd etc... And I need to kill one screen, but not all of them. What is the ...
0
votes
2answers
1k views

Why kill makes a bash script exit

after the kill statement the script prints "Terminated" and the following lines never get executed: #!/bin/bash kill -9 `ps -ef | grep MailSender | grep -v grep | awk '{print $2}'` echo starting ./...
2
votes
1answer
875 views

Kill any GS process that's been running for over 5m on CentOS 6.5

Hi our server has a weird issue where once a month or so a GS (GhostScript) process gets stuck and eats 10-75% CPU until I kill the process. strace hasn't provided anything useful so until I can ...
12
votes
3answers
13k views

Kill process with high CPU usage after X time? [closed]

running linux i have a few processes which tend to crash occasionally (game servers), which end up using 100% cpu. I'm looking for a program or script to check the cpu usage of a list of processes by ...
0
votes
1answer
637 views

Weird stuff in server error log?

I have a PHP script that shuts down server processes based on their PIDs. It seems like it works well, however, I found this weird stuff in Apache's error log. Any idea on what it's saying? [Thu Jul ...
3
votes
2answers
412 views

After kill -9 process won't disappear and port is still bound

We have a Java server application running on Mac OS X. Occasionally this application has become unresponsive, and we have resorted to killing it with kill -9. However, the process doesn't disappear; ...
2
votes
2answers
107 views

Guaranteeing Shell Responsiveness on Pegged System

So my system is getting DOS'd, or I've just opened a kind-of-huge file (openstreetmaps planet.osm). The system goes totally unresponsive... so unresponsive that it'll take about 10 minutes to get into ...
1
vote
3answers
79 views

get PIDs of processes from

I have a path to an executable. Assume I want to delete this file. I need to find all processes launched using this file and kill them. What is the best way to do it?
5
votes
2answers
5k views

Remove a zombie process from the process table

I've got an annoying zombie process that gets adopted by init, and it won't go away. I've read there is a way to create a dummy process, attach the zombie as a child of that new process and then kill ...
0
votes
1answer
34 views

view/kill a Windows O/S processes from Ubuntu Server

Is there a Ubuntu version of Sysinternals Process Utilities, which allows Window users to view/control remote processes? I already know I can setup cygwin on Windows and use ssh to remote in. All I'm ...
8
votes
3answers
2k views

What effect does it have on a server when you kill all root processes?

There were other devs logged in as root that I wanted to kick out. So I issued pkill -KILL -u root Then I realized that I probably killed all kinds of root processes. Have I damaged my system? I ...
0
votes
2answers
50 views

Privilege user killing user processes

can we do the following on *NIX. Create following folder structure. /<parent folder>/<child folder 1> /<parent folder>/<child folder 2> /<parent folder>/<child ...
0
votes
1answer
161 views

How to know which user killed a process

Is there a way in linux to find out which user or which process killed another process? Maybe a log? I searched through /var/log and specifically on auth.log.* but I didn't find anything interesting.....
-3
votes
3answers
11k views

How to safely kick out other users logged in as root?

I tried this: pkill -KILL -u root It turns out that wasn't what I wanted. Now I can't log in by SSH. What is the correct way? Edit - I've added the word "safely" to the question. I know that you ...
0
votes
2answers
52 views

What signal is sent to running process after network fail?

I am trying to reproduce a situation where a process fails due to a network outage. I was hoping to reproduce this signal with a kill command. A normal kill command is not working. I have taken a look ...
2
votes
1answer
6k 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?
1
vote
3answers
958 views

Gracefully stop a Windows process remotely

Does anyone know how to gracefully stop a Windows process remotely on Windows XP Professional machines (i.e. there the remote machines are running Windows XP Professional)? The pskill utility seems ...
1
vote
1answer
301 views

I just installed a profiler into Tomcat 7 and now I'm getting BindException on shutdown

So the HOWTO I just read says to add these JAVA_OPTS to the startup script: -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=[place port number here] -Dcom.sun.management....
1
vote
3answers
185 views

kill script execution

I have a script that I have to run with certain frequency. This script executes a number of programs, in a loop, setting some variables in each loop. Since this script runs for hours, I run it using ...
2
votes
2answers
1k views

kill -HUP is not working with celery daemon

So I have a shell script that daemonizes celery, and creates a bunch of workers running as a daemon. I would like to have a way to restart the celery task when the underlying source gets changed since ...
3
votes
3answers
3k views

How to kill a process in Linux if kill -9 has no effect

I imagine that kill -9 still just sends a signal to a process. If the process is not behaving well, I would imagine that kill -9 would have no effect. Indeed, today for the first time I saw kill -9 ...
1
vote
1answer
308 views

What happens when you kill a process that has database tables locked?

Trying to kill a process that running a MySQL database backup, and has the tables locked. What will happen if I kill the process?
1
vote
3answers
2k views

linux/solaris kill many proccess with one command

Is it possible to kill all find process with one command? I do not want to kill each process as kill -9 25295 , kill -9 11994 , etc.. Rather, what I want is a simple way or command that kill all find ...
2
votes
1answer
461 views

When I kill a subprocess created in a bash script - it automatically re-spawns. Why?

I have the following script which I run using the command: ./thescript.sh 2>&1 & and if I kill the sub process spawned by it, after a few seconds it is restarted. Why is this? thescript....
18
votes
3answers
13k views

kill -9 a postgres process

A postgres SELECT query ran out of control on our DB server and started eating up tons of memory and swap until the server ran out of memory. I found the particular process via ps aux | grep postgres ...
0
votes
1answer
2k views

How to automatically kill PHP processes with infinite loops at server level

I have a sandbox on my server where I allow users to run their own PHP scripts. If a PHP script has an infinite loop, it only stops when Apache times the process out (30 seconds) which is obviously ...
2
votes
1answer
561 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 ...
6
votes
4answers
1k views

Kill process by command name

I would like to kill a java process based on the command name... Whats the best way to do it? (i.e. when you do ps -f the name in the CMD column).
0
votes
3answers
3k views

how to kill a process running on remote windows machine from linux?

I am looking for something like SysInternals pskill which is just great! But that can be executed on Linux more exactly I want it to run on Maemo (Nokia N900 phone). Please do not offer me to run a ...