private static String checkORBgiopMaxMsgSize ( ) { /* * JacORB definition (see jacorb.properties file): * * This is NOT the maximum buffer size that can be used, but just the * largest size of buffers that will be kept and managed. This value * will be added to an internal constant of 5, so the real value in * bytes is 2**(5+maxManagedBufSize-1). You only need to increase this * value if you are dealing with LOTS of LARGE data structures. You may * decrease it to make the buffer manager release large buffers * immediately rather than keeping them for later reuse. */ String str = "20" ; // Set to 16 Mbytes // Check if environment ask for bigger size. final String tmp = System . getProperty ( "ORBgiopMaxMsgSize" ) ; if ( tmp != null && checkBufferSize ( tmp ) != null ) { str = tmp ; } return str ; }
Check if the checkORBgiopMaxMsgSize has been set . This environment variable should be set in Mega bytes .