Random socket connection failures in a VMWare VM - What might be causing it?
-
Here's a product I am looking into, that is a suite of services written in different languages. These services talk to each other over TCP socket connections. When the product is run on VMWare (Windows 2008 64 bit on an ESX host), sporadically we see socket connection failures. For example, a middle tier component won't be able to connect to Oracle database server (running locally), which fails with exception likejava.sql.SQLException: Io exception: The Network Adapter could not establish the connection Sometimes socket connections keep failing for several minutes. During this time some other bizarre behaviors are observed as well. One of them is simple WQL queries such asselect Status from Win32_ComputerSystem against the localhost failing with timeout errors. This seems to be due to VM resource constraints. Is there a way to assert this? Are there any special considerations while writing applications that may need to run on virtual environments? Also, is the number of sockets available more limited on a VM as compared to a real box? When I ran 'netstat -a' I got about 650 records. The breakup of various states is as follows:CLOSE_WAIT - 115 ESTALISHED - 248 FIN_WAIT_2 - 4 LAST_ACK - 130 LISTENING - 75 TIME_WAIT - 80
-
Answer:
Hi, Is it possible that you have a duplicate copy of the VM running somewhere by mistake, causing a MAC and IP address conflict? This is what I've stumbled across last week.
Timor Raiman at Quora Visit the source
Related Q & A:
- How to create socket connection with php?Best solution by Stack Overflow
- What is a sell out? What is a poser?Best solution by answers.yahoo.com
- What would be causing Hives?Best solution by Yahoo! Answers
- What might be causing my itchy inner ear?Best solution by healthgrades.com
- What could be causing these headaches?Best solution by ChaCha
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.