Socket exception : Has anyone encountered it? - CouchDB (document store)

0 views
Skip to first unread message

Madhu

unread,
Oct 15, 2012, 1:00:36 AM10/15/12
to BG-Social...@googlegroups.com
Hi,
I ran view Profile and View Friend requests workloads for no images and different number of threads. When I was halfway with ViewTopKResources, I have started getting Socket exceptions.  Any suggestion or solutions would be great help.

Exception:

java.net.SocketException: No buffer space available (maximum connections reached?): connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:519)
        at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
        at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:129)
        at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
        at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
        at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:349)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
        at couchdbstore.CouchDBClient.viewProfile(Unknown Source)
        at com.yahoo.ycsb.DBWrapper.viewProfile(Unknown Source)
        at edu.usc.bg.workloads.CoreWorkload.doActionGetProfile(Unknown Source)
        at edu.usc.bg.workloads.CoreWorkload.doTransaction(Unknown Source)
        at com.yahoo.ycsb.ClientThread.run(Unknown Source)


Thanks,
Madhuvanthi

Shahram Ghandeharizadeh

unread,
Oct 15, 2012, 7:35:53 AM10/15/12
to bg-social...@googlegroups.com
Hi,
It appears that you are exhausting the available sockets.  Are you closing your HttpURLConnection connection at the end of each action?  It should look something like "myURLConnection.disconnect();"
Shahram.

--
You received this message because you are subscribed to the Google Groups "BG Social Benchmark" group.
To unsubscribe from this group, send email to BG-SocialBenchm...@googlegroups.com.
Visit this group at http://groups.google.com/group/BG-SocialBenchmark?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Madhu

unread,
Oct 15, 2012, 9:36:49 AM10/15/12
to BG-Social...@googlegroups.com, bg-social...@googlegroups.com
Thank you,
I was not managing my connections well. I figured out ways to reduce the number of connection objects that I am using. It works fine now.


Madhu
To unsubscribe from this group, send email to BG-SocialBenchmark+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages