Jmeter 与 Asp.Net 应用程序
我正在使用 JMeter 对我的应用程序进行压力测试,我的应用程序是带有 sql 数据库的 Asp.net 4.0 应用程序。我正在尝试从我的应用程序实现完整的工作流程,我正在尝试的当前操作是针对 300 个用户,启动时间为 1 秒。我维护了视图状态和其他必需字段,以便 JMeter 适用于 Asp.net 应用程序。由于这两个错误,我的大部分请求都失败了。
1.
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
2.
HttpException (0x80004005):视图状态 MAC 验证失败。如果 该应用程序由网络场或集群托管,请确保 配置指定相同的validationKey和validation 算法。 AutoGenerate 不能在集群中使用。
我只是对这些错误感到好奇,想知道这是由于应用程序故障还是这些 JMeter 错误?
I am stress testing my application using JMeter my app is made an Asp.net 4.0 app with a sql database. I am trying to achieve a full workflow from my app the current action which I am trying is for 300 users with 1 sec rampup time. I have maintained the viewstate and other required fields so that JMeter works for an Asp.net app. Most of my request are failing due to these two errors.
1.
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
2.
HttpException (0x80004005): Validation of viewstate MAC failed. If
this application is hosted by a Web Farm or cluster, ensure that
configuration specifies the same validationKey and validation
algorithm. AutoGenerate cannot be used in a cluster.
I am just curious about these errors and want to know if this is due an application fault or are these JMeter errors?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
绝对是应用程序错误。您的连接已用完。使用 jconsole 等与您的开发人员合作来解决服务器配置问题。该问题可能源于您在 1 秒内发送 300 个登录请求。开发/测试环境可能根本无法处理这个问题。
在进行一些快速的 Google/Bing-ing 之后,看起来也像是应用程序配置错误。
Is definitely an application fault. You've ran out of connections. Work with your developer using jconsole or the like to trouble shoot server config issues. The problem may stem from the fact that you are sending 300 login requests within 1 second. The dev/test environment may simply not handle that.
Also looks like an application config error after doing some quick Google/Bing-ing.