We create VMs with the latest build of our code on. One VM has a weird ASYNC_NETWORK_IO error when running a SQL SELECT statement. It isn't on any other VM.
I have tried googling for the error - clearly something failed to start or get set when this VM was created.
Just for peace of mind it would be really useful to know what might be the cause of this and if there is some setting I can adjust to fix it.
The symptom is that a SQL SELECT statement just seems to time out with this ASYNC_NETWORK_IO error, but the strange thing is that it must have somehow returned some results because it then blocks an INSERT statement that has used the results of the SELECT statement.
Everything necessary for the application is on the VM - the ASP.NET application and the SQL Server database so there is no actual network access outside of the VM.
There is no antivirus running on the VM either which is one possibly cause I came across.
The server is Windows Server 2016 and the SQL Server is 2016 also.
I've attached a picture of what is happening.
Just to repeat this doesn't occur on any other VMs with the same software on.
I have tried restarting IIS and restarting the VM.
The VM is Hyper-V.
Is your database set to 'auto close'? (default is 'False')
Is your VM host overprovisioned? (too much ram or cpu allocated to all of the VMs) - remote into the host (not the sql vm) and check
And the flip side of that - did you allocate enough ram and cpu to this sql vm? how does it compare to the other sql vm which does not have this IO error?