ASP. NET

Source: Internet
Author: User
Tags servervariables

Label1.text = "server name:" + server. machinename; // server name
Label2.text = "Server IP Address:" + request. servervariables ["local_addr"]; // server IP Address
Label3.text = "server domain name:" + request. servervariables ["SERVER_NAME"]; // server Domain Name
Label4.text = ".. net engine version: "+ ". net CLR "+ environment. version. major + ". "+ environment. version. minor + ". "+ environment. version. build + ". "+ environment. version. revision ;//.. Net Engine Version
Label5.text = "Server OS Version:" + environment. osversion. tostring (); // Server OS version
Label6.text = "server IIS Version:" + request. servervariables ["server_software"]; // server IIS version
Label7.text = "HTTP access port:" + request. servervariables ["server_port"]; // HTTP access port
Label8.text = "absolute path of the virtual directory:" + request. servervariables ["appl_rhysical_path"]; // absolute path of the virtual directory
Label9.text = "absolute path of the execution file:" + request. servervariables ["path_translated"]; // absolute path of the execution File
Label10.text = "Total Number of sessions in the virtual directory:" + session. Contents. Count. tostring (); // Total Number of sessions in the virtual directory
Label11.text = "Total number of applications in the virtual directory:" + application. Contents. Count. tostring (); // total number of applications in the virtual directory
Label12.text = "Domain Name HOST:" + request. servervariables ["http_host"]; // domain name host
Label13.text = "server region language:" + request. servervariables ["http_accept_language"]; // server region Language
Label14.text = "user information:" + request. servervariables ["http_user_agent"];
Label14.text = "CPU count:" + environment. getenvironmentvariable ("number_of_processors"); // Number of CPUs
Label15.text = "CPU type:" + environment. getenvironmentvariable ("processor_identifier"); // CPU type
Label16.text = "process start time:" + getprstart (); // process start time
Label17.text = "ASPnet memory usage:" + getaspnetn (); // ASPnet memory usage
Label18.text = "ASPnet CPU time:" + getaspnetcpu (); // ASPnet CPU time
Label19.text = "FSO text file read/write:" + check ("scripting. FileSystemObject"); // FSO text file read/write
Labelemeditext = "memory occupied by applications" + getserverappn (); // memory occupied by applications

Related Article

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.