incubator-cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chao Wang <chao.w...@ericsson.com>
Subject RE: java.net.SocketException
Date Fri, 13 Apr 2012 07:26:49 GMT
 Hi,
Same error after using 1.6.0_30.A lot of TIME_WAIT when run netstat on cassandra port.
/Chao

-----Original Message-----
From: Edward Capriolo [mailto:edlinuxguru@gmail.com] 
Sent: Friday, April 13, 2012 11:37 AM
To: dev@cassandra.apache.org
Subject: Re: java.net.SocketException

If you are using ~[na:1.6.0_14 you should upgrade to a later 1.6 JVM before trying to troubleshoot
anything else.

On Thu, Apr 12, 2012 at 11:05 PM, Chao Wang <chao.wang@ericsson.com> wrote:
> HI,
> Does this java.net.SocketException: No buffer space available related to cassandra?
> /Chao
> 11:00:30.269 
> [Hector.me.prettyprint.cassandra.connection.CassandraHostRetryService-
> 1] INFO  [m.p.c.c.CassandraHostRetryService:113] - Downed Host retry 
> status true with host: localhost(127.0.0.1):7160 11:00:30.300 
> [Hector.me.prettyprint.cassandra.connection.CassandraHostRetryService-
> 1] ERROR [m.p.c.connection.HConnectionManager:109] - Transport 
> exception host to HConnectionManager: localhost(127.0.0.1):7160
> me.prettyprint.hector.api.exceptions.HectorTransportException: Unable 
> to open transport to localhost(127.0.0.1):7160 , 
> java.net.SocketException: No buffer space available (maximum 
> connections reached?): connect
>        at 
> me.prettyprint.cassandra.connection.HThriftClient.open(HThriftClient.j
> ava:128) ~[na:na]
>        at 
> me.prettyprint.cassandra.connection.ConcurrentHClientPool.<init>(Concu
> rrentHClientPool.java:48) ~[na:na]
>        at 
> me.prettyprint.cassandra.connection.RoundRobinBalancingPolicy.createCo
> nnection(RoundRobinBalancingPolicy.java:68) ~[na:na]
>        at 
> me.prettyprint.cassandra.connection.HConnectionManager.addCassandraHos
> t(HConnectionManager.java:104) ~[na:na]
>        at 
> me.prettyprint.cassandra.connection.CassandraHostRetryService$RetryRun
> ner.run(CassandraHostRetryService.java:115) ~[na:na]
>        at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441
> ) ~[na:1.6.0_14]
>        at 
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:
> 317) ~[na:1.6.0_14]
>        at 
> java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) 
> ~[na:1.6.0_14]
>        at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.a
> ccess$101(ScheduledThreadPoolExecutor.java:98) ~[na:1.6.0_14]
>        at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.r
> unPeriodic(ScheduledThreadPoolExecutor.java:181) ~[na:1.6.0_14]
>        at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.r
> un(ScheduledThreadPoolExecutor.java:205) ~[na:1.6.0_14]
>        at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecu
> tor.java:886) ~[na:1.6.0_14]
>        at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
> java:908) ~[na:1.6.0_14]
>        at java.lang.Thread.run(Thread.java:619) ~[na:1.6.0_14] Caused 
> by: org.apache.thrift.transport.TTransportException: 
> java.net.SocketException: No buffer space available (maximum 
> connections reached?): connect
>        at org.apache.thrift.transport.TSocket.open(TSocket.java:183) 
> ~[na:na]
>        at 
> org.apache.thrift.transport.TFramedTransport.open(TFramedTransport.jav
> a:81) ~[na:na]
>        at 
> me.prettyprint.cassandra.connection.HThriftClient.open(HThriftClient.j
> ava:122) ~[na:na]
>        ... 13 common frames omitted
> Caused by: java.net.SocketException: No buffer space available 
> (maximum connections reached?): connect
>        at java.net.PlainSocketImpl.socketConnect(Native Method) 
> ~[na:1.6.0_14]
>        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) 
> ~[na:1.6.0_14]
>        at 
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) 
> ~[na:1.6.0_14]
>        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) 
> ~[na:1.6.0_14]
>        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) 
> ~[na:1.6.0_14]
>        at java.net.Socket.connect(Socket.java:519) ~[na:1.6.0_14]
>        at org.apache.thrift.transport.TSocket.open(TSocket.java:178) 
> ~[na:na]
>        ... 15 common frames omitted
>

Mime
View raw message