equal
deleted
inserted
replaced
201 jlong phys_mem = 0; |
201 jlong phys_mem = 0; |
202 if (OSContainer::is_containerized()) { |
202 if (OSContainer::is_containerized()) { |
203 jlong mem_limit; |
203 jlong mem_limit; |
204 if ((mem_limit = OSContainer::memory_limit_in_bytes()) > 0) { |
204 if ((mem_limit = OSContainer::memory_limit_in_bytes()) > 0) { |
205 log_trace(os)("total container memory: " JLONG_FORMAT, mem_limit); |
205 log_trace(os)("total container memory: " JLONG_FORMAT, mem_limit); |
206 return phys_mem; |
206 return mem_limit; |
207 } |
207 } |
208 log_debug(os, container)("container memory limit %s: " JLONG_FORMAT ", using host value", |
208 log_debug(os, container)("container memory limit %s: " JLONG_FORMAT ", using host value", |
209 mem_limit == OSCONTAINER_ERROR ? "failed" : "unlimited", mem_limit); |
209 mem_limit == OSCONTAINER_ERROR ? "failed" : "unlimited", mem_limit); |
210 } |
210 } |
211 |
211 |