Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

Re: Re: Mongo server does not read from socket fast enough, causing the client to hang.

The four sets of computer configuration sharding replica of the scheme set cluster?
(150 lines)
behavior of Java Driver requestStart/requestEnd with slaveOk
(24 lines)
Sep 14, 2011
Eliot Horowitz
Eliot Horowitz
Looks like the write lock is saturated.
What kind of updates are you doing?
The key is going to be optimizing those.

On Wed, Sep 14, 2011 at 12:19 PM, googlefox <feroze### @gmail.com>
wrote:
 Here is the mongostat for the primary...


 insert/s query/s update/s delete/s getmore/s command/s flushes/s
 mapped  vsize    res faults/s locked % idx miss %    q t|r|w
 conn       time
       1      13      236        0         0      
  1         0
 330384 331244  33214       48      109          0    
 7|0|7    57
 09:17:44
       1       1      565        0         1      
  1         0
 330384 331244  33215       41     97.3          0    
 3|0|3    57
 09:17:45
       0       1      288        0         0      
  1         0
 330384 331244  33211       45     91.9          0    
 2|0|2    57
 09:17:46
       0       0      369        0         0      
  1         0
 330384 331244  33213       49      107          0    
 2|0|2    57
 09:17:47
      53      15      279        0         0      
  1         0
 330384 331244  33215       53       99        4.1    
 2|0|2    57
 09:17:48
      63      46      408        0         0      
  1         0
 330384 331244  33216       56     97.5        3.1    
 4|0|4    57
 09:17:49
       3      59      380        0         0      
  1         0
 330384 331244  33217       57     95.6        3.4    
 5|0|5    57
 09:17:50
      28       2      455        0         0      
  1         0
 330384 331244  33219       62      102          0    
 3|0|3    57
 09:17:51
      31      40      398        0         0      
  1         0
 330384 331244  33220       57     94.8          0    
 4|0|4    57
 09:17:52
      79      24      860        0         0      
  1         0
 330384 331244  33222       63      101          0    
 3|0|3    57
 09:17:53
     102      83      292        0         0      
  1         0
 330384 331244  33223       59      100          0    
 9|0|9    57
 09:17:54
       3      71      556        0         0      
  1         0
 330384 331244  33225       55     95.7          0    
 7|2|5    57
 09:17:55
       1      25      806        0         0      
  1         0
 330384 331244  33227       62      100          0    
 4|0|4    57
 09:17:57
      76       2     1032        0         0      
  1         0
 330384 331244  33230       82     96.2          0    
 3|0|3    57
 09:17:58
      99      82      475        0         0      
  1         0
 330384 331244  33233       88     98.2          0    
 9|1|8    57
 09:17:59
      43      85      690        0         0      
  1         0
 330384 331244  33201       90     98.6          0    
 6|2|4    57
 09:18:00
      12      50     1058        0         0      
  1         0
 330384 331244  33199       90     97.3          0    
 2|0|2    57
 09:18:01
     123      19      914        0         1      
  1         0
 330384 331244  33197       85     95.9          0    
 5|1|4    57
 09:18:02
     133     105      487        0         0        
1         0
 330384 331244  33199       92     98.4          0    
 8|1|7    57
 09:18:03

 --
 
Reply
Tags: ferozegmail
Mongo server does not read from socket fast enough, causing the client to hang.
September 13, 2011 06:09:59 PM
We are hitting a wierd problem in our deployment of mongo. First, some background: - Two mongo servers, one primary, other replicating from the primary. - Primary is used for Writes. - Secondary is used for queries only. We are using a mongo java…
Updating another collection when inside finalize (looks like this is causing the server to hang)
December 13, 2010 03:08:45 PM
Can we update another collection when inside finalize of a map-reduce, we are using 1.6.4 and we have bunch of map-reduce functions that update another collection in the finalize and we often are seeing the mongo hang when we call those map-reduce…
Created] (DERBY-5271) Client may hang if the server crashes due to a java.lang.Error
June 10, 2011 04:03:36 AM
Client may hang if the server crashes due to a java.lang.Error
geronimo transaction causing blog sample itests to hang
November 5, 2010 10:02:16 AM
Hi, On my system every time I run a top down maven build since we moved up to geronimo-transaction 2.2 the blog sample itests hang. Has anyone seen this? This doesn't happen if I move down to 2.1.3 again. Has anyone seen this? Would anyone object…
Created: (DERBY-4701) Set socket timeout for the socket used to communicate with the server in Netwo
June 16, 2010 06:48:23 AM
Set socket timeout for the socket used to communicate with the server in NetworkServerControl(Impl)
Created] (HDFS-2151) restartDFS causing a hang when running on Windows. Makes other test cases fail.
July 14, 2011 01:58:26 PM
restartDFS causing a hang when running on Windows. Makes other test cases fail.
Closed: (DERBY-3594) socket reset failure causing 17 networkserver tests to fail on ibm iseries
January 13, 2011 03:45:30 PM
[ https://issues.apache.org/jira/browse/DERBY-3594?page=com.atlassian.ji ra.plugin.system.issuetabpanels:all-tabpanel ] Myrna van Lunteren closed DERBY-3594.
Re: Java driver query slow, mongo console fast
August 5, 2010 10:35:05 AM
Running it multiple times doesn't seem to make much difference. I'm doing equivalent queries vs. MySQL and MongoDB. The query returns 250 records. 250 results isn't the norm, but for service level reasons, it's a good test as an outer limit of the…
Re: Java driver query slow, mongo console fast
August 4, 2010 10:31:42 PM
When doing the explain - it just looking at the index. When actually doing the query - its loading all the data off disk and copying to network. If you do it again,is it fast or slow? Probably reading all the objects off disk and seeking around is…
Created: (THRIFT-1076) Erlang Thrift socket server has a bug that causes java thrift client of frame
March 1, 2011 12:30:23 AM
Erlang Thrift socket server has a bug that causes java thrift client of framed binary client to throw "out of sequence" exception
PHP Driver cannot connect to mongo unix socket
September 10, 2010 01:05:55 PM
I am having problems connecting to mongodb via unix sockets using the PHP driver. I can connect using localhost:27017 with no problems. I saw this thread (http://groups.google.com/group/mongodb-user/…
Exception causing close of session 0x12d99f469c20000 due to java.io.IOException: Read error
January 18, 2011 11:03:44 AM
Hi All, Getting the following error in consistently zookeeper after a restart of the cluster. I am using 3.2.2 version of zookeeper with 2 nodes and both instances are getting similar errors now. Appreciate any fix. My client systems are hbase …
Freshclam - ERROR: SubmitDetectionStats: Can't read from socket
March 11, 2011 07:08:17 PM
Twice this evening I've received errors, both when freshclam was trying to submit detection stats. The first one was: ERROR: SubmitDetectionStats: Remote server reported temporary failure: SUBMIT_TEMPORARY_FAILURE:Server not available, try again…
Closed] (AMQ-1359) ActiveMQ 4.1.1 client can write to but not read from ActiveMQ 5.0 server
July 9, 2011 03:59:08 PM
[ https://issues.apache.org/jira/browse/AMQ-1359?page=com.atlassian.jira .plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish closed AMQ-1359.
Running Mongo and Mongo Config Server on Same Machine
April 29, 2011 10:39:35 AM
I'm attempting to run two instances of the mongod process on the same machine as per the suggestion in the Simple Initial Sharding Architecture doc (http://goo.gl/Z85qS). However, I can only get one mongod process to run at a time. If I start it…
hang in zookeeper_close() in the mt C client
January 29, 2011 01:24:15 PM
Hi everyone, I use the multithreaded ZK C client library (3.3.2), and I'm seeing my application hang, and the only thread in it that's doing anything interesting is this one: Thread 8 (Thread 5644): #0 0x00007f5d7bb5bbe4 in __lll_lock_wait ()…
DO NOT REPLY New: Race condition in NioEndpoint$Poller causes socket to not be read until selectorT
September 9, 2011 01:52:00 PM
https://issues.apache.org/bugzilla/show_bug.cgi?id=51794 Bug #: 51794 Summary: Race condition in NioEndpoint$Poller causes socket to not be read until selectorTimeout Product: Tomcat 6 …
Client refresh in unit tests not always fast enough
October 13, 2010 11:51:45 AM
I am running unit tests with a local cluster. They are generally very reliable, but every once in a while one of them fails because a test (A) indexes something, (B) then calls refresh for the client, (C) and then tries to look up the recently…
How to configure a read-only database server and session? (Was: read-only UNLOGGED tables)
April 17, 2011 03:05:30 PM
I have a single-disk virtual Linux system and a read-only dataset which is exposed to internet and completely replaced from time to time. I compiled following steps in order to secure and speedup such PostgreSQL/PostGIS instance: 1. Re-configure…
nginx and php fast cgi different server?
May 1, 2011 10:00:31 PM
Hello All, I'm a newbie on nginx, currently i have configure nginx n php fast cgi with same server, i want to split nginx and php fast cgi with different, it's posibble? I have test change fastcgi_pass point di php fast cgi to other server, but…
Socket Hang Up when using https.request in node.js
May 3, 2011
When using https.request with node.js v04.7, I get the following error: Error: socket hang up at CleartextStream.<anonymous> (http.js:1272:45)…
Multithreaded client-server socket programming in C
May 4, 2011
Hi, I am implementing a Multi-threaded client-server socket programming in C on the same machine with the same IP-Address but with different ports…
How to set client 'header' and 'params' values for a HTTP GET request and read those in the service server?
February 20, 2011
I am using Ruby on Rails 3 and I would like to set header and params values for a HTTP GET request of a client server. Then, on the other side, I…
Need fast .NET ftp client
May 12, 2011
Hi, I need a fast .net ftp client that can upload several hundred files in a couple of minutes. All the .net ftp clients I've found this far were…
What Could Be Causing MySQL To Crash On A Read Query???
March 3, 2011
So I have a pretty large MySQL DB... 7 Gigs in Total size, 35 million URLs. I was querying it (using SELECT queries only) quite fast the other day.…
Optimal settings for fast local read speed? (my.ini)
May 9, 2011
I have a database that I use for back-testing technical analysis techniques of financial vehicles. This database must be queried, over and over, at…
Hg update causing temporary port read/write issues
April 28, 2011
I am having a strange issue with apache and ssh, that I can correlate to the hg update command. After executing $ hg update on a remote server from…
Alternative to Thread.Sleep() before socket read
January 27, 2011
I'm using this FtpClient library to connect to mainframe from WinForms application. I'm using thread.Sleep for the thread to wait for the response…
Client socket factory in RMI exportObject?
June 7, 2011
In UnicastRemoteObject.exportObject(...) you need to specify a client socket factory as well as a server socket factory (if you're using custom…
PHP Code Causes Server To Hang
February 22, 2011
I'm hitting my server really hard because of a bug somewhere in the following code: $qqq = mysql_query("SELECT * FROM coupons WHERE dateExp >…
Dalli Client - how to connect with unix socket?
June 9, 2011
Dalli Client is a little faster gem than standard memcached library. Client may be initialized by: dc = Dalli::Client.new('localhost:11211') But now…
Java secure client socket authentication
February 6, 2011
Hi, For secure server sockets in order to send the server certificate, all I do is initialize SSLContext with a KeyManagerFactory.getKeyManagers()…
Raw HTTP Parsing With an Asynchronous Socket Client
May 3, 2011
I found another question that asked for the same type of functionality, but the question is more than 2 years old so I was wondering if anybody has…
Resuse a Client TCP Socket for Multiple HTTP Connection
March 21, 2011
Greetings all. I am making a ANSI C multi-threaded www-crawler (HTTP 1.1 compatible) on Linux 2.6.29-3.ydl61.3 and fairly progressed well. I have…
Exception in Mongo java client 2.4
March 10, 2011
My pc is running with mongo 1.6.5 . One of my collections has 973525 records when I try to find distinct key on that collection its giving me…
Mysql Query hang on production database server but works fine locally
January 1, 2011
Hi guys, I'm running into an issue that I can't seem to solve on my own. I've got an amazon EC2 server (large instance) running mysql 5.1.37 and a…
MYSQL Server shows loads of "sleeping" threads, causing the server to act slowly.
June 9, 2011
my mysql server is showing about 20 threads with the same "user" name. What could be causing this?
How to read a file from HDFS in a non-Java client
February 18, 2011
So my MR Job generates a report file, and that file needs to be able to be downloaded by an end-user who needs to click a button on a normal web…
Can't read utf8 strings from MySQL DB by an odbc client
January 30, 2011
I have a DB with utf8 default charset, and a table that contains strings with non-ascii characters. I can read the data correctly by the mysql…
If a Tomcat server says "Client Aborted", and the client says "Premature EOF", who is right?
January 7, 2011
I have a Tomcat server streaming data to a Java client over http. It is copying bytes from a file to HTTPServletResponse's outputstream in a…