Let the code tell the secret of Process

Source: Internet
Author: User
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.

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.