【发布时间】:2018-06-11 09:11:21
【问题描述】:
我在 Apache J-Meter 4.0 中运行性能测试时收到“响应代码 500 - 内部服务器错误”,以记录通过 VPN 完成的简单测试。我是这个工具的新手,想知道如何对此进行调查。作为参考,我提到了我得到的采样器结果错误。
Sampler Result:
Thread Name: Thread Group 1-1
Sample Start: 2018-06-11 13:21:56 IST
Load time: 1941
Connect Time: 1700
Latency: 1941
Size in bytes: 2301
Sent bytes:2145
Headers size in bytes: 594
Body size in bytes: 1707
Sample Count: 1
Error Count: 1
Data type ("text"|"bin"|""): text
Response code: 500
Response message: Internal Server Error
Response headers:
HTTP/1.1 500 Internal Server Error
Date: Mon, 11 Jun 2018 07:51:58 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 1707
Connection: keep-alive
Set-Cookie: AWSALB=ZS1nnfJyJ+Wk5NEu/FmWGmiRWfEQPnfiywAN8b8f8De6AjOYDrh0nWRVVcsQeBanayjPnpp1IxhjK34EipQB4m/lsAZgdKJ4mgUDDS+Yep8atzWucMNdYTw0oIdB; Expires=Mon, 18 Jun 2018 07:51:58 GMT; Path=/
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
Access-Control-Allow-Origin: *
Content-Security-Policy: default-src 'self'
Vary: X-HTTP-Method-Override
X-Content-Type-Options: nosniff
X-Powered-By: Express
HTTPSampleResult fields:
ContentType: text/html; charset=utf-8
DataEncoding: utf-8
【问题讨论】:
-
(注意:请不要在这里寻求一对一的支持,或者私人电话/VOIP电话——这个平台是为了帮助未来的读者在公共场合解决问题。如果你需要私人付费支持,我可以就其他地方提供一些建议。)
-
500 错误是您正在测试的应用程序内部的问题。它不是很具体,因此您需要检查 SUT 的日志以发现问题所在。 SUT 确实可以选择呈现更具体的错误,但它选择为您提供“内部服务器错误”,这是可能提供的信息最少的错误消息(在计算机术语中,这是显而易见的陈述)。您是否有权访问该项目以便检查其日志?
标签: jmeter performance-testing