Re: java.net.SocketException: Cannot allocate memory

2013-07-06 Thread Brian Call
Thanks again for your help guys! Looks like I still have some digging to do but at least I have some good ideas on where to look first. I'll report back on what I find here soon. -Brian On Jul 5, 2013, at 3:47 PM, Alan Bateman wrote: > On 05/07/2013 21:07, Brian Call wrote: >> : >> >> >>

Re: java.net.SocketException: Cannot allocate memory

2013-07-05 Thread Alan Bateman
On 05/07/2013 21:07, Brian Call wrote: : Is there any way to get access to the jvm source for MacOS? That might yield some interesting insight as well. You've find the joinOrDrop4 implementation here: http://hg.openjdk.java.net/jdk7u/jdk7u/jdk/file/tip/src/solaris/native/sun/nio/ch/Net.c I

Re: java.net.SocketException: Cannot allocate memory

2013-07-05 Thread Matthew Hall
I don't think the OS X JDK is open to the community yet but I could be wrong. You can try increasing the amount of mbuf clusters (nmbclusters) in the sysctl and rebooting to see if it helps, this is what I did. But even that didn't fix all my issues with their brokenness in their network stack.

Re: java.net.SocketException: Cannot allocate memory

2013-07-05 Thread Brian Call
To give a little bit of context... We're developing a new wrist-worn medical monitoring device that sends real-time vitals information such as heart rate, blood oxygen levels, blood pressure, and even full 12 lead ECG waveforms. The device sends it's data to the base station using a TCP connecti

Re: java.net.SocketException: Cannot allocate memory

2013-07-05 Thread Alan Bateman
On 05/07/2013 18:20, Brian Call wrote: Hi Guys, I'm seeing an ugly issue crop up on JDK7 for MacOS that I'm at a total loss to diagnose or even begin to fix. At random times (and sometimes every time) I'm seeing this exception: Caused by: java.net.SocketException: Cannot allocate memory

Re: java.net.SocketException: Cannot allocate memory

2013-07-05 Thread Matthew Hall
I ran into a similar issue before on OS X... there are some bugs Apple introduced into their BSD kernel, where they limited the amount of buffer space you could get for a single socket to a certain percentage of the global mbuf and skbuff pool, in a brain damaged way which causes more problems t