linux in view of a process ps-ef | grep java (change)

2010-07-05  来源:本站原创  分类:OS  人气:203 

ps-ef | grep java java process view all

root 17540 1 0 2009? 01:42:27 / usr/java/jdk1.5.0_15/bin/java-Djava.util.logging.config.file = / usr / local / tomcat / conf / logging.properties-server - Xms800m-Xmx800m-XX: PermSize = 64M-XX: MaxNewSize = 256m-XX: MaxPermSize = 128m-Djava.awt.headless = true-Djava.util.logging.manager = org.apache.juli.ClassLoaderLogManager-Xms256m-Xmx1024m - Djava.endorsed.dirs = / usr / local / tomcat / common / endorsed-classpath: / usr / local / tomcat / bin / bootstrap.jar: / usr / local / tomcat / bin / commons-logging-api.jar-Dcatalina . base = / usr / local / tomcat-Dcatalina.home = / usr / local / tomcat-Djava.io.tmpdir = / usr / local / tomcat / temp org.apache.catalina.startup.Bootstrap start
root 19979 1 0 Jan05? 00:00:51 / usr / java / latest / bin / java-Djava.util.logging.manager = org.apache.juli.ClassLoaderLogManager-Djava.util.logging.config.file = / usr / local/apache-tomcat-6.0.16/conf/logging.properties-Xms256m-Xmx1024m-Djava.endorsed.dirs = / usr/local/apache-tomcat-6.0.16/endorsed-classpath: / usr / local / apache -tomcat-6.0.16/bin/bootstrap.jar-Dcatalina.base = / usr/local/apache-tomcat-6.0.16-Dcatalina.home = / usr/local/apache-tomcat-6.0.16-Djava.io . tmpdir = / usr/local/apache-tomcat-6.0.16/temp org.apache.catalina.startup.Bootstrap start
root 27120 27015 0 13:23 pts / 4 00:00:00 grep java

Via ps-ef | grep java thread above will be terminated with a thread
kill -9 XXXXX XXXXX identify the serial number for the above example: 19979 for the thread to terminate: kill -9 19979

kill a thread to stop when required to be careful not to mistake the thread that should not be stopped cause unnecessary trouble.
Only available in very confident that this method stops the thread.

相关文章
  • Linux command: ps -ef |grep java 2013-08-22

    PS是LINUX下最常用的也是非常强大的进程查看命令 ps -ef |grep java //以下这条命令是检查java 进程是否存在. 下面对命令选项进行说明: -e 显示所有进程. -f 全格式. ps e 列出程序时,显示每个程序所使用的环境变量. ps f 用ASCII字符显示树状结构,表达程序间的相互关系 grep命令是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹 配的行打印出来.grep全称是Global Regular Expression Print,表示全局正则表

  • linux in view of a process ps-ef | grep java (change) 2010-07-05

    ps-ef | grep java java process view all root 17540 1 0 2009? 01:42:27 / usr/java/jdk1.5.0_15/bin/java-Djava.util.logging.config.file = / usr / local / tomcat / conf / logging.properties-server - Xms800m-Xmx800m-XX: PermSize = 64M-XX: MaxNewSize = 256

  • linux how many view the current process 2011-01-20

    linux how many view the current process ps aux | wc-l

  • linux系统下ps -aux和ps -ef命令参数的作用及区别详解 2015-03-26

    在linux系统中,ps是简单而强大的进程查看命令,而ps -aux和ps -ef是打印出所有进程.其中的参数详解如下:ps -aux是以BSD方式显示a显示所有用户的进程(show processes for all users)u 显示用户(display 在linux系统中,ps是简单而强大的进程查看命令,而ps -aux和ps -ef是打印出所有进程.其中的参数详解如下: ps -aux 是以BSD方式显示 a 显示所有用户的进程(show processes for all users

  • Under the view that the process of occupation of AIX 80-port approach (with the other ports and such) 2010-09-25

    netstat -Aan | grep 80 f100020000202b98 tcp 0 0 *.80 f100020000202b98 try to delete this address, if the error will be reported that the process of occupation. /root# rmsock f100020000202b98 tcpcb The socket 0x202808 is being held by proccess 282766

  • linux view of a process ps-ef | grep java (rpm) 2011-09-08

    ps-ef | grep java java process on all root 17540 1 0 2009? 01:42:27 / usr/java/jdk1.5.0_15/bin/java-Djava.util.logging.config.file = / usr / local / tomcat / conf / logging.properties-server - Xms800m-Xmx800m-XX: PermSize = 64M-XX: MaxNewSize = 256m-

  • Linux operating system commands detailed analysis PS 2010-10-10

    Linux operating system commands detailed analysis PS To monitor the process control system, use the ps command to meet you. / Bin / ps ps trip is to show transient state, not dynamic continuous; If you want to run-time monitoring of the process, shou

  • Tomcat startup under Linux. Close. To kill the process 2010-03-29

    Quote Open Terminal cd / java / tomcat # Implementation of the bin / startup.sh # Start tomcat bin / shutdown.sh # Stop tomcat tail-f logs / catalina.out # to see tomcat console output; # See if it already has tomcat running of the ps-ef | grep tomca

  • linux kill all the tomcat process a user 2010-03-31

    ps aufx | grep tomcat | grep 509 | awk '(print $ 2)' | xargs kill -9 509 Replace the user name you want to kill Sometimes not directly shutdown.sh close tomcat, to force the kill off, but may start a number of tomcat, the process had already been the

  • Linux user view has been operating over the command 2010-09-22

    Linux user view has been operating over the command: 1, can be ordered through history 2, you can shortcut: ctrl + shift + r, by entering the keyword query 3, in the user's root directory, view files ". Bash_history" the contents of the

  • Linux 2.6 kernel boot process analysis 2010-09-29

    Linux 2.6 kernel boot process analysis To an article on the Linux kernel compilation process, the next generation of the kernel this paper to introduce the Linux kernel boot process. In this paper, an example x86, x86 and embedded systems more than a

  • Switch: Linux in view of the command system resources 2010-12-06

    With the 'top-i' to see how many processes in the Running state, there may be system memory or I / O bottlenecks, use the free look at the system memory usage, swap it occupied a lot of use iostat to see I / O load. .. Another approach is ps-ef | sor

  • Linux, how to make the process run in the background 2011-03-23

    In Linux, if you want the process running in the background, under normal circumstances, the command followed by & we can, in fact, this is the command into a job queue: the $. / Test.sh & [1] 17208 $ Jobs-l [1] + 17208 Running. / Test.sh & Fo

  • Linux, Tomcat startup. Close. Kill process 2010-09-27

    Open a terminal cd / java / tomcat # Implementation bin / startup.sh # Start tomcat bin / shutdown.sh # Stop tomcat tail-f logs / catalina.out # to see tomcat console output; # See if tomcat has been in operation for ps-ef | grep tomcat # If so, use

  • linux view the port process, kill process 2010-09-07

    1: First view of the port to which the process is taking up [[email protected] ~]# lsof -i:80 COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME java 22451 root 74u IPv6 3535878 TCP 10.22.43.52:http->10.22.161.112:vpnz (ESTABLISHED) java 22451 root 115u IPv

  • View and delete process under Linux 2010-09-19

    The company's test server using Linux, the process has encountered a port is occupied by residual status. Linux, the command: lsof-i: port We look at the occupation ID to use 8080 port lsof-i: 8080 Look to the process ID is 31840 Clear process: kill

  • Linux, how to find which process uses the specified port is lsof 2010-12-16

    lsof-i: 3306 View 3306 Port occupation by whom About lsof lsof (list open files) are listed in the current system is a tool to open the file. In the linux environment where everything is in the form of the document, not only can be accessed through t

  • strace, ltrace linux command to track the process of calling 2011-04-15

    Reprinted from: http://hi.baidu.com/ostech/blog/item/b600c901d742987b3812bb0b.html This tool can be used to do most of the excluded, such as mount an NFS, very slow, no cause, we can use the strace command to mount with the all of this is often calle

  • linux dmidecode View hardware information 2010-03-03

    Can use the command in the linux platform hardware information dmidecode view, the following is output only for the record [Root @ mcprod ~] # dmidecode # Dmidecode 2.7 SMBIOS 2.5 present. 51 structures occupying 2516 bytes. Table at 0x000EF510. Hand

  • cpu. memory. Linux systems view and determine the average load, etc. 2010-05-05

    1, for cpu occupancy [Root @ localhost utx86] # top-n 1 | grep Cpu Cpu (s): 1.9% us, 1.3% sy, 0.0% ni, 95.9% id, 0.6% wa, 0.1% hi, 0.2% si, 0.0% st Explained: 1.9% us is the user take up cpu case 1.3% sy, is the system is using cpu case 2, access the