Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / June 2005

Tip: Looking for answers? Try searching our database.

java.net.SocketException: No buffer space available (maximum connections reached?): recv failed

Thread view: 
daniel.shaya@tamesis.com - 23 Jun 2005 10:25 GMT
I'll try and keep this brief so in a nutshell:

I have large distributed java system running on a Windows 2003 server
(4cpu 8Gb memory).

Periodically the following exceptions occurs in the servers:

java.net.SocketException: No buffer space available (maximum
connections reached?): recv failed

I know for a fact we are not using too many TCPIP sockets or running
too many socket servers.

I have googled this error and found very little to help me.

What buffer space is this?
What does recv failed mean?

(Is it at all relevant that sql server is running on the same box?)

Any advice appreciated.
Thanks in advance.

Dan
Andrew Thompson - 23 Jun 2005 10:48 GMT
> I'll try and keep this brief ..

One way to help achieve that is to avoid multi-posting.

Signature

Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane

daniel.shaya@tamesis.com - 23 Jun 2005 12:01 GMT
Witty but unhelpful.

On a serious note, there are certain issues that span more than one
group.  Not everyone has the time to monitor more than a single group.
Clearly you are in that fortunate position - it is a shame you can't
spend the time answering the issues rather than wasting everyone's time
with clever comments.
Daniel Dyer - 23 Jun 2005 12:27 GMT
> Witty but unhelpful.
>
[quoted text clipped - 3 lines]
> spend the time answering the issues rather than wasting everyone's time
> with clever comments.

I think Andrew was suggesting, albeit bluntly, that you could cross-post  
instead of multi-posting, then people that read both groups will only read  
your message once.  Just put both group names in the newsgroup header  
rather than sending two separate messages (like I have done for this  
message with alt.test).  If you also set the follow-up header you should  
only have to read the responses in one group.

Getting back to your question, how many concurrent connections do you have  
to create to get that error?

Dan.

Signature

Daniel Dyer
http://www.footballpredictions.net

daniel.shaya@tamesis.com - 23 Jun 2005 12:52 GMT
Thanks for explaining cross-posting - didn't realise you could do that
- will definitely do so in the future.

When I use the TCPIP viewer from sysinternals - there are about 200-500
TCPIP connections.  This is well below the allowed limit (in fact I
even increased the number of ephemireal ports 15000).

The system works for a while and then gets the exception - without the
number of connections rising.

I wrote a test harness to see what would happen if I ran out of TCPIP
port and you get a different error message:

java.net.SocketException: No buffer space available (maximum
connections reached?): JVM_Bind

This must be something else -any ideas?
Andrew Thompson - 23 Jun 2005 13:19 GMT
> Thanks for explaining cross-posting ..

Oddly, I have not seen Daniel's (Dyer) reply in my
newsreader yet, but can see it at 'groups beta'.

In any case, thanks Daniel for explaining.

> - didn't realise you could do that
> - will definitely do so in the future.

Excellent.

A word (or several) of explanation.  Normally I link
to a passage of my JavaFAQ that goes into further
detail and suggests cross-posting.

Unfortunately my entire site has been pulled by the
host and I (or anybody) cannot access it till I sort
the problem.

I should have added more detail in my original ( witty ;)
reply.  My bad.

Please note that in this instance I made no comment
on the thread on c.l.j.programmer.  

Part of the reason for that is to allow at least
*one* of the posts to not be labelled by any
suggestion of multi-posting.  

There are posters on most of these (java technical)
groups who would skip over such threads, or not make
replies until the matter of multi-posting is sorted.

For that reason, this matter *might* best be pursued on
the single thread on c.l.j.programmer.  OTOH - Daniel
Dyer has begun helping you here, so..

Signature

Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane

Daniel Dyer - 23 Jun 2005 14:26 GMT
> For that reason, this matter *might* best be pursued on
> the single thread on c.l.j.programmer.  OTOH - Daniel
> Dyer has begun helping you here, so..

I wish I could help, I haven't got a clue what the problem is.

Dan.

Signature

Daniel Dyer
http://www.footballpredictions.net

Thomas G. Marshall - 30 Jun 2005 02:15 GMT
Andrew Thompson coughed up:

>> Thanks for explaining cross-posting ..
>
[quoted text clipped - 15 lines]
> host and I (or anybody) cannot access it till I sort
> the problem.

One of the owners not like your suggestions?  ;)

...[rip]...

Signature

Onedoctortoanother:"Ifthisismyrectalthermometer,wherethehell'smypen???"

Andrew Thompson - 30 Jun 2005 05:27 GMT
> Andrew Thompson coughed up:

>> ..Normally I link
>> to a passage of my JavaFAQ that goes into further
[quoted text clipped - 5 lines]
>
> One of the owners not like your suggestions?  ;)

Who can say.  It is only within the last few hours have
they informed me *why* they had pulled it*.  I am not too
happy it took them so long either, ...

* There was apparently a security breach, somone was
been exploiting a mail send script on my server and
was causing spam.  ...*DEATH* *TO* *SPAMMERS*.   :-/

Signature

Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane

Thomas G. Marshall - 30 Jun 2005 16:59 GMT
Andrew Thompson coughed up:

>> Andrew Thompson coughed up:
>
[quoted text clipped - 15 lines]
> been exploiting a mail send script on my server and
> was causing spam.  ...*DEATH* *TO* *SPAMMERS*.   :-/

Maybe it'd be a good thing to post the precise weakness in your server (and
your fix) in an appropriate ng.  This kind of thing seems prevalent.

Signature

Whyowhydidn'tsunmakejavarequireanuppercaselettertostartclassnames....



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.