【问题标题】:k6: WARpanic: runtime error: invalid memory address or nil pointer dereferencek6:WARpanic:运行时错误:无效的内存地址或 nil 指针取消引用
【发布时间】:2020-03-22 19:52:29
【问题描述】:

我正在尝试使用名为 K6(免费和开源负载测试工具)的工具运行性能测试,我的测试即将测试网站性能,当我运行测试时,我得到了这个:

WARN[0029] Request Failed                     
error="Get https://i.ytimg.com/vi/xtee7r5-ztY/hqdefault.jpg?
sqp=-oaymwEYCKgBEF5IVfKriqkDCwgBFQAAiEIYAXAB&rs=AOn4CLBlViQFOGYBjH0iGMUyeyWwj0CRHQ: 
read tcp 10.61.19.91:27672->172.217.19.86:443: wsarecv: A connection attempt failed because 
the connected party did not properly respond after a period of time, or established 
connection failed because connected host has failed to respond."
WARpanic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x30 pc=0xa48c2c]

测试可以在命令行上运行命令:

k6 run --out influxdb=http://localhost:8086/VideoRecord_DBD:\Applications\K6-Scripts\VideoRecording.js`

这是k6版本:

C:\Users\diz>k6 version

k6 v0.26.1(开发版本,go1.13,windows/amd64)

【问题讨论】:

    标签: performance-testing load-testing k6


    【解决方案1】:

    这可能是因为我们在为 Windows 构建的 k6 v0.26.1 版本中遇到了问题。由于 CI 错误,我们使用有错误的旧 Go 版本构建了特定的 k6 版本。

    我们专门发布了 k6 v0.26.2 来解决这个问题:https://github.com/loadimpact/k6/releases/tag/v0.26.2

    请尝试 v0.26.2,如果问题仍然存在,请打开一个新的 GitHub 问题:https://github.com/loadimpact/k6/issues/new?labels=bug&template=bug_report.md

    【讨论】:

    • 我下载了 v0.26.2,然后运行我的脚本,但我得到了另一个错误:WARN[0063] Request Failed error="read tcp 10.61.19.91:35274->89.27.131.208:443: wsarecv: An existing connection was forcibly closed by the remote host."
    • 这不再是 k6 问题 - 您正在测试的服务器已关闭连接。
    猜你喜欢
    • 2014-12-30
    • 2015-07-12
    • 2012-07-21
    • 1970-01-01
    • 1970-01-01
    • 2015-02-24
    • 2020-12-25
    • 2013-09-16
    • 2022-01-05
    相关资源
    最近更新 更多