Main Command: lsof netstat
Netstat-anpt | grep PID
After knowing the process number, you can use this method to view which network ports are being used by the current process
Run the lsof command to view the files opened by the process.
Lsof-P 2012 // What files are opened by a process whose
The previous blog post is a new process, which is a follow-up to process management: initiating and approving processesI. Three tables needed to initiate the process and audit processTwo. Write code1. Use Ajax to make a login page, use the session to get the user name:2. Login Interface Processing page dlchuli.php3. Main Page main.php4. Initiation
#!/bin/shecho "Current DIR is" $PWDWhile [1]DoServerpid= ' Ps-ef|grep process name |grep-v Grep|awk ' {print $} 'If ["$serverpid"]Thenecho "Process name is Running,pid" $serverpid#kill-9 $serverpidElseecho "Process name is down, now starting ..."dt= ' Date +%f 'Nohup process 2>>/data/socket/$dt "_ad_error.log" 1>>/data
Parent process and child process Relationship Analysis, process Relationship Analysis
Killing the parent process also kills the child process?
# Include
# Include
# Include
# Include
# Include
Int main (int argc, char * ar
Benefits:
1. Make the process accessible faster.
2. Avoid the same last error.
In projects, we sometimes encounter complicated logic (complicated process and logic ).
This may cause the following problems.
1. It is difficult to enter some pictures.
2. Mistakes are easy to make.
(We usually have evidence in the test.
A. Have achievements in the process
). " /stat ")){Indicates that the process exists and needs to be judged regularlyWrite_log ("program start Success"); for (;;){if (file_exists ("/proc/"). ( $pid + 1). " /stat ")){Write_log ("program is Alive");Usleep (1000000);}Else{Write_log ("program Die");Break}} }Else{The description process does not exist and is not a non-daemon state.Write_log ("program start Failed");Exit (0);}}else if ($status >0){
, $ _ SERVER );Write_log ("execute file failed ");Exit (0 );}Else if ($ pid> 0){// Write_log ("main pid:". getmypid (). ", child_pid:". $ pid );$ Endpid = pcntl_waitpid ($ pid, $ status, 2 );// Write_log ("status:". $ status );If ($ status = 0){// It may be a daemon program that runs in the backgroundIf (file_exists ("/proc/". ($ pid + 1). "/stat ")){// Indicates that the process exists and must be determined regularlyWrite_log ("program start success
:". $ status );If ($ status = 0){// It may be a daemon program that runs in the backgroundIf (file_exists ("/proc/". ($ pid + 1). "/stat ")){// Indicates that the process exists and must be determined regularlyWrite_log ("program start success ");For (;;){If (file_exists ("/proc/". ($ pid + 1). "/stat ")){// Write_log ("program is alive ");Usleep (1000000 );}Else{Write_log ("program die ");Break;}}}Else{// Indicates that the
1. process start:The C program is executed from the main function. The prototype is as follows:Int main (INT argc, char * argv []);Generally, the return value of main is int type, and 0 is returned correctly.If the return value of main is void or none, Some compilers will give a warning. In this case, the return value of main is usually 0.
The main command line parameters are not explained too much. The following program shows:
# Include
Int main (I
IIS crashes, you can see the DMP file in the D:\dumps folder, which you can use to analyze the DMP file to find out why IIS crashed.Debugging DMP FilesHow to debug DMP file, this will have to please out of the universe first Ide,vs, I use the vs2013 to debug, you can directly open the DMP file1, double-click DMP file will go directly to VS, you can see summary information2. Optional step: Set Symbol Path3, set the associated source code path (can be ignored)4. All ready, click "Debug Managed Me
First, the application process desc dba_apply_error dba_apply Third, the crawl processdba_captureIi. the process of disseminationdba_propagation Four,
Check the SCN of applied and how bad the SCN spreads.SELECT * from V$streams_apply_reader; V. Already existing queuesYou can use query Dba_queues,dba_queue_tables to check:Sql> Select Owner,queue_table,name from dba_queues where owner= ' strmadmin
1 Basic Overview 1.1 orphan process and zombie processAfter the parent process creates the child process, the ideal state is that the child process ends, the parent process reclaims the child process and frees the resources that t
Tags: program str task Description View system character Server init executionOrphan process and daemon processThrough the previous study we learned how to create a process through the fork () function and the vfork () function. Now let's go into two special processes: The orphan process and the daemon.I. The orphan process1. What is the orphan processIf a child
Orphan process: One parent process exits, and one or more of its child processes are still running, then those child processes will become orphans. The orphan process will be adopted by the INIT process (process number 1) and the Init pr
This article describes the VC + + process and multi-process management methods, share for everyone to reference. The specific methods are analyzed as follows:
absrtact : This paper mainly introduces the multi-process management technology in multi-task management, and expounds the mutual exclusion running of process,
First, the principle analysis1. Description of the processProcess Control block pcb--task_struct, in order to manage processes, the kernel must have a clear description of each process, and the process descriptor provides the process information that the kernel needs to understand. struct task_struct{ volatile long State; //
In Unix-like systems, users typically deal with a variety of related processes. Although there is only one terminal process (the user's login shell , which launches various programs and services through the shell) at login time, many related processes are usually generated shortly thereafter, such as the following:
Run non-interactive programs in the background (for example, "" in the Bash command)
Switch between various interactive proce
functions to create a process fork (), vfork (), and execl ()This content mainly introduces the function fork and vfork of the 2 creation process under Unix/linux and their differences.1.fork function(1) Format of the function#include pid_t fork (void);function function:It is primarily used to create new processes in a way that replicates running processes, where new processes are called child processes, an
Daemon (Daemon), an elf process, refers to running in the background, there is no control terminal connected with the program. It performs certain tasks periodically or waits for certain occurrences to be handled independently of the control terminal. It is a long-lived process, and the daemon often starts when the system boots and terminates when the system shuts down. Linux systems have many daemons, most
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.