asp.net – 如何使用PowerShell了解IIS中托管的特定网站的活动会
发布时间:2020-12-16 06:38:27 所属栏目:asp.Net 来源:网络整理
导读:我问了一个关于知道IIS中运行会话数的问题. Get running session count from IIS for my hosted Asp.Net web site 我得到了以下的powershell脚本 Write-host Getting performance counters ...$perfCounterString = "asp.net applications(__total__)sessi
我问了一个关于知道IIS中运行会话数的问题.
Get running session count from IIS for my hosted Asp.Net web site 我得到了以下的powershell脚本 Write-host Getting performance counters ... $perfCounterString = "asp.net applications(__total__)sessions active" $counter = get-counter -counter $perfCounterString $rawValue = $counter.CounterSamples[0].CookedValue write-host Session Count is $rawValue 此单击此脚本为IIS中托管的所有网站提供活动会话计数 我只想知道如何修改此脚本,以便它只应为特定网站提供活动会话计数. 解决方法$ServerName = 'IIs1' $SiteName = 'default web site' get-counter "$ServerNameweb service($SiteName)current connections" (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net-mvc – 传入字典的ASP.NET MVC模型项是类型的
- asp.net – 在图表中显示图例
- asp.net – 发布时母版页无法加载类型错误
- asp.net-mvc – 像Stack Overflow这样的网站如何在ASP.NET
- ASP.NET Core 认证与授权[6]:授权策略是怎么执行的?
- ASP.NET SQL成员资格表
- asp.net – 在请求结束前触发Application_EndRequest?
- 在MVC中使用Json.Net序列化和反序列化Json对象
- asp.net – 确保dot.net站点始终运行
- asp.net – 为什么IIS 7.5在重启后重新编译整个网站?
推荐文章
站长推荐
- asp.net-mvc-3 – 如何在ASP .NET MVC 3中验证与
- asp.net – 在string.format中添加单行if语句
- asp.net – 在1个进程中创建多个Kestrel实例是否
- 实体框架 – 具有实体框架的MVC MiniProfiler 5模
- asp.net-core-mvc – 创建多个dbcontexts的MVC 6
- asp.net-mvc – 针对MVC Web应用程序的域驱动设计
- asp.net-mvc – ASP.NET MVC动态生成的图像URL
- asp.net-mvc – 将变量与静态html连接起来的语法
- asp.net-mvc – MVC / Razor – 当有下列括号时,
- asp.net-mvc-4 – 如何在MVC 4中每3秒刷新一次局
热点阅读