<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:37 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-579] when i query data,i have got a expetion:SocketException handling request, closing client connection: 9001 socket exception [2] server in logfile</title>
                <link>https://jira.mongodb.org/browse/JAVA-579</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;==============================background==================================&lt;br/&gt;
I start mongodb use like this(single server): -dbpath=/usr/local/mongodb-2.0.5/data/db1 -poart=2715 -maxConns=1000 -logpath=/usr/local/mongodb-2.0.5/log/logsingle.log&lt;/p&gt;

&lt;p&gt;the java code to operator mongodb to query data like this:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;private static Mongo mongo=null;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;static{&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    MongoOptions options = new MongoOptions();&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    options.autoConnectRetry = true;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    options.connectionsPerHost=1000;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    options.threadsAllowedToBlockForConnectionMultiplier=10;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    options.connectTimeout = 6000;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    options.maxAutoConnectRetryTime = 12000;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    options.maxWaitTime = 12000; &lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    options.socketKeepAlive = true;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    options.socketTimeout = 2000;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;    mongo = new Mongo(new ServerAddress(&quot;localhost&quot;, 2715),options);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;public void queryData(Object key){&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;   DB db = mongo.getDB(DATABASE_NAME);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;   DBCollection dbcollection = db.getCollection(collection);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;   BasicDBObject doc = new BasicDBObject();&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;   doc.put(&quot;key&quot;, key);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;   DBCursor cursor = dbcollection.find(doc);&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;		

&lt;p&gt;================================ERROR=======================================&lt;br/&gt;
i am stress test the mongodb use http_client tool. use 10 thread to test the query. after some time,the server is died.and cpu is 100%.and then i am got the exception from logfile like this:&lt;br/&gt;
Thu May 31 14:18:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn154&amp;#93;&lt;/span&gt; query mydb.ben\ query: &lt;/p&gt;
{ key: &quot;1&quot; }
&lt;p&gt; nscanned:53832616 reslen:20 11032064ms&lt;br/&gt;
Thu May 31 14:18:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn154&amp;#93;&lt;/span&gt; SocketException handling request, closing client connection: 9001 socket exception &lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; server &lt;span class=&quot;error&quot;&gt;&amp;#91;127.0.0.1:53887&amp;#93;&lt;/span&gt; &lt;br/&gt;
Thu May 31 14:18:11 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn173&amp;#93;&lt;/span&gt; query mydb.ben\ query: &lt;/p&gt;
{ key: &quot;6&quot; }
&lt;p&gt; nscanned:53832616 reslen:20 11014949ms&lt;br/&gt;
Thu May 31 14:18:11 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn173&amp;#93;&lt;/span&gt; SocketException handling request, closing client connection: 9001 socket exception &lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; server &lt;span class=&quot;error&quot;&gt;&amp;#91;127.0.0.1:53906&amp;#93;&lt;/span&gt; &lt;br/&gt;
Thu May 31 14:18:12 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn160&amp;#93;&lt;/span&gt; query mydb.ben\ query: &lt;/p&gt;
{ key: &quot;7&quot; }
&lt;p&gt; nscanned:53832616 reslen:20 11028041ms&lt;br/&gt;
Thu May 31 14:18:12 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn160&amp;#93;&lt;/span&gt; SocketException handling request, closing client connection: 9001 socket exception &lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; server &lt;span class=&quot;error&quot;&gt;&amp;#91;127.0.0.1:53893&amp;#93;&lt;/span&gt; &lt;br/&gt;
Thu May 31 14:18:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn161&amp;#93;&lt;/span&gt; query mydb.ben\ query: &lt;/p&gt;
{ key: &quot;7&quot; }
&lt;p&gt; nscanned:53832616 reslen:20 11029619ms&lt;br/&gt;
Thu May 31 14:18:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn161&amp;#93;&lt;/span&gt; SocketException handling request, closing client connection: 9001 socket exception &lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; server &lt;span class=&quot;error&quot;&gt;&amp;#91;127.0.0.1:53894&amp;#93;&lt;/span&gt; &lt;br/&gt;
Thu May 31 14:18:17 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn149&amp;#93;&lt;/span&gt; query mydb.ben\ query: &lt;/p&gt;
{ key: &quot;6&quot; }
&lt;p&gt; nscanned:53832616 reslen:20 11045234ms&lt;br/&gt;
Thu May 31 14:18:18 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn149&amp;#93;&lt;/span&gt; SocketException handling request, closing client connection: 9001 socket exception &lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; server &lt;span class=&quot;error&quot;&gt;&amp;#91;127.0.0.1:53882&amp;#93;&lt;/span&gt; &lt;br/&gt;
Thu May 31 14:18:24 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn151&amp;#93;&lt;/span&gt; query mydb.ben\ query: &lt;/p&gt;
{ key: &quot;6&quot; }
&lt;p&gt; nscanned:53832616 reslen:20 11049350ms&lt;br/&gt;
Thu May 31 14:18:24 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn151&amp;#93;&lt;/span&gt; SocketException handling request, closing client connection: 9001 socket exception &lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; server &lt;span class=&quot;error&quot;&gt;&amp;#91;127.0.0.1:53884&amp;#93;&lt;/span&gt; &lt;br/&gt;
Thu May 31 14:18:25 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn157&amp;#93;&lt;/span&gt; query mydb.ben\ query: &lt;/p&gt;
{ key: &quot;6&quot; }
&lt;p&gt; nscanned:53832616 reslen:20 11044775ms&lt;br/&gt;
Thu May 31 14:18:25 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn157&amp;#93;&lt;/span&gt; SocketException handling request, closing client connection: 9001 socket exception &lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; server &lt;span class=&quot;error&quot;&gt;&amp;#91;127.0.0.1:53890&amp;#93;&lt;/span&gt; &lt;br/&gt;
Thu May 31 14:18:32 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn171&amp;#93;&lt;/span&gt; query mydb.ben\ query: &lt;/p&gt;
{ key: &quot;5&quot; }
&lt;p&gt; nscanned:53832616 reslen:20 11037628ms&lt;br/&gt;
Thu May 31 14:18:32 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn171&amp;#93;&lt;/span&gt; SocketException handling request, closing client connection: 9001 socket exception &lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; server &lt;span class=&quot;error&quot;&gt;&amp;#91;127.0.0.1:53904&amp;#93;&lt;/span&gt; &lt;br/&gt;
Thu May 31 14:18:37 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn155&amp;#93;&lt;/span&gt; query mydb.ben\ query: &lt;/p&gt;
{ key: &quot;6&quot; }
&lt;p&gt; nscanned:53832616 reslen:20 11059201ms&lt;br/&gt;
Thu May 31 14:18:37 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn155&amp;#93;&lt;/span&gt; SocketException handling request, closing client connection: 9001 socket exception &lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; server &lt;span class=&quot;error&quot;&gt;&amp;#91;127.0.0.1:53888&amp;#93;&lt;/span&gt; &lt;br/&gt;
Thu May 31 14:18:40 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn148&amp;#93;&lt;/span&gt; query mydb.ben\ query: &lt;/p&gt;
{ key: &quot;1&quot; }
&lt;p&gt; nscanned:53832616 reslen:20 11067425ms&lt;br/&gt;
Thu May 31 14:18:40 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn148&amp;#93;&lt;/span&gt; SocketException handling request, closing client connection: 9001 socket exception &lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; server &lt;span class=&quot;error&quot;&gt;&amp;#91;127.0.0.1:53881&amp;#93;&lt;/span&gt; &lt;/p&gt;

&lt;p&gt;i wonder is options.socketKeepAlive = true; trigger the error.because when use this config,the error is start to appear.but i&apos;m not sure.&lt;/p&gt;</description>
                <environment>linux,64bit.</environment>
        <key id="40052">JAVA-579</key>
            <summary>when i query data,i have got a expetion:SocketException handling request, closing client connection: 9001 socket exception [2] server in logfile</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="shaobenbin">ben.s</reporter>
                        <labels>
                            <label>driver</label>
                            <label>query</label>
                    </labels>
                <created>Thu, 31 May 2012 07:58:19 +0000</created>
                <updated>Wed, 11 Sep 2019 19:12:59 +0000</updated>
                            <resolved>Mon, 4 Jun 2012 02:40:10 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="125580" author="shaobenbin" created="Mon, 4 Jun 2012 03:32:55 +0000"  >&lt;p&gt;i test DBCursor.close(),but it&apos;s not working.when i change the data in collection,one query return one data,only 8 bit,it&apos;s work very well. &lt;/p&gt;</comment>
                            <comment id="125573" author="jeff.yemin" created="Mon, 4 Jun 2012 02:40:00 +0000"  >&lt;p&gt;Make sure you call DBCursor.close()&lt;/p&gt;</comment>
                            <comment id="125568" author="shaobenbin" created="Mon, 4 Jun 2012 01:41:07 +0000"  >&lt;p&gt;thanks jeff.&lt;/p&gt;</comment>
                            <comment id="125567" author="shaobenbin" created="Mon, 4 Jun 2012 01:40:22 +0000"  >&lt;p&gt;it&apos;s just test code,there&apos;s no more code.mybe i found why the connection can&apos;t close.i test one query,it return mass data,and spend a lot of time into it.when mongodb want to close a connection cause there is too many connection on the server but the connection is busy,so it&apos;s failed.&lt;/p&gt;</comment>
                            <comment id="125561" author="jeff.yemin" created="Mon, 4 Jun 2012 00:30:46 +0000"  >&lt;p&gt;There must be more code, right?  None of the code you included initiates a connection to the server (DBCollection.find(..) doesn&apos;t actually send the query.  Nothing happens until you start iterating the cursor).  Looking at the server logs, the queries seems to be happening, so I&apos;m assuming there must be more code that&apos;s not being shown here.&lt;/p&gt;

&lt;p&gt;For future reference, this kind of question is better handled on the mongodb-users list.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="16942" name="logsingle.log" size="116433" author="shaobenbin" created="Thu, 31 May 2012 07:58:20 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrhb33:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14596</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>