我需要比 Sysinternals TCPView(我经常使用的)功能更丰富的东西......但它也必须是免费软件。:)
我正在使用WSF,VBS和JavaScript脚本系统来推动Web服务负载测试.加载驱动程序在我的工作站上运行,将请求发送到远程应用程序服务器.我正在使用WScript.StdOut.Write驱动程序脚本来编写结果,并在运行测试时将输出重定向到文本文件:
cscript //nologo driver.wsf > test_results.txt
Run Code Online (Sandbox Code Playgroud)
当我使用仅有100个事务的"冒烟测试"输入文件时,测试运行得相当快,没有问题.当我使用200,000个事务的"负载测试"输入文件时,驱动程序的性能会随着时间的推移而降低,直到它运行的工作站变得无响应并且正在使用85%的页面文件.我的test_results.txt文件大小刚刚超过43GB.
我怀疑Windows正在将StdOut输出缓存到内存而不是将其写入文件; 有没有人有其他解释或其他想法?将输出作为文件系统对象从我的脚本管理而不是使用StdOut会更好吗?
更新:我的驱动程序基本上这样做(伪代码):
Open input file
Read a record
While not EOF
Encode record
Create SOAP message containing record
Make web service request
Write time to get response to StdOut
Read another record
End While
Close input file
Run Code Online (Sandbox Code Playgroud) 我们有多个vb项目.我们想在所有函数中放置错误处理程序,错误处理程序应该写入文件.有任何可用的工具 - 我们已经查看了codesmart和vbwatch.
$FilePath = 'Z:\next\ResourcesConfiguration.config'
$oldString = 'Z:\next\Core\Resources\'
$NewString = 'G:\PublishDir\next\Core\Resources\'
Run Code Online (Sandbox Code Playgroud)
任何想法如何替换具有以下内容的字符串:登录.我想更改配置文件中的路径.简单的代码不适用于此.试过以下
(Get-Content $original_file) | Foreach-Object {
$_ -replace $oldString, $NewString
} | Set-Content $destination_file
Run Code Online (Sandbox Code Playgroud)