hi everybody,
i am doing load test for 10 users,20users,30users working fine upto to this point if increase to 40 users iam getting error as below.
and also getting someimes for 30users as request time out . iam new to load test can any body help me out.
FAILED:An existing connection was forcibly closed by the remote host,
can any body help me on this error.
thanks.
-----------------------------------------------
It seems to be an SQL Server message. Please provide the exact error message and version information about platform and SQL Server. Since the system works well for low pressure, it's also possible that high pressure cause some request time out. So, please also let us know your hard ware sizing and what kind of operations you performed for each user.
-----------------------------------------------------------
Congratulations, you have found your first stress bug in your product using load testing
I have also seen this error in applications outside of SQL server. I believe it is a generic TCP/IP error. Your web server could be crashing, or calling response.Close().
At any rate, I suggest you take this problem to the developer of your product. They will probably have web server logs that correspond to this failure and will know what the problem is.
Thanks,
-JP
------------------------------------------------------
venkatanna wrote:
yes my web server is crashing ,how can i solve this problem.?.
thanks
file a bug with your developers. or the IT folks that will administer the site.
Seriously, fixing the site is not the tester's job.
there are a LOT of things that can affect webserver performance, everything from webserver settings, the physical hardware, to the code that runs the site.
this type of thing generally has to be debugged by the site developer and IT folks.. they will perhaps want to look at your test results and review the performance data that was logged to see if they identify a bottleneck (like cpu time, memory, disk access). Hopefully they also have good error logging inside the code and on the site itself, and can review those logs as well.
Website performance tuning is a HUGE subject area, and is well outside the scope of this forum..
-------------------------------------
Hi,
I have an urgent problem need help. We have an Asp.net application runing on window 2003 server. One part of the application is socket programming. When customer hits our site a little bit heavier, after serveral thoudsands hits, I statrt to get a bunch of
An existing connection was forcibly closed by the remote host
exceptions, then if the customer continue hits the site, the other function throw out of memory exception, The result is our site not responding any more. The attached is the socket call programming, any help will be appreciated! Thank you.
IPAddress[] ips = Dns.GetHostAddresses(m_sAVSHost); IPEndPoint oIPEndPoint = new IPEndPoint(ips[0], iAvsPort); Socket oSocket = new Socket(oIPEndPoint.Address.AddressFamily, SocketType.Stream, ProtocolType.Tcp); try { oSocket.Connect(oIPEndPoint); byte[] bSendBytes = Encoding.UTF8.GetBytes(sAvsParam); oSocket.Send(bSendBytes, bSendBytes.Length, SocketFlags.None);
byte[] bRecvBytes = new byte[4096]; oSocket.Receive(bRecvBytes, SocketFlags.None); rtnVal = Encoding.UTF8.GetString(bRecvBytes).Trim(); } catch (Exception ex) { VVXmlListenerException.LogException(new VVXmlListenerException(ex)); } finally { oSocket.Shutdown(SocketShutdown.Both); oSocket.Close(); }
-----------------------------------------
I would run a packet trace to find out what's actually going over the network. (Use a tool like Ethereal or Netmon.)
On all the occasions I've seen this exception, it has meant exactly what it says: the connection was forcibly closed. So this suggests that whatever your code here is connecting to is closing the connection. (Or you're going through a firewall, proxy, or other intermediary which is closing it.) The first step would be to confirm that - look at the actual packets going across the network to see what's really happening - that will most likely confirm that the error you're getting is consistent with the incoming network packets.
And if that's what you see, then the problem is external to the code you're showing us here. You need to look into why the external system - the thing that this code connects to - is kicking you off.
What does this code connect to? (I.e. what is m_sAVSHost?)
----------------------------------------------------------
For instructions on how to get a netmon trace see here:
http://blogs.msdn.com/dgorti/archive/2005/10/29/486887.aspx
For instructions on how to get a System.Net tracing log go here:
http://blogs.msdn.com/dgorti/archive/2005/09/18/471003.aspx
Mariya
---------------------------------------------------------------
I guess this is because the number of clients exceed the backlog set in the listen request of the server.
Please take a look at (5) & (6) th points in
https://blogs.msdn.com/malarch/archive/2006/06/26/647993.aspx.
Try to avoid starting many clients at the same time.. One simple solution is to Add a random sleep before starting the clients.
Malar
-----------------------------------------------------------------
Customer now resends the data when the other side closes the connection
Mariya
-----------------------------------------------------------------
I am living diffuculty at the same problem if you have solved the problem can you help me please? Thank you in advance
----------------------------------------------------------------
The problem is caused by the remote port not being available. You get a ICMP packet with "Destination unreachable (Port unreachable)" and that causes an exception when you try to "listenerPort.Receive" The error is generated by sending data to an unreachable port and then windows receiving an ICMP packet with the error. The packet is in the receive buffer and when you try to read it you end up with an exception. All you have to do is add a TRY and then igonore the error and go back to listening to the port.
You do not get an exception when you send but that is where the problem lies.
Raymond Ortiz
---------------------------------------------
The contents of this blog were gathered from the blogger real life experiences and from the different forums related to automated test.
Subscribe to:
Post Comments (Atom)
Unix/Linux Commands
Flow control Syntax break Exit a loop. continue Exit the current iteration of the loop and proceed with the next iteration. Ctrl+C Key com...
-
%systemroot%\system32\inetsrv\config\applicationHost.config https://docs.microsoft.com/en-us/iis/configuration/system.applicationhos...
-
hi everybody, i am doing load test for 10 users,20users,30users working fine upto to this point if increase to 40 users iam getting error a...
2 comments:
Hello! Do you know if they make any plugins to protect against
hackers? I'm kinda paranoid about losing everything I've worked hard
on. Any recommendations?
Look into my web site www.drbrucesteinberg.com
Hello! Do you know if they make any plugins to protect against hackers?
I'm kinda paranoid about losing everything I've worked hard
on. Any recommendations?
Also visit my blog post; www.drbrucesteinberg.com
Also see my webpage > large egyptian statues
Post a Comment