java.net.SocketException: No buffer space available

View: New views
6 Messages — Rating Filter:   Alert me  

java.net.SocketException: No buffer space available

by pchacin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Greetings

I've been playing with JGroups implementing a quite simple application.
Until yesterday, it was warking. Today, without any change I'm aware of
I started getting this message when connecting to a channel, no matter
the number of nodes (all have the same error and never connect to the group)

WARNING: failed to join /224.0.75.75:7500 on lo:
java.net.SocketException: No buffer space available

My code does just this:

            System.setProperty("java.net.preferIPv4Stack", "true");
           
            channel = new JChannel();
            channel.setReceiver(this);
            channel.connect(group);

Tracing the code, I've found it happends  here


    PlainDatagramSocketImpl.join(InetAddress, NetworkInterface) line:
not available [native method] [local variables unavailable]  
    PlainDatagramSocketImpl.joinGroup(SocketAddress, NetworkInterface)
line: 196  
    MulticastSocket.joinGroup(SocketAddress, NetworkInterface) line: 357  
    TP$DiagnosticsHandler.bindToInterfaces(List<NetworkInterface>,
MulticastSocket) line: 1872  
    TP$DiagnosticsHandler.start() line: 1780  
    UDP(TP).start() line: 851  
    UDP.start() line: 229  
    ProtocolStack.startStack(String, Address) line: 744  
    JChannel.startStack(String) line: 1763  
    JChannel.connect(String, boolean) line: 406  
    JChannel.connect(String) line: 381


Thanks in advance

Pablo

--
========================================================================
0 0 0  Pablo Chacin               | Dept. d'Arquitectura de Computadors
0 0 0  e-mail: pchacin@... | UPC-Campus Nord. Modul D6-212
0 0 0  phone: +34 +93 405 4059    | Jordi Girona, 1-3            
U P C  fax:   +34 +93 401 7055    | 08034 Barcelona - SPAIN            
www:   http://personals.ac.upc.es/pchacin
========================================================================


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
javagroups-users mailing list
javagroups-users@...
https://lists.sourceforge.net/lists/listinfo/javagroups-users

Re: java.net.SocketException: No buffer space available

by pchacin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I forgot to mention in my previous email that the Draw demo application
doesn't work either, so it doesn't looks like a
problem of my application, but maybe a configuration problem.


pchacin wrote:

> Greetings
>
> I've been playing with JGroups implementing a quite simple application.
> Until yesterday, it was warking. Today, without any change I'm aware of
> I started getting this message when connecting to a channel, no matter
> the number of nodes (all have the same error and never connect to the group)
>
> WARNING: failed to join /224.0.75.75:7500 on lo:
> java.net.SocketException: No buffer space available
>
> My code does just this:
>
>             System.setProperty("java.net.preferIPv4Stack", "true");
>            
>             channel = new JChannel();
>             channel.setReceiver(this);
>             channel.connect(group);
>
> Tracing the code, I've found it happends  here
>
>
>     PlainDatagramSocketImpl.join(InetAddress, NetworkInterface) line:
> not available [native method] [local variables unavailable]  
>     PlainDatagramSocketImpl.joinGroup(SocketAddress, NetworkInterface)
> line: 196  
>     MulticastSocket.joinGroup(SocketAddress, NetworkInterface) line: 357  
>     TP$DiagnosticsHandler.bindToInterfaces(List<NetworkInterface>,
> MulticastSocket) line: 1872  
>     TP$DiagnosticsHandler.start() line: 1780  
>     UDP(TP).start() line: 851  
>     UDP.start() line: 229  
>     ProtocolStack.startStack(String, Address) line: 744  
>     JChannel.startStack(String) line: 1763  
>     JChannel.connect(String, boolean) line: 406  
>     JChannel.connect(String) line: 381
>
>
> Thanks in advance
>
> Pablo
>
>  


--
========================================================================
0 0 0  Pablo Chacin               | Dept. d'Arquitectura de Computadors
0 0 0  e-mail: pchacin@... | UPC-Campus Nord. Modul D6-212
0 0 0  phone: +34 +93 405 4059    | Jordi Girona, 1-3            
U P C  fax:   +34 +93 401 7055    | 08034 Barcelona - SPAIN            
www:   http://personals.ac.upc.es/pchacin
========================================================================


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
javagroups-users mailing list
javagroups-users@...
https://lists.sourceforge.net/lists/listinfo/javagroups-users

Re: java.net.SocketException: No buffer space available

by Vladimir Blagojevic-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Disable diagnostics (enable_diagnostics="false") in UDP portion of your
XML configuration file. Most likely you will never use diagnostics anyway!

Regards,
Vladimir

On 09-11-05 12:34 PM, pchacin wrote:

> Greetings
>
> I've been playing with JGroups implementing a quite simple application.
> Until yesterday, it was warking. Today, without any change I'm aware of
> I started getting this message when connecting to a channel, no matter
> the number of nodes (all have the same error and never connect to the group)
>
> WARNING: failed to join /224.0.75.75:7500 on lo:
> java.net.SocketException: No buffer space available
>
> My code does just this:
>
>              System.setProperty("java.net.preferIPv4Stack", "true");
>
>              channel = new JChannel();
>              channel.setReceiver(this);
>              channel.connect(group);
>
> Tracing the code, I've found it happends  here
>
>
>      PlainDatagramSocketImpl.join(InetAddress, NetworkInterface) line:
> not available [native method] [local variables unavailable]
>      PlainDatagramSocketImpl.joinGroup(SocketAddress, NetworkInterface)
> line: 196
>      MulticastSocket.joinGroup(SocketAddress, NetworkInterface) line: 357
>      TP$DiagnosticsHandler.bindToInterfaces(List<NetworkInterface>,
> MulticastSocket) line: 1872
>      TP$DiagnosticsHandler.start() line: 1780
>      UDP(TP).start() line: 851
>      UDP.start() line: 229
>      ProtocolStack.startStack(String, Address) line: 744
>      JChannel.startStack(String) line: 1763
>      JChannel.connect(String, boolean) line: 406
>      JChannel.connect(String) line: 381
>
>
> Thanks in advance
>
> Pablo
>
>    


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
javagroups-users mailing list
javagroups-users@...
https://lists.sourceforge.net/lists/listinfo/javagroups-users

Parent Message unknown Re: java.net.SocketException: No buffer space available

by pchacin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I made these changes, turning of diagnostics and, even when I don't the
exception, the warning message is still there and the nodes don't see
each others after connecting.

Thanks for your help.

Vladimir Blagojevic wrote:

> There is, but it is complicate. Just use default udp.xml in
> distribution. You create a channel by passing udp.xml, prior to that
> modify udp.xml to disable diagnostics.
>
> Cheers
>
> On 09-11-05 1:33 PM, pchacin wrote:
>> I don't have any XML configuration file. Is there another way to turn
>> this off? I recall JGroups use to have a String to configure the
>> protocol stack in the connect method.
>>
>> Thanks.
>>
>> Vladimir Blagojevic wrote:
>>  
>>> Disable diagnostics (enable_diagnostics="false") in UDP portion of
>>> your XML configuration file. Most likely you will never use
>>> diagnostics anyway!
>>>
>>> Regards,
>>> Vladimir
>>>
>>> On 09-11-05 12:34 PM, pchacin wrote:
>>>    
>>>> Greetings
>>>>
>>>> I've been playing with JGroups implementing a quite simple
>>>> application.
>>>> Until yesterday, it was warking. Today, without any change I'm
>>>> aware of
>>>> I started getting this message when connecting to a channel, no matter
>>>> the number of nodes (all have the same error and never connect to the
>>>> group)
>>>>
>>>> WARNING: failed to join /224.0.75.75:7500 on lo:
>>>> java.net.SocketException: No buffer space available
>>>>
>>>> My code does just this:
>>>>
>>>>               System.setProperty("java.net.preferIPv4Stack", "true");
>>>>
>>>>               channel = new JChannel();
>>>>               channel.setReceiver(this);
>>>>               channel.connect(group);
>>>>
>>>> Tracing the code, I've found it happends  here
>>>>
>>>>
>>>>       PlainDatagramSocketImpl.join(InetAddress, NetworkInterface)
>>>> line:
>>>> not available [native method] [local variables unavailable]
>>>>       PlainDatagramSocketImpl.joinGroup(SocketAddress,
>>>> NetworkInterface)
>>>> line: 196
>>>>       MulticastSocket.joinGroup(SocketAddress, NetworkInterface) line:
>>>> 357
>>>>       TP$DiagnosticsHandler.bindToInterfaces(List<NetworkInterface>,
>>>> MulticastSocket) line: 1872
>>>>       TP$DiagnosticsHandler.start() line: 1780
>>>>       UDP(TP).start() line: 851
>>>>       UDP.start() line: 229
>>>>       ProtocolStack.startStack(String, Address) line: 744
>>>>       JChannel.startStack(String) line: 1763
>>>>       JChannel.connect(String, boolean) line: 406
>>>>       JChannel.connect(String) line: 381
>>>>
>>>>
>>>> Thanks in advance
>>>>
>>>> Pablo
>>>>
>>>>
>>>>        
>>>      
>>
>>    
>


--
========================================================================
0 0 0  Pablo Chacin               | Dept. d'Arquitectura de Computadors
0 0 0  e-mail: pchacin@... | UPC-Campus Nord. Modul D6-212
0 0 0  phone: +34 +93 405 4059    | Jordi Girona, 1-3            
U P C  fax:   +34 +93 401 7055    | 08034 Barcelona - SPAIN            
www:   http://personals.ac.upc.es/pchacin
========================================================================


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
javagroups-users mailing list
javagroups-users@...
https://lists.sourceforge.net/lists/listinfo/javagroups-users

Re: java.net.SocketException: No buffer space available

by Bela Ban :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Looks like this is not a JGroups problem; if you google "no buffer space
available" you find many answers how to fix this issue

pchacin wrote:

> Greetings
>
> I've been playing with JGroups implementing a quite simple application.
> Until yesterday, it was warking. Today, without any change I'm aware of
> I started getting this message when connecting to a channel, no matter
> the number of nodes (all have the same error and never connect to the group)
>
> WARNING: failed to join /224.0.75.75:7500 on lo:
> java.net.SocketException: No buffer space available
>
> My code does just this:
>
>             System.setProperty("java.net.preferIPv4Stack", "true");
>            
>             channel = new JChannel();
>             channel.setReceiver(this);
>             channel.connect(group);
>
> Tracing the code, I've found it happends  here
>
>
>     PlainDatagramSocketImpl.join(InetAddress, NetworkInterface) line:
> not available [native method] [local variables unavailable]  
>     PlainDatagramSocketImpl.joinGroup(SocketAddress, NetworkInterface)
> line: 196  
>     MulticastSocket.joinGroup(SocketAddress, NetworkInterface) line: 357  
>     TP$DiagnosticsHandler.bindToInterfaces(List<NetworkInterface>,
> MulticastSocket) line: 1872  
>     TP$DiagnosticsHandler.start() line: 1780  
>     UDP(TP).start() line: 851  
>     UDP.start() line: 229  
>     ProtocolStack.startStack(String, Address) line: 744  
>     JChannel.startStack(String) line: 1763  
>     JChannel.connect(String, boolean) line: 406  
>     JChannel.connect(String) line: 381
>
>
> Thanks in advance
>
> Pablo
>
>  

--
Bela Ban
Lead JGroups / Clustering Team
JBoss



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
javagroups-users mailing list
javagroups-users@...
https://lists.sourceforge.net/lists/listinfo/javagroups-users

Re: java.net.SocketException: No buffer space available

by pchacin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

That's depend on how you define the problem. First, it happened with
just one process in a JVM with plenty of memory.  Second, it happened
when the local network doesn't allow ip multicast. Just moving to
another network "solved the issue". As  Vladimir pointed out, I could
get rid of the message after turning diagnostics off in the
configuration. I thing that maybe , just maybe, JGropus message is
misleading as it  wrongly identifies a problem with the  ip multicast
with a memory  issue.

Bela Ban wrote:

> Looks like this is not a JGroups problem; if you google "no buffer
> space available" you find many answers how to fix this issue
>
> pchacin wrote:
>> Greetings
>>
>> I've been playing with JGroups implementing a quite simple application.
>> Until yesterday, it was warking. Today, without any change I'm aware of
>> I started getting this message when connecting to a channel, no matter
>> the number of nodes (all have the same error and never connect to the
>> group)
>>
>> WARNING: failed to join /224.0.75.75:7500 on lo:
>> java.net.SocketException: No buffer space available
>>
>> My code does just this:
>>
>>             System.setProperty("java.net.preferIPv4Stack", "true");
>>                        channel = new JChannel();
>>             channel.setReceiver(this);
>>             channel.connect(group);
>>
>> Tracing the code, I've found it happends  here
>>
>>
>>     PlainDatagramSocketImpl.join(InetAddress, NetworkInterface) line:
>> not available [native method] [local variables unavailable]      
>> PlainDatagramSocketImpl.joinGroup(SocketAddress, NetworkInterface)
>> line: 196       MulticastSocket.joinGroup(SocketAddress,
>> NetworkInterface) line: 357      
>> TP$DiagnosticsHandler.bindToInterfaces(List<NetworkInterface>,
>> MulticastSocket) line: 1872       TP$DiagnosticsHandler.start() line:
>> 1780       UDP(TP).start() line: 851       UDP.start() line: 229  
>>     ProtocolStack.startStack(String, Address) line: 744      
>> JChannel.startStack(String) line: 1763       JChannel.connect(String,
>> boolean) line: 406       JChannel.connect(String) line: 381
>>
>>
>> Thanks in advance
>>
>> Pablo
>>
>>  
>


--
========================================================================
0 0 0  Pablo Chacin               | Dept. d'Arquitectura de Computadors
0 0 0  e-mail: pchacin@... | UPC-Campus Nord. Modul D6-212
0 0 0  phone: +34 +93 405 4059    | Jordi Girona, 1-3            
U P C  fax:   +34 +93 401 7055    | 08034 Barcelona - SPAIN            
www:   http://personals.ac.upc.es/pchacin
========================================================================


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
javagroups-users mailing list
javagroups-users@...
https://lists.sourceforge.net/lists/listinfo/javagroups-users