Forums server restting TCP connections and performance numbers

I have a packetsniffer running on my network because I was testing some
issues with the webservice interface when I noticed something strange.
The server accepted a request and started processing it, then after 72
seconds it suddenly closed the connection. My client obviously retried,
and the server immediately closed the connection again. I have attached
the TCP dump summary as "Server connection resets.txt" to this message.
Later on I captured the TCP dump of a server timeout. Or maybe not
really a timeout, but after 630 seconds waiting for a list of all forums
I decided it was enough. The TCP dump summary is attached as "Server
connection timeout.txt". If necessary I have the full dump, but I would
have to sanitize it.
This kill after 630 seconds is the worst case I have seen so far. On
average a call to the webservice API to download the list of all
communities takes approximately 110 seconds until the first response
bytes arrive. A full login cycle (request to forum, request to login
service, request to forum, request to API) consistently takes 17 seconds.
Jochem
Jochem van Dieten
http://jochem.vandieten.net/

I have a packetsniffer running on my network because I was testing some
issues with the webservice interface when I noticed something strange.
The server accepted a request and started processing it, then after 72
seconds it suddenly closed the connection. My client obviously retried,
and the server immediately closed the connection again. I have attached
the TCP dump summary as "Server connection resets.txt" to this message.
Later on I captured the TCP dump of a server timeout. Or maybe not
really a timeout, but after 630 seconds waiting for a list of all forums
I decided it was enough. The TCP dump summary is attached as "Server
connection timeout.txt". If necessary I have the full dump, but I would
have to sanitize it.
This kill after 630 seconds is the worst case I have seen so far. On
average a call to the webservice API to download the list of all
communities takes approximately 110 seconds until the first response
bytes arrive. A full login cycle (request to forum, request to login
service, request to forum, request to API) consistently takes 17 seconds.
Jochem
Jochem van Dieten
http://jochem.vandieten.net/

Similar Messages

  • HT201413 one day i loggged on and all it said was acssecing itunes store but never got there. then a message came up saying "could not connect to itunes server. check your connection and try again later". what should i do?

    one day i loggged on and all it said was acssecing itunes store but never got there. then a message came up saying "could not connect to itunes server. check your connection and try again later". what should i do?

    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • Im using an iphone 4s with the latest firmware which is 6.1.3 but my wifi button keeps going grey how can i fix it? i rested network connections and it worked for a while and went grey again,what can i do?

    im using an iphone 4s with the latest firmware which is 6.1.3 but my wifi button keeps going grey how can i fix it? i rested network connections and it worked for a while and went grey again,what can i do?

    Have you worked through the Troubleshooting iOS and WiFi knowledge base article?  If not, see if there is info in there that might help.
    Is the WiFi greyed out on all WiFi networks or just the one?  If it does this on all then there may be a hardwaer problem that needs attention from the techs at an Apple store genius bar.
    Before that, however, try a reboot by holding both the power and home buttons until the apple logo appears and it restarts, ignoring the red slider if it appears.  That clears a lot of iOS hang ups that occur.

  • Server design (multithreading, serialization, and performance)

    (I'm not asking for anyone to design my software for me, I'm just looking for a response along the lines of "That's called XYZ server design, look for books on this topic" sort of thing.)
    Summary:
    I have a Server application (S) that accepts connections from many Clients (C). The clients request pieces of a large internal data structure, *"Data"* (D). The clients are totally passive with respect to Data, they only read (from the Server) and do not initiate any modification.
    D is really a structure of structures: it's hashtables of hashtables, with objects that hold other hashtables and vectors, etc. etc., down a few levels. The clients don't read the entire structure, just parts of it.
    The Server is multi-threaded, with threads handling client communications, and a very important thread that modifies Data by processing messages from an external source. I call this part of the software the Message Processor (P). These messages are what drives manipulation of the data structure.
    [**CLICK HERE FOR A DIAGRAM**|http://imgur.com/sb5ZU]
    There are a couple of design questions I'm wondering about:
    The data structure D is a shared resource between the Client threads and the Message Processor thread within the Server, with the Client threads only reading from the data structure (and writing over TCP/IP), and the Message Processor both reading and modifying it.
    Right now I am using locks to lock the structure when a client requests data, so that the processor cannot modify the data while it is being serialized.
    I also lock the data structure when a message is received and the structure has to be modified by P, to prevent the structure from being serialized while it is being modified.
    My question is, is this the only design pattern I can use in this situation? It looks like the only way to improve performance is to
    a) make sure I only lock when necessary (to prevent data corruption or inconsistency)
    b) lock the data for as short a time as possible
    c) make sure the parts of the data structure being sent to clients are serialized as fast as possible (write my own writeObject/readObject methods)
    Any insight is appreciated, the shorter and more candid, the better. Don't be afraid to say I'm in over my head and should read a few books by author so-and-so, that's a good starting point :)

    jta23 wrote:
    (I'm not asking for anyone to design my software for me, I'm just looking for a response along the lines of "That's called XYZ server design, look for books on this topic" sort of thing.)
    Summary:
    I have a Server application (S) that accepts connections from many Clients (C). The clients request pieces of a large internal data structure, *"Data"* (D). The clients are totally passive with respect to Data, they only read (from the Server) and do not initiate any modification.
    Are you using Servlets? That should facilitate the development of your server immensely (e.g., maintains sessions, handles multi-threading, implements HTTP out of the box, dozens of additional frameworks available, etc.)
    D is really a structure of structures: it's hashtables of hashtables, with objects that hold other hashtables and vectors, etc. etc., down a few levels. The clients don't read the entire structure, just parts of it.
    You can get away with using Map of Map or Map of List or whatever level of nesting you want. Generally, however, it is better to implement a canonical and rich domain model. [http://www.eaipatterns.com/CanonicalDataModel.html]. [http://www.substanceofcode.com/2007/01/17/from-anemic-to-rich-domain-model/].
    The Server is multi-threaded, with threads handling client communications, and a very important thread that modifies Data by processing messages from an external source. I call this part of the software the Message Processor (P). These messages are what drives manipulation of the data structure.
    [**CLICK HERE FOR A DIAGRAM**|http://imgur.com/sb5ZU]
    There are a couple of design questions I'm wondering about:
    The data structure D is a shared resource between the Client threads and the Message Processor thread within the Server, with the Client threads only reading from the data structure (and writing over TCP/IP), and the Message Processor both reading and modifying it.
    Right now I am using locks to lock the structure when a client requests data, so that the processor cannot modify the data while it is being serialized.
    I also lock the data structure when a message is received and the structure has to be modified by P, to prevent the structure from being serialized while it is being modified.
    My question is, is this the only design pattern I can use in this situation? It looks like the only way to improve performance is to
    a) make sure I only lock when necessary (to prevent data corruption or inconsistency)This can easily be handled by a Servlet. I think the best way to do this would be to create a Singleton. [www.javacoffeebreak.com/articles/designpatterns/index.html]. Be careful, however. Singletons are like global variables. They can easily be abused. If you did not want a singleton, create a lock table in your database. The RDBMS will handle synchronization for you, and it is an elegant solution. You can perform a similar feat using a filesystem lock that you create. Up to you. Whether in the JVM, in the database or in the filesystem.
    b) lock the data for as short a time as possibleWrite an efficient method to insert or update or delete the data. If you are dealing with a large amount of data, consider using a native tool like Oracle's SqlLoader or using vendor-specific JDBC syntax. If you need to support multiple types of databases, use bulk JDBC operations.
    c) make sure the parts of the data structure being sent to clients are serialized as fast as possible (write my own writeObject/readObject methods)
    Take a look at JBoss serialization. It is much more compact that Java's. Or do some experimenting. JSON is much more compact than XML normally, and it can be read by a Javascript client to facilitate any Ajax you might want to use for some flash and sizzle.
    Any insight is appreciated, the shorter and more candid, the better. Don't be afraid to say I'm in over my head and should read a few books by author so-and-so, that's a good starting point :)No, take it in bite sized pieces. Start with the server. Then work on the client. Play around with your locking strategy. Optimize your update of the data. Don't do everything at once.
    - Saish

  • ESS - JCO Connection and Performance

    Hi Forum,
    In ESS Package Applications we are not using Applications related to Travel Management and Finance but JCO connections are created for the respective application namely
    1. SAP_R3_Travel & SAP_R3_Travel_MetaData
    2. SAP_R3_Financials & SAP_R3_Financials_MetaData
    I need to know performance impact of these JCO creations which we are not using anyway.
    Many Thanks and Regards
    Sudhir

    Thank you Bala,
    Will there be any performance impact - If I disable these unused JCO connection. Basically I need to know creating a JCO connection and keeping it idle - how much memory/pool etc it is going to consume. If it is going to impact then the plan is to identify all unused JCO connection in the complete system and disable it.
    Regards
    Sudhir

  • Java Application Server 9 - TCP connections

    I have installed Sun Java Application Server 9 and I see that the java process that is started has a lot (more than 30) of TCP connections with a local and a remote address that are both the hostname of the machine that run JAS.
    Can someone tell me what are these connections and if there is a way to decrease the amount of these connections?
    Thank you

    I have installed Sun Java Application Server 9 and I see that the java process that is started has a lot (more than 30) of TCP connections with a local and a remote address that are both the hostname of the machine that run JAS.
    Can someone tell me what are these connections and if there is a way to decrease the amount of these connections?
    Thank you

  • Uploading a text file to a server using gprs connection and http method

    Hi,
    I want to upload a text file from my windows mobile device( WM 6.1 version) to a server using the gprs connection and the http method. The application runs on IBM weme j9 VM.
    Anybody having done anything similar to this,please post a code snippet or provide helpful resources..
    Thanks in advance.
    Edited by: 803691 on Oct 20, 2010 3:50 AM

    Please give a response..
    I want to know whether there is a feasible solution for this in java..
    PLease provide code snippets for establishing gprs connection in java..

  • Tomcat connections and performances

    Hy everyone, I have Tomcat 4 running on a Linux server my question is, how many connections can tomcat support simultaniously before it crashes is there a maximum number of conn. to set in its web.xml or server.xml file ?
    I'm developing a 3- tiers application :
    -DB Oracle
    -servlets and javasbeans (for the business logic layer)
    -Jsp for the presentation layer
    Please reply
    Thank you in advance
    Fabry

    Did you ever find out how many connections tomcat 4 could take before it crashes?
    Is it dependant on the system resources available on your computer?

  • TCP connections and running in the background

    First of all I am new to j2me, but with very good java background
    I want to create a db server running in the background of a symbian phone.
    Does anyone knows if it is possible to open tcp sockets in j2me?
    Is it possible at all to run a java app in the background on a phone?
    I am using ngage if that is relevant.

    The following examples show how a SocketConnection would be used to access a sample loopback program. (from api documentation of WTK 2.2)
       SocketConnection sc = (SocketConnection)
                             Connector.open("socket://host.com:79");
       sc.setSocketOption(SocketConnection.LINGER, 5);
       InputStream is  = sc.openInputStream();
       OutputStream os = sc.openOutputStream();
       os.write("\r\n".getBytes());
       int ch = 0;
       while(ch != -1) {
           ch = is.read();
       is.close();
       os.close();
       sc.close();
    Since MIDP 2.0

  • I have tried to get my radio feature to work and it does not.  I followed some advice from this forum on a related question and performed the "settings reset," but this has not solved the problem.  I have icon, headphones, still no reception

    Has anyone else had this problem that just got one?  This is a christmas gift and I was attempting to explore the radio feature and discovered the issue.  Do we have this feature or not??  Thanks for any insight anyone can give.  Thanks and Happy New Year!! 

    You are not pushing the headphones all the way in. Make sure the white plastic is flush with the iPod.

  • Opening and closing Multiple TCP connection​s issues

    Hi all I am having an issue with the TCP VI’s and wondering if anyone has experienced this issue.
    My application is required to scan 50-100 IP addresses (statically assigned) and discover if an Ethernet device is connect at that IP address. Currently I am able to achieve this by opening a TCP connection and testing the error cluster to determine if a timeout has occurred (no timeout error  means Ethernet device available at the IP address). I then ensure that the TCP connections are closed.
    The issue I am have is that I require a 1 second delay between the  TCP open and the TCP close which significantly slows down the process. Without the 1 second delay the vi successfully connects to the device once then fails to make any TCP connect regardless of the time delay until the PC is reset.  
    If anyone has any advice I would be very grateful
    David Barr
    P.S. I have attached a simplified section of code showing this issue
    Attachments:
    TCP Open close issue.vi ‏15 KB

    smercurio_fc wrote:
    If I understand you correctly you want the time delay to be 1 second if there's a successful connection....
    While I don't have a specific answer for this problem. I want to clarify for him. I believe the issue is, what if all connections ARE there? That means you keep returning a wait of 1 second 50-100 times so It takes 50-100 seconds just to initialize. I think the user is looking for a way to check for valid connections, but do so in such a way that eliminates the need for a wait which is greatly slowing things down.
    CLA, LabVIEW Versions 2010-2013

  • I am having trouble with the updates to firefox. Each time I start it I get a page that says proxy server refusing connections and have to reinstall the old version just to use the internet. That also removes the personas from my browser.

    I currently have version 3.0.10 and have gotten two prompts to upgrade my version of firefox and each time I do install the new version and then try to start up Firefox, I get a page instead that says proxy server is refusing connections and the only way to browse is to re-install the old version. I also have to re-install the old version at least 3 times before I can use Personas.

    In Firefox 3.6.4 and later the default connection settings have been changed to "Use the system proxy settings".<br />
    See "Firefox connection settings" in [[Server not found]]
    You can find the connection settings in "Tools > Options > Advanced : Network : Connection"<br />
    If you do not need to use a proxy to connect to internet then select No Proxy

  • Essbase 64bit VM Server and performance with calcs

    Hello,
    I have an issue with my Essbase server running on Win 2003 Server 64 bit VM and performance with calcs. I like to apply the changes as in Essbase DBAG guide on page 827 for 64 bit related to agentthreads and serverthreads. Has anyone experienced this before ? Did changing the values in essbase.cfg file worked.
    Thanks,
    Azmat Bhatti

    Hi John,
    I have spoken to our VM Admin and he has told me that he has given our servers high performance on the SAN storage. The issue is that we see quite high page faults under the task manager when the calcs are running. We have 9 Planning/Essbase apps running. I am also playing with the cache setting in essbase.cfg file.
    This is what i have right now:
    CALCLOCKBLOCKHIGH 1500
    CALCLOCKBLOCKDEFAULT 1000
    CALCLOCKBLOCKLOW 100
    CALCCACHEHIGH 1000000
    CALCCACHEDEFAULT 300000
    CALCCACHELOW 200000
    Any suggestions ?
    Thanks,
    Azmat Bhatti

  • Everytime I receive an email with an address for the main content, all I get is the following statement "The proxy server is refusing connections" This happens evrytime and is very fraustrating.

    I am working on an HP Compaq laptop using a wi-fi connection to o2 broadband.
    Here is an example that I opened in my Outlook account this evening,
    Frylands Wood Scout Outdoor Centre is a 62.5 acre campsite located in the green belt on the outskirts of London. In the main, the camping is arranged in the wooded clearings. Facilities ranging from a single patrol to a District or even County Camp. 44 individual sites / 5 larger grassed areas; Halls Folley, Activity Field, Mole ... Read Full Article...
    Posted: 07 Mar 2011 08:45 am
    When I click onto the "Read Full Article..." tab I go to the Mozilla Firefox page which says there is a problem loading page - Mozilla Firefox, and then get the "The proxy server is refusing connections" and the o2 Broadband assistant then kicks in and starts trying to find the connections even though o2 broadband is connected.
    I have tried re-installing Firefox but this does not improve the situation which is frustrating as I have to send everything to my work account so that I can read any further information.

    You can find the connection settings in Tools > Options > Advanced : Network : Connection<br />
    If you do not need to use a proxy to connect to internet then select "No Proxy"
    See "Firefox connection settings":
    * [[Firefox cannot load websites but other programs can]]

  • Broken Ftp Connection and big files problem

    I have a problem with big-files downloading.
    Does anybody know how to resume downloading using FTP-connection?
    Or how can I get bytes from FTP connected file using something like random access to avoid the restart of downloading the file?
    "InputStream" does not support "seek"-like methods.

    From RFC 959
    RESTART (REST)
    The argument field represents the server marker at which
    file transfer is to be restarted. This command does not
    cause file transfer but skips over the file to the specified
    data checkpoint. This command shall be immediately followed
    by the appropriate FTP service command which shall cause
    file transfer to resume.
    You should also be aware of RFC 959 Section 3.4.2 on BLOCK MODE transfers which is what allows FTP to REST a connection and "skip" n-bytes of a file.

Maybe you are looking for

  • Help! How to install/update my Creative SoundBlaster Audigy 2 Model SB0

    Hi there, Sorry if this question is nai've, as I am new to this PC stuff I got an old Dell Dimension XPS (2003; 3GHz) (no driver CD) I hear no sound after connecting to a pair of cheap Antec Lansing speaker with cable My XP sees the driver as Creativ

  • Solaris 10 box -  install server PROBLEMS

    Hi, i have an E450 setup with solaris 10, i follwed the docs to create an install server for solaris 9. problem is : when booting client it gets the RARP reply and then sits and does nothing ?? The 2 machines are on their own separate network. Server

  • Google voice and video chat plugin seems to not work with Firefox 4

    Once login, I click on parameters item then Chat. In the audio and video chat section my webcam seems not to be detected. This works well with Firefox 3.6. Any help is welcome :-)

  • OSPF load balancing

    Please see attachment for diagram and questions. Thanks, Khoa

  • 8330 no sync with macbook

    8330 will not sync with macbook.  error message reads "error "skipping", also macbook would not open blackberry cd for installation.  i uninstalled and installed several times but cd still has not opened.  pocketmac claims skipping error has been cor