RFR: 8284900: Check InitialHeapSize and container memory limits before startup [v2]
    xpbob 
    duke at openjdk.java.net
       
    Sun Apr 17 10:08:05 UTC 2022
    
    
  
> Check InitialHeapSize and container memory limits before startup
> 
> 
> Operating System Metrics:
>     Provider: cgroupv1
>     Effective CPU Count: 8
>     CPU Period: 100000us
>     CPU Quota: -1
>     CPU Shares: -1
>     List of Processors, 8 total: 
>     0 1 2 3 4 5 6 7 
>     List of Effective Processors: N/A
>     List of Memory Nodes, 1 total: 
>     0 
>     List of Available Memory Nodes: N/A
>     Memory Limit: 50.00M
>     Memory Soft Limit: Unlimited
>     Memory & Swap Limit: Unlimited
>     Maximum Processes Limit: 4194305
> 
> command:-Xms50m -XshowSettings:system -version 
> 
> When the memory limit is exceeded, the startup fails
> 
> 
> Error occurred during initialization of VM
> Initial heap size set to a larger value than the os or container memory
xpbob has updated the pull request incrementally with one additional commit since the last revision:
  use swap to limit
-------------
Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8256/files
  - new: https://git.openjdk.java.net/jdk/pull/8256/files/6f9f8ad1..0f33960f
Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8256&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8256&range=00-01
  Stats: 7 lines in 2 files changed: 2 ins; 1 del; 4 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8256.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8256/head:pull/8256
PR: https://git.openjdk.java.net/jdk/pull/8256
    
    
More information about the hotspot-gc-dev
mailing list