Just to close the loop on this, the default direct memory size is unbounded:
http://download.oracle.com/docs/cd/E15289_01/doc.40/e15062/optionxx.htm#BABGCFFB -XX:MaxDirectMemorySize This option specifies the maximum total size of java.nio (New I/O package) direct buffer allocations. Format -XX:MaxDirectMemorySize=size[g|G|m|M|k|K] Example java -XX:MaxDirectMemorySize=2g myApp Default Value The default value is zero, which means the maximum direct memory is unbounded. > -----Original Message----- > From: Todd Lipcon [mailto:[email protected]] > Sent: Sunday, December 19, 2010 14:57 > To: [email protected] > Subject: Re: Simple OOM crash? > > On Fri, Dec 17, 2010 at 7:37 PM, Sandy Pratt <[email protected]> wrote: > > > -XX:MaxDirectMemorySize=100m > > Yep, I always leave that at the default, whatever that might be. > > -Todd > -- > Todd Lipcon > Software Engineer, Cloudera
