IIS 何时记录 500 错误?他们都是致命的吗?
我在 IIS 中托管 WCF 服务供我的客户调用。在负载测试期间,所有客户端调用都返回良好,但我在 IIS 日志文件中看到很多 500 错误。如下:
2012-02-09 08:01:37 192.168.0.1 POST /XXX/Service.svc - 443 - 192.168.0.2 - 200 0 0 8983
2012-02-09 08:01:37 192.168.0.1 POST /XXX/Service.svc - 443 - 192.168.0.2 - 500 0 0 531
2012-02-09 08:01:37 192.168.0.1 POST /XXX/Service.svc - 443 - 192.168.0.2 - 500 0 0 546
2012-02-09 08:01:37 192.168.0.1 POST /XXX/Service.svc - 443 - 192.168.0.2 - 500 0 0 546
2012-02-09 08:01:37 192.168.0.1 POST /XXX/Service.svc - 443 - 192.168.0.2 - 200 0 0 14155
问题是:
- IIS什么时候记录500错误?
- 既然所有客户端请求似乎都得到满足,我们可以安全地忽略这 500 个错误吗?
谢谢!
I am hosting a WCF service in IIS for my clients to call. During the load testing, all the client calls returns well, but I see a lot of 500 errors in the IIS log file. Such as below:
2012-02-09 08:01:37 192.168.0.1 POST /XXX/Service.svc - 443 - 192.168.0.2 - 200 0 0 8983
2012-02-09 08:01:37 192.168.0.1 POST /XXX/Service.svc - 443 - 192.168.0.2 - 500 0 0 531
2012-02-09 08:01:37 192.168.0.1 POST /XXX/Service.svc - 443 - 192.168.0.2 - 500 0 0 546
2012-02-09 08:01:37 192.168.0.1 POST /XXX/Service.svc - 443 - 192.168.0.2 - 500 0 0 546
2012-02-09 08:01:37 192.168.0.1 POST /XXX/Service.svc - 443 - 192.168.0.2 - 200 0 0 14155
Questions are:
- When does IIS log 500 error?
- Since all the client requets seem to be satisfied, can we safely ignore these 500 errors?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
500 错误代码是通用 HTTP 错误状态,指示 Web 服务器的错误状态。
收到此类错误的原因可能有无数。如果不进行进一步分析,就无法确定导致错误的原因。
尝试逐步调试代码并检查生成的异常。
The 500 error code is a generic HTTP error state that indicates a faulty state of the web server.
There can be innumerable reasons for receiving such error. Without further analysis there is no way to determine what's causing the error.
Try debugging your code step-by-step and check the exception being generated.