简体   繁体   English

eucalyptus-cloud.service 4.4.4不断崩溃,并显示JVM内存错误

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

I'm trying to work through the manual installation guide. 我正在尝试阅读手动安装指南。 When I get as far as registering an admin account for the console (euare-accountcreate) or registering services (euserv-register-service) the eucalyptus-cloud service inconsistently crashes with the same JVM memory error. 当我为控制台注册一个管理员帐户(euare-accountcreate)或注册服务(euserv-register-service)时,桉树云服务始终因相同的JVM内存错误而崩溃。 As an example a few times I've been able to register the UFS or create the admin account but when I move on to perform another step in the install it will fail and checking the service status shows that it has crashed. 举例来说,我曾经能够注册UFS或创建管理员帐户,但是当我继续执行安装中的另一步骤时,它将失败,并且检查服务状态表明它已崩溃。 I don't have experience with Java memory errors and could really use some help understanding whats going on and how to investigate this type of error in general: 我没有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.

Edit to include some version info: 编辑以包含一些版本信息:

[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)

EDIT to note my point of confusion: This system only has 25G of RAM in use and 223G free. 编辑以注意我的困惑:该系统仅使用25G RAM和223G空闲内存。 So I need help understanding how java is running out of memory. 因此,我需要帮助来了解Java如何耗尽内存。

尝试此修复程序:

    echo 1999999 > /proc/sys/vm/max_map_count

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM