Too many TPC sockets opened for a single IP

Hi there,
I am running a ColdFusion server on a VPS to HostMySite.com and lately we are having strange problems with it. Every few minutes the server is not responding even if we restart the services - IIS and ColdFusion - and even the whole system.
HMS guys investigated the problem and they discovered that every connection to the server is openening multiple sockets for a single IP address (every single visitor).
Here is the full message from HMS technician, do you have any previous experience related to this?
I've been doing some advanced monitoring and troubleshooting of your VPS over the last 24 hours.
It is important to understand that the issue you're actually experiencing is related to TCP sockets.  Every connection to your server opens a socket and sometimes multiple sockets for an individual IP (visitor).
I opened the site http://www.viaromania.eu/ and instantly there were 7 connections established from our IP address.
C:\Documents and Settings\hmsadmin>netstat -ano | find "209.41.163.23"
TCP    76.12.37.79:80        209.41.163.23:9563     ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:21164    ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:26819    ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:36833    ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:37624    ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:39566    ESTABLISHED     4
TCP    76.12.37.79:3389      209.41.163.23:2577     ESTABLISHED     141388
After just browsing around a few pages on the site you can see how my connections are expanding.
C:\Documents and Settings\hmsadmin>netstat -ano | find "209.41.163.23"
TCP    76.12.37.79:80        209.41.163.23:2852     ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:2900     ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:11014    ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:11178    TIME_WAIT       0
TCP    76.12.37.79:80        209.41.163.23:14107    ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:14248    ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:17177    ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:17606    ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:17930    ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:23460    ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:24594    TIME_WAIT       0
TCP    76.12.37.79:80        209.41.163.23:25191    TIME_WAIT       0
TCP    76.12.37.79:80        209.41.163.23:25507    ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:32301    ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:33591    ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:37338    ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:38404    TIME_WAIT       0
TCP    76.12.37.79:80        209.41.163.23:45140    ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:49734    ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:53755    ESTABLISHED     4
TCP    76.12.37.79:80        209.41.163.23:55735    TIME_WAIT       0
TCP    76.12.37.79:3389      209.41.163.23:2577     ESTABLISHED     141388
Over the last 2 days there are 205 coldfusion-out logs and they are all full of the same error:
java.net.SocketException: Software caused connection abort: socket write error
Normally when we see this we'll make a few registry adjustments that allow for more socket connections and a shorter time to live on existing socket connections.  However in your case all of the registry adjustments have already been set.
MaxUserPort 65534
TcpNumConnections 200 connections
TcpTimedWaitDelay 30 seconds
I adjusted the TcpNumConnections to 500, see if this alleviates the issue.  Note that allowing 500 Tcp Connections is not necessarily a good idea as this amount of traffic could theoretically bring down your server.
I created a scheduled task that executes every 60 seconds in which it counts the connections on port 80 and writes it to the file netstat.txt on the desktop.
After logging for the last 24 hours it has gone over the 500 TCP connections 19 times all between 2:21pm and 2:40pm
2:21 PM 1367
2:22 PM 1423
2:24 PM 1684
2:25 PM 1466
2:26 PM 1867so
2:27 PM 1250
2:28 PM 854
2:29 PM 796
2:30 PM 799
2:31 PM 794
2:32 PM 816
2:33 PM 730
2:34 PM 662
2:35 PM 524
2:36 PM 531
2:37 PM 539
2:38 PM 551
2:39 PM 551
2:40 PM 522
So this is pretty good news.  This means your site over the last 24 hours only had 19 minutes of issues due to TCP connections.
Please, post your messages if you know why so many sockets are opened for every single IP and if this is a normal behaviour.
Greetings,
Adrian.

Hi Jochen and thank you for your answer.
We are using "cazare.cfm" for all the screens listing hotels and guest houses from a specific location. For instance:
http://www.viaromania.eu/cazare.cfm/Bucuresti/2-Cazare_hoteluri_pensiuni_Bucuresti.html - accommodation in Bucharest
http://www.viaromania.eu/cazare.cfm/Brasov/1-Cazare_hoteluri_pensiuni_Brasov.html - accommodation in Brasov
And so on...
I don't know if this is bad or not, but our code is using heavely <cfinclude> tag so we can keep files easy to debug and avoiding big .CFM files. I don't remember reading somewhere that <cfinclude> can cause any dealays in page loading or any server performance... maybe you can tell me if this is a bad thing or not.
After reading your post I tried to use chaced .CSS files so instead of "general.CSS" file included in the header I am using now http://www.viaromania.eu/includes/css/general.CFM and this file content is like this:
<cfset dtExpires = (Now() + 1) />
<cfset strExpires = GetHTTPTimeString( dtExpires ) />
<cfheader name="expires" value="#strExpires#" />
<cfcontent type="text/css" />
<cfoutput>
... css content here
</cfoutput>
I tried to do a similar change to "common.JS" file but so far with no luck. If you know any tutorial or something about chaching .JS files please send me the link. Anyhow, I think our problem is somehow related to the session variables. I noticed that for every single visitor we have, CF is creating 4 session variables: CFID, CFTOKEN + other 2 (I miss their name now). So for 1,000 visitors you have minimum 4,000 session variables created. Then I did this: enabled Use J2EE session variables option in CF Admin and get rid of CFID and CFTOKEN session. I am using now SESSIONID to identify my visitors. So, basically instead of having 4,000 sessions I have now only half of them.
After chaching the .CSS and enabled J2EE session variables the server started to work better. I don't know if there is just a happy coincidence or those steps were necessary but the server is ok now.
Please let me know what do you think and what else can I do in order to improve server performance. Any idea how to chache .JS files?
Adrian.

Similar Messages

  • F110 -Too many payment mediums created for this payment group

    Hello Gurus,
    Am getting below error after executing payment run F110.
    BFIBL02160               Too many payment mediums created for this payment group
    BFIBL02616               End of log for payment run 20140409 / DPA04 , PE1 / 500
    We are not able to see the Payment advice note in the spool request.
    Can you please share your ideas to resolve the issue
    Thanks in advacne

    HI,
    Please let us know for account like vendor , customer  you running the payment advice.
    check if the customer ,vendor document  is posted or not.
    which customer, vendor number you had maintained in the f110 .
    check that before you run it.
    else.. create new document  and start run the payment.
    for single document fi you try  more than once it will give the above error.
    and also the check the program and variant as well.
    let me know any corrections.
    thanks.

  • Error Log -  Too many payment mediums created for this payment group

    Hi Experts,
    When I am doing payment to customers through T-code F110, I am able to clear the open item. But when we are executing the Payment medium - DME Administration, generate the Payment Advice and when we see the print preview of the Payment Advice in spool request, System is showing the following errors,
    "BFIBL02160               Too many payment mediums created for this payment group"
    "BFIBL02616               End of log for payment run 20120123 / NAA02 , NSD / 200"
    "This is line 1/column 45 on page 1"
    Message no. SP01R116
    Kindly help how to rectify the same
    Thanks in advance
    Regards,
    Nimish Agarwal

    Hi Nimish Agarwal,
    With reference to the error faced i.e. BFIBL02160 "too many payment
    mediums created for this payment group", please review the information
    provided in the long text of this error in detail.
    Please ensure that the orders are not carried out several times.
    Alternatively you can apply the optional usable message 166 (same
    class: BFIBL02), so that you can prevent creating duplicates in future.
    Please customize this message as an error so as to prevent the system
    from creating duplicate files. You can customize this message in OBA5.
    The message BFIBL02 160 always occurs, if you create more than one
    file for the same payment run, in order to warn you not to send the
    same file twice to the bank.
    The SAPFPAYM program does not create 2 files at once. But if you
    run this program more than once for the same payment run, more than
    one file is created. From the second run on you receive the error
    message BFIBL02 160. You can easily test it, by creating a new
    payment proposal and creating a new file with this proposal and
    SAPFPAYM. The first time you run this program you will not receive
    the message.
    Hope this clarifies.
    Kind Regards,
    Fernando Evangelista

  • IPod won't sync "too many files currently open"

    Every time I try to connect my iPod there is an error that says "cannoy sync iPod too many files currently open." I'm not sure what this means because I only have iTunes open and it still will not sync. Please help! Thanks!

    I had the same problem. I just turned off my shared playlists and restarted my itunes. it worked after that

  • DMEE error (Error Log -  Too many payment mediums created for this payment group)

    Hi Experts,
    Please see the below error while generating the DMEE file.
    Error Log -  Too many payment mediums created for this payment group
    Error is - Too many payment mediums created for this payment group
    Please explain how to resolve this error.Send detail documentation how to rectify this error
    Regards
    Sreedhar

    Hi Nimish Agarwal,
    With reference to the error faced i.e. BFIBL02160 "too many payment
    mediums created for this payment group", please review the information
    provided in the long text of this error in detail.
    Please ensure that the orders are not carried out several times.
    Alternatively you can apply the optional usable message 166 (same
    class: BFIBL02), so that you can prevent creating duplicates in future.
    Please customize this message as an error so as to prevent the system
    from creating duplicate files. You can customize this message in OBA5.
    The message BFIBL02 160 always occurs, if you create more than one
    file for the same payment run, in order to warn you not to send the
    same file twice to the bank.
    The SAPFPAYM program does not create 2 files at once. But if you
    run this program more than once for the same payment run, more than
    one file is created. From the second run on you receive the error
    message BFIBL02 160. You can easily test it, by creating a new
    payment proposal and creating a new file with this proposal and
    SAPFPAYM. The first time you run this program you will not receive
    the message.
    Hope this clarifies.
    Kind Regards,
    Fernando Evangelista

  • Word cannot complete the operation because too many files are open

    Hello,
    I'm working on a 60 pg. document, and when I hit 'save', I get this annoying msg.:
    "word cannot complete the operation because too many files are open." I have no other files open, and I am unable to continue to work, because I cannot save - can anyone help? Thanks!

    Hello Kristina,
    Have you been able to save the file at all?
    More than anything, it seems to be a bug when you're trying to save to a server. There's more on the problem here. So what you can also try is simply saving the file to your desktop, or somewhere on your Mac's hard drive. That way you're saving the file locally instead of to a server. If that works, you've at least saved the file and can continue on. Otherwise, read on.
    If you can't do it from Word, then at least save your changes from another application. Open TextEdit. You should get a blank file on the desktop. Make sure it's set as a rich text file. You'll know just be looking at it. If you see a ruler and other buttons at the top of the TextEdit document window, it's rich text. If not, make it rich text by pressing CommandShiftT.
    Copy and paste your entire Word text into the TextEdit window. Save the TextEdit document to the desktop. Now that you've at least gotten your work saved, you can try some other things.
    If you're not trying to work on the file from, or save it to a remote server, then don't worry about the first workaround. It doesn't apply. Number two was poorly worded by John. He seems to assume everyone knows what RH is. I had to look it up. It means Remote Home folder. So open the Word preferences and click on FIle Locations. Highlight the first choice, Documents, and click on the Modify button. Choose any location you want on your Mac's hard drive. Click "Choose" and close the preferences. Can you now save the document to the folder you defined as the default save location?
    Spotlight is that little magnifying glass in the upper right corner of your screen by the time/date. There are a few methods to disable Spotlight. What John is saying that if the Mac is spending a lot of time indexing your drives at the same time you're trying to save your Word document, the intense processing time to index may be keeping Word from saving.
    If you've managed to at least save your file as a rich text TextEdit document, then shut all of your applications down and restart your Mac. Launch Word and open the TextEdit file. You may lose some formating if you've done tables or other things TextEdit can't save in Word's original form.

  • Been charged for jack reacher 15.99,but will not download due to too many http addresses open how do I get my money back

    Have purchased jack reacher for 15.99 unable to download due to too many http addresses. I hav only got the apple address open only would I be able to get a download and how do I go about getting a refund thankyou.

    You would really have to ask the app developer if there is a way to export the data.
    As for adding a printer, you would need to purchase an AirPrint compatible printer and connect it to your wireless network.
    By the way, your holiday letter/rant/Idon't even know what to call it... is completely inappropriate for these forums.

  • Too many apps to open a doc with

    Sorry -- I know someone else asked about this and it was answered here before. I thought I had saved the answer as a pdf, but I lost it....
    You click on a document and then open the Get Info window. Let's say it's a .tif and the default app is Preview. You want to open the file with Photoshop, so you open the Open With dropdown. (or you could have just ctrl-clicked on the file and moused over to Open With). Anyway, the Open With gives you a list of about a gazillion applications, some of which have been long ago deleted from your system. There is some way to get rid of some of these apps showing up in the list. As I remember it had something to do with messing with a launch-something-or-other file.
    Can someone tell me what this is. I tried searching the knowledgbase on Launch and on Open With, but just go too many hits for me to find anything relevant.

    Wet Baloney,
    Try these cache files first:
    Navigate to /library/caches/com.apple.LaunchServices-xxxxx.csstore. You may have more than one with different negative numbers. Delete all of these.
    Then navigate to ~(yourhome)/library/caches
    com.apple.LaunchServices.UserCache.csstore Delete this also.
    Then log out and back in or restart. Let us know.
    -mj
    [email protected]

  • Firefox crashes when too many images are opened

    Okay, so, a problem that appeared in 4.0 for me, and hasn't gone away ever since.
    The problem is basically summarized in the short description - whenever too many heavy images are in the browser's tabs simultaneously, it slows down to a halt; then sometimes as I scroll it fails to redraw the page, with black non-redrawn area increasing as I scroll and disappearing as I change tabs back and forth.
    After a dozen seconds of such sad behaviour, the browser crashes.
    Sometimes, however, things go better. And it just crashes.
    The problem can be easily replicated with Save Images extension, say, on any photo hosting, or by opening
    http://danvolodar.livejournal.com/friends/big_picture
    It should be noted that 3.6 never had that problem, and opened pages where I aggregated thousands of images, - slowly, of course, but it ''did'' work. 4 and 5 do ''not''.

    Go to the address '''about:crashes''' and tell us your latest crash IDs. We can then look at the data specific to your crash and have a better idea of what is causing the problem.
    Or you can go to '''Start''' and type in the Vista search box '''%APPDATA%''' then click on '''Roaming''' then go to '''Mozilla>Firefox>Crash Reports>Submitted''' then open the .txt files and copy the Crash report ID that starts with '''bp-xxxxx-xxxx'''

  • Tablespace with too many extents are evil for performance

    I think the tablespace with too many extents are not bad for performance after introduction of LMT tablespace?? May be true with DMT tablespace(earlier versions). This is just observation after reading the LMT vs DMT tablespaces.
    Experts - Please comment on your thoughts.

    Indeed, I work in an environment where there is over 50 databases to be administered and so we have lots of DBAs interacting with each other.
    I'm stunned by this myth of "reorganization". Most of the DBAs move tables + rebuild indexes regularly generating huge redo  on a monthly basis. Also provoking indexes to do all the splits again generating even more redo. They claim "it helps performance a lot" however not one is able to quantify and quite justify it other than "less extents less I/O, good". Even when I bring up the existence of shrink they say "do not like it, prefer the classic move". People really have a way of holding on to their good ol' practices of Oracle 8i.
    For full table scans (which should never be done on a OLTP scenario) this extent issue would be relevant IF data on the table is the victim of large deles and Oracle hasn't re-used that space yet. If your multiblock reads is a multiple of your extent size, than there won't be any overhead of I/O call, no matter the number of your extents. For OLTP this is not relevant because Oracle will access the table via ROWID.
    I rarely have ever seen an index benefit from a rebuild significantly. In my experience what people often understand as "index fragmentation" is often just an unoptimized execution plan due to cardinality issues where oracle ends up fetching a large percentage of the table via single reads on that index.

  • Too many AD security groups for ACS 4.1

    We have an issue that when a user is a member of too many Windows AD (2003) security groups (roughly 65) they won't get authenticated by our ACS 4.1.
    The 1st thing we investigated was the Windows Kerberos authentication issue. Which basically says that if a user is a member of more than 70 security groups then Kerberos authentication might fail. However we've used the tokensz.exe tool to calculate that the affected users Kerberos Token size isn't above the problem 12,000 bytes. Link to that issue http://technet.microsoft.com/en-us/library/cc757478%28WS.10%29.aspx
    On the ACS, when a user is a member of too many security groups, the error message is "External user not found". When the user is brought down to the "magic" number of security groups authentication works no problem.
    At the same time on the DC errors can be found in the CSWinAgent.log file.
    CSWinAgent 01/18/2010 12:25:23 A 0063 5720 NTLIB: Insufficient space for all of user [email protected] certificates
    CSWinAgent 01/18/2010 12:25:23 A 0063 5720 NTLIB: Group list buffer is too small for getting full groups list.
    So we are starting to think that the DC and / or CSWinAgent is causing us issues. Has anyone experienced similar issues?
    Thanks
    Stuart

    Hi Stuart,
    We are hitting a bug here.
    CSCse49827            Bug Details
    ACS Remote Agent fails users with too many goups
    Symptom:
    Windows External Database authentication fails on the ACS 4.0 SE if a user is a member of
    too many Windows groups.
    Conditions:
    This is specific to the ACS SE running 4.0.1(42) or earlier using Windows Domain Authentication
    to the ACS Remote Agent.
    Workaround:
    Reduce the number of group memberships the user is part of or reduce the lenght of
    the group names the user is a part of.
    Further Problem Description:
    If a user ia a part of enough windows groups that the number of characters total of all the groups
    exceed 1024 bytes the authentication of that user will fail.  All other users should still authenticate
    without any trouble
    Please upgrade ACS to 4.1.4 and that should fix it.
    First you need to upgrade it to 4.1.1 and then 4.1.4
    Regards,
    ~JG
    Do rate helpful posts

  • "Too many file handles open" Error

    I have archived my data from my current VSS database.
    I tried to restore the archived data on different database, but it showed error "Too many file handles".
    Please suggest me proper steps to avoid this error.

    hi, i am also experiencing the same problem with my whatsapp. and i have tried to reinstall my whatsapp many times...nothing seems to work

  • 'Error establishing socket' due to too many TCP sockets

    Hallo
    I have an app running on Win 2000, SP 3, JRE 1.2, connecting with a MSSQL 2000 DB using MS JDBC drivers and constantly writing updates to this DB. It starts off fine and continues for quite some time before encountering the following exception:
    java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]Error establishing socket.
    Checking the output from netstat while the application is running revealed a huge number of sockets which are aparently used by the application since closing the application causes all these connections to be closed. I assumed that this may be the cause of the exception.
    The application only connects with the database once and statements and resultsets are closed after use.
    The same application running at other sites with more-or-less the same environment does not cause as many open sockets.
    Can anybody tell why so manu sockets are created and not closed ? Any suggestions will be much appreciated.
    Regards
    Dawie

    As an update, I was using connection pooling, and removed it. Now I create a connection per request and explicitly close the connection when done. This accomplished two things, reduced the number of stale connections, and also "throttled" down the process somewhat (not by much as in testing I found the average response times slowed by only a couple milliseconds).
    I did do a netstat on the application server when I started receiving all the errors and found, like dawiemoller did, there was a VERY large number of stale connections to the SQL 2000 server. I wasn't able to telnet into the SQL server and port, as expected. Restarting the Java app on the application server cleared up all the stale connections.
    After I removed the connection pooling, I've yet to receive the "error establishing socket" error, however after checking netstat again, I did find that there are still a lot of stale connections, just not nearly as many.
    If this is a Microsoft bug, why would the stale connections go away after restarting the Java Application? Microsoft IIS is also running on the same server with database access to the SQL 2000 server and it isn't having any trouble. Could it be just a combination of this "bug" and using Microsoft's JDBC driver (SP1) to SQL 2000? Would switching to another vendors JDBC driver avoid this problem?
    Scott Reynolds

  • Re too many layers in word for mac

    Hi all,
    I use word and have done for 15 years. I am very fond of what is is capable of. usually.
    However when it comes to designing charts which have multiple images and text boxes and shapes and layers it is not great.
    I have tried grouping and messed around in publishing mode to rearrange layers but the whirly cog of doom starts spinning and its tedious and unreliable.
    Now i know the macbook has oodles of ram so its definitely just  a word issue.
    so either it isnt really designed for doing lots of layers or at least its isnt coping well.
    So do i bite the bullet and buy photoshop? or is there some similar package that will create 16 boxes and let me edit text and then layer pictures in jpeg form and allow me to resize and move em all about without feeling like im about to crash the program?
    I do weekly alot of work in word and am used to the fonts, insert menus etc . incidentally I tried Pages but it wasnt any better at handling lots of boxes and didnt seem to be pixel accurate when copying and pasting.
    what do you guys/girls use out there in design world. Open to suggestions. im downloading a trial of photoshop essentials but im not sure it will do lots of boxes and allow text etc.
    or do i painstakingly print to pdf and re insert. quite daunting as i intend making 50 or so of these charts for a project im organising and it will take forever.
    Learning curve must be easier with the right tools?
    Niall

    Steve,
    Please re-post your MS Word for Mac question in Microsoft's Office for Mac product forums. That is where the Word for Mac guru's hang out.

  • Too many items in "Open With..." menu

    Gentlemen,
    I have encountered the following problem. When i right-click on a file (of any kind) and choose the "Open With..." option, the list of available programs that is shown is just enormous, and filled with repeated program names, like this -
    Safari
    Safari
    Safari
    TextEdit
    TextEdit
    TextEdit
    ...and many, many more. It often doesn't even fit the screen, so sometimes I have to scroll this list to find the application I need. How can I shorten this list to make every application appear in it only once? I'd appreciate help of any kind; this is by way the only thing that does annoy me here in Mac OS.
    iMac G5 1.8GHz/1G   Mac OS X (10.4.4)  

    You should be able to fix that by rebuilding the LaunchServices database.
    I use OnyX (Maintenance tab, Reset section).
    http://www.macupdate.com/info.php/id/11582

Maybe you are looking for