Let Code Telling the secrets on Process
1. Create a project
2. Several important background processes
1. Create a project
Create a cloud project, add a web role, add a processdetails. ASPX page, and add a gridview in the foreground.
<Form ID = "form1" runat = "server"> <br/> <div> <br/> <asp: gridview id = "processesgridview" runat = "server"> <br/> </ASP: gridview> <br/> </div> <br/> </form>
Add code to page_load:
Protected void page_load (Object sender, eventargs e) <br/>{< br/> var processes = process. getprocesses (); </P> <p> This. processesgridview. datasource = <br/> from process in processes <br/> orderby process. processname <br/> select new <br/> {<br/> name = process. processname, <br/> id = process. id. tostring () <br/>}; <br/> This. processesgridview. databind (); <br/>}
Click F5 to start debugging,ProgramAll processes running on the VM will be output. if the process is tested on the local machine, a list of processes running on the local machine will be output.
2. Several important background processes: 2.1 w3wp.exe
W3wp.exe (IIS background process) does not exist in the process. Although Windows azure uses IIS, a new feature: hostable web core is used, and Windows azure uses the wawebhost process to host IIS runtime.
2.2 rdagent Process
The rdagent Process collects the health status of the role through pipe. All the collected information can be obtained by FC. Therefore, FC determines that the next step is to restart the server.
Code download
This series of blogs are all personal insights when learning the Windows azure platform, which inevitably has shortcomings. please correct me and leave a message to give your valuable comments.