The stop script shutdown.sh for Tomcat under Linux often fails, causing the Tomcat process not to shut down. Therefore, you can only manually find the process ID and then use the KILL command to force the stop. Check it every time, and then kill the
Actual User ID (actual group ID): Identifies who the current user (belongs to) is and is taken from the password file when the user logs on.Valid user ID (valid group ID): Used to determine our (current process) access to the file (that is, the actual
25% and lasts for a long time. Because I'm a 4-core, it's actually already full of CPU resources, which means that eclipse is in trouble.4. Using the Process Explorer tool to view the threads in this Java process, it is found that 1 threads occupy almost the majority of the CPU resources (sometimes two threads) of the process, which is almost a dead loop.5. Use
1. Use shell script to find the process ID corresponding to the program and kill the process
#!/bin/sh
name=$1
echo $NAME
id= ' ps-ef | grep "$NAME" | grep-v "grep" | awk ' {print $} '
echo $ID
E Cho "---------------" for
#!/bin/shName=$1Echo $NAMEId= ' Ps-ef | grep "$NAME" | Grep-v "$" | Grep-v "grep" | awk ' {print $} 'Echo $IDecho "---------------"For ID in $IDDoKill-9 $idecho "Killed $id"Doneecho "---------------"1), save it as killprocess.sh2), call./killprocess.sh programmename. Where programme can be the name of the program or the command line to start the program, as long as it can be Ps-ef | After grep programmename
Tags: image UNIX environment programming user ID WWW condition itblog next technology ownerTransferred from: http://www.cnblogs.com/kunhu/p/3699883.htmlMultiple user IDs and user group IDs are involved in the UNIX process, including the following:1. Actual user ID and actual user group ID: identify who I am. That is, t
DOS commandTasklist |findstr "1696" to view process name through process IDtasklist List All ProcessesNetstat-ano view the various states of the current network communication process connectionThe following transfers from http://blog.chinaunix.net/uid-27570589-id-3969108.htmlPath to run program is found under Windows v
Excerpt from: http://www.cnblogs.com/lisuyun/p/5880815.htmlDOS commandTasklist |findstr "1696" to view process name through process IDtasklist List All ProcessesNetstat-ano view the various states of the current network communication process connectionThe following transfers from http://blog.chinaunix.net/uid-27570589-id
From Csdn Blog, original address: http://blog.csdn.net/pet8766/article/details/8186955Netstat-ano|findstr "443"//Search 443 port occupancy and find the process IDTCP 0.0.0.0:443 0.0.0.0:0 LISTENING 720//Find PID 720UDP 0.0.0.0:59443 *:* 7584-----------------------------------------------Tasklist|findstr "720"//Find PID
their own namespace and PID of their parent namespace, where the namespace of the process can be seen to be assigned a PID. So there are:Global ID: The unique ID in the kernel itself and in the initial namespace, the Init process that started during system startup belongs to that initial namespace. Each
Sometimes the Tomcat port is occupied, the process ID needs to be detected and the process is killed.1. Find the process ID that occupies the port (Windows and Linux as 8005 can also be
Most of the information provided on the Internet is provided to find the thread ID, which is limited to the ID of the thread object inside the Java program, rather than the thread ID of the entire system, it was originally expected that the thread id =
Start Java in LinuxProgramGenerally, the command is executed:
Java-CP $ {classpath} org. Self. Test. Main
To stop a program, run the following command:
Kill $ {pid}
You cannot directly obtain the PID of the Java Process with this startup command, but you can use JPs or ps command to indirectly find the PID and then execute the kill command.
Some programs directly generate a. PID file during startup
1, the Linux shell to get the process ID method: ps-a |grep "/usr/sbin/gps_app" | awk ' {if ($ = = ' start ') {print}} 'Pidof "CmdName" Pgrep "CmdName"
The results of these three kinds of operations in bash and BusyBox ash are slightly different,
First: ps-a, listing all processes
grep "CmdName" to filter for processes that match cmdname fields
awk ' {if ($ =
1 netstat-nlp to view the service that uses the port number2 process to find this port number3 Find the Process ID4 Kill it
How do I view the port number of a process?
NETSTAT-LNP | grep EXFTCP 0 0 0.0.0.0:9101 0.0.0.0:* LISTEN 5791/exfilter
Note: The exfilter in the abov
When you need a Kil process, you need to provide a PID (using the kill command) or a process name (using the pkill command ).How does pkill get the process ID through the process name?In Linux, processes are represented by files,
Basic attributes of a process: process ID, parent process ID, process group ID, session, and control terminal.Abstract:This document describes the basic attributes of a
Basic attributes of a process: process ID, parent process ID, process group ID, session, and control terminalAbstract:This document describes the basic attributes of a
2011-02-26 23:02 4422 People read comments (2) Collection report
Recently learning to communicate between processes, but I have not found a Linux from the process name can be used to get the process ID of the function, so I wrote one. Can get the correct result, but it is not efficient to get it through the system func
. There are potential security issues with the method of assigning process IDs here. Because you can get information from the system or extract the content of interprocess communication. Given security concerns, some systems may use other methods to assign process IDs, such as randomly assigning a process ID. Regardles
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.