shuangquansq commented on issue #11251:
URL: https://github.com/apache/ignite/issues/11251#issuecomment-1980499789

   Hi, ptupitsyn:
        our ignite run with k8s pod.  pod have 8G memory and guest host memory 
is 64G. Our use defaultDataRegionConfiguration, but don't set the maxsize 
memory.
       I see the sorce code:"
           /** Fraction of available memory to allocate for default DataRegion. 
*/
       private static final double DFLT_DATA_REGION_FRACTION = 0.2;
   
       /** Default data region's size is 20% of physical memory available on 
current machine. */
       public static final long DFLT_DATA_REGION_MAX_SIZE = Math.max(
           (long)(DFLT_DATA_REGION_FRACTION * U.getTotalMemoryAvailable()),
           DFLT_DATA_REGION_INITIAL_SIZE);
       "
     the interface 
U.getTotalMemoryAvailable()-->sunOs.getTotalPhysicalMemorySize(), will get the 
guest host memory 64G  64G*0.2=12.8G. 
   Although JVM limited the -XX:MaxDirectMemorySize=2300m. But  ignite doesn't 
know it, only know maxsize is 12.8G. So ignite will continue request the 
memory, until occur OutOfMemoryError.
   is it right?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to