Skip to content

Commit

Permalink
linkis ecm stimate actual memory 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
casionone committed Oct 9, 2023
1 parent cd4934d commit 1d13826
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ object ECMUtils extends Logging {
// if enable estimate actual memory
if (ECM_STIMATE_ACTUAL_MEMORY_ENABLE) {

// 90%
val totalByte = (HardwareUtils.getMaxMemory() * 0.9).asInstanceOf[Long]
val totalByte = HardwareUtils.getMaxMemory()

val resultMemory = math.max(totalByte, ECM_PROTECTED_MEMORY)
// max of PhysicalMemory or ECM_PROTECTED_MEMORY
Expand Down

0 comments on commit 1d13826

Please sign in to comment.