Avira Linux Threading Instructions

Source: Internet
Author: User

In the work of restarting the environment often occur memory overflow and so on, often need to kill the process to help restart the success, the following the detailed instructions for the Avira thread to do a summary: 1. Find the thread that needs to be killed:

Ps-elf|grep "Thread Critical Information"

For example: Ps-elf|grep java to find all Java threads, such as deleting a tomcat thread, can be executed: ps-elf|grep tomcat so you can find all the threads associated with Tomcat and find the thread ID you need to kill. 2. Forcing the thread to terminate: Kill-9 "thread id" such as your thread ID is 5645646, then you can do it: kill-9 5645646 3. Confirm that the thread has been deleted:

Ps-elf|grep Tomcat or Ps-elf|grep Java

Complementary threads that encounter thread-critical information unclear or with critical information detected during the job are not complete:

1. Find all Java processes

Ps-elf|grep Java

2. Go to the environment to put the file path

Like CD/**/**/**/**/bin.

3. View the contents of the process files and identify relevant key information

./jinfo Process Number (check if internal information is the process information you want to Avira)

4. Killing process

Kill-9 Process Number

Knowledge Supplement

View the process in 1,linux, using the PS command.
The PS command finds the PID number associated with the process:
PS A shows all programs under the current terminal, including other users ' programs.
Ps-a Show All Programs.
PS C shows the actual instruction name of each program when the program is listed, not including the path, parameter, or indication of the resident service.
Ps-e the effect of this parameter is the same as specifying the "A" parameter.
When you list a program, PS e displays the environment variables that are used by each program.
PS F Displays the tree structure with ASCII characters and expresses the relationship between the programs.
PS-H displays a tree structure that represents the inter-program relationship.
Ps-n shows all the programs except the ones that perform the PS command terminal.
PS s uses program signal format to display program status.
PS S lists programs, including interrupted sub-program data.
ps-t< Terminal number > Specify the terminal number, and list the status of the program belonging to the terminal.
PS U Displays the status of the program in a user-oriented format.
PS x shows all the programs, not the terminal to distinguish.

The most common method:
PS aux, and then use the grep command to filter through the pipeline to find a specific process and then manipulate the specific process.
PS aux | grep program_filter_word,ps-ef |grep Tomcat

Ps-ef|grep java|grep-v grep shows all the Java processes and places the current grep process away.

Kill the specified process in 2,linux, using the KILL command.
Show CPU usage and part of the process: top
Show connection port usage process: Netstat-noap/-an |grep NAME
To end a process with the KILL command: Kill XXX
Freq used: kill-9 324
Linux also provides a killall command that directly uses the name of the process rather than the process identification number, for example: # killall-9 Name

3, restart the process, you can go to the path where the execution file of the process is located, execute the file./file name.

For a reference article on Linux process management:
Learn some commands for Linux background process management
Methods for viewing all child processes and threads of a process under Linux
Example of a command that looks at what files a process has opened under Linux
How Linux finds the working directory of a process

For more information, see: http://www.jbxue.com/LINUXjishu/linux_command_x2ty1F9v_2.html

Avira Linux Threading Instructions

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.