簡體   English   中英

eucalyptus-cloud.service 4.4.4不斷崩潰,並顯示JVM內存錯誤

[英]eucalyptus-cloud.service 4.4.4 constantly crashing with JVM memory errors

我正在嘗試閱讀手動安裝指南。 當我為控制台注冊一個管理員帳戶(euare-accountcreate)或注冊服務(euserv-register-service)時,桉樹雲服務始終因相同的JVM內存錯誤而崩潰。 舉例來說,我曾經能夠注冊UFS或創建管理員帳戶,但是當我繼續執行安裝中的另一步驟時,它將失敗,並且檢查服務狀態表明它已崩潰。 我沒有Java內存錯誤的經驗,實際上可以使用一些幫助來了解發生了什么以及通常如何調查這種類型的錯誤:

[root@cloud ~]# euserv-describe-services ufs-10.0.0.2

euserv-describe-services: error: connection error (('Connection 
aborted.', BadStatusLine("''",)))
[root@cloud ~]# systemctl status eucalyptus-cloud -l
● eucalyptus-cloud.service - Eucalyptus cloud web services
Loaded: loaded (/usr/lib/systemd/system/eucalyptus-cloud.service; 
enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-10-10 08:45:09 EDT; 
4s ago
Process: 45951 ExecStart=/usr/sbin/eucalyptus-cloud $CLOUD_OPTS 
(code=exited, status=1/FAILURE)
Main PID: 45951 (code=exited, status=1/FAILURE)
CGroup: /system.slice/eucalyptus-cloud.service
       ├─46206 /usr/bin/postgres -D /var/lib/eucalyptus/db/data - 
h0.0.0.0 -p8777
       ├─46207 postgres: logger process                                         
       ├─46209 postgres: checkpointer process                                   
       ├─46210 postgres: writer process                                         
       ├─46211 postgres: wal writer process                                     
       ├─46212 postgres: autovacuum launcher process                            
       └─46213 postgres: stats collector process                                

Oct 10 08:45:08 cloud eucalyptus-cloud[45951]: OpenJDK 64-Bit Server VM 
warning: INFO: os::commit_memory(0x00007f496534b000, 12288, 0) failed; 
error='Cannot allocate memory' (errno=12)
Oct 10 08:45:08 cloud eucalyptus-cloud[45951]: #
Oct 10 08:45:08 cloud eucalyptus-cloud[45951]: # There is insufficient 
memory for the Java Runtime Environment to continue.
Oct 10 08:45:08 cloud eucalyptus-cloud[45951]: # Native memory 
allocation (mmap) failed to map 12288 bytes for committing reserved 
memory.
Oct 10 08:45:08 cloud eucalyptus-cloud[45951]: # An error report file 
with more information is saved as:
Oct 10 08:45:08 cloud eucalyptus-cloud[45951]: # 
/tmp/hs_err_pid45954.log
Oct 10 08:45:09 cloud eucalyptus-cloud[45951]: 2018-10-10 08:45:09 
45951 ERROR 0574 Service exit with a return value of 1.
Oct 10 08:45:09 cloud systemd[1]: eucalyptus-cloud.service: main 
 process exited, code=exited, status=1/FAILURE
 Oct 10 08:45:09 cloud systemd[1]: Unit eucalyptus-cloud.service 
 entered failed state.
 Oct 10 08:45:09 cloud systemd[1]: eucalyptus-cloud.service failed.

編輯以包含一些版本信息:

[root@cloud ~]# cat /etc/centos-release

CentOS Linux release 7.5.1804 (Core) 

[root@cloud ~]# java -version

openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)

編輯以注意我的困惑:該系統僅使用25G RAM和223G空閑內存。 因此,我需要幫助來了解Java如何耗盡內存。

嘗試此修復程序:

    echo 1999999 > /proc/sys/vm/max_map_count

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM