gpadmin-[CRITICAL]:-Error occurred: non-zero rc: 1
一 問題描述
單機上安裝Greenplum,初始化gpinitsystem -c initgp_config時報錯:
20201118:11:13:10:005064 gpstart:pc205:gpadmin-[CRITICAL]:-Error occurred: non-zero rc: 1
Command was: 'env GPSESSID=0000000000 GPERA=ade1c97359a87184_201118111308 $GPHOME/bin/pg_ctl -D /data/greenplum/data/master/gpseg-1 -l /data/greenplum/data/master/gpseg-1/pg_log/startup.log -w -t 600 -o " -p 5432 -E " start'
rc=1, stdout='waiting for server to start.... stopped waiting
', stderr='pg_ctl: could not start server
master程式未起來。
檢視上面提到的日誌/data/greenplum/data/master/gpseg-1/pg_log/startup.log,發現有如下報錯:
FATAL","XX000","could not map anonymous shared memory: Cannot allocate memory",,"This error usually means that PostgreSQL's request for a shared memory segment exceeded available memory, swap space, or huge pages. To reduce the request size (currently 234474364 bytes), reduce PostgreSQL's shared memory usage, perhaps by reducing shared_buffers or max_connections.",,,,,,"CreateAnonymousSegment","pg_shmem.c",587,1 0xbe84ec postgres errstart (elog.c:557)
二 出錯原因
記憶體不足
三 解決辦法
① vi /etc/sysctl.conf,新增:
vm.overcommit_memory = 2
#使修改生效
sysctl -p
② 給伺服器多分配些記憶體
如果是自己虛擬機器的話,可以殺掉伺服器上比較佔記憶體的程式
相關文章
- An out of memory error has occurred.Error
- An internal error has occurred. Java heap spaceErrorJava
- An error occurred during bosboot verification processingErrorboot
- backup: 0511-432 A write error occurredError
- ORA-32700: error occurred in DIAG Group ServiceError
- 使用CocoaPods出錯,[!] Oh no, an error occurred.Error
- An error occurred while the wizard was checking the current Windows product license. Error Code: 8:ErrorWhileWindows
- ORA-29702: error occurred in Cluster Group Service operationError
- an error has occurred. - no valid devices were found...Errordev
- An error has occurred when creating this preference page.Error
- Non critical error ORA-48913 caught while writing to trace fileErrorWhile
- YaST2 error: (gnomesu): CRITICAL **: There are no services for 'libgnomesu' available.ASTErrorAI
- returned a non-zero code: 139
- Error occurred during initialization of boot layer java.lang.module.FindExceptionErrorbootJavaIndexException
- git push fatal: HttpRequestException encountered. An error occurred while sending the requestGitHTTPExceptionErrorWhile
- Myeclipse 錯誤An internal error has occurred 解決辦法EclipseError
- Error occurred while downloading files from admin server for deploymentErrorWhileServer
- MyEclipse - Retrieving archetypes: has encountered a problem An internal error occurred duringEclipseError
- An error occurred while updating the entries. See the inner exception for details.ErrorWhileExceptionAI
- Dynamics CRM CRM Reporting Error: Error occurred while fetching the data extension的解決方法ErrorWhile
- 10g GC 啟動oms報錯Unexpected error occurred. Check error and log files.GCError
- Discuz雲平臺站點資訊同步失敗,An unknown error occurred. May be DNS Error.ErrorDNS
- ORA-29702:error occurred in Cluster Group Service operation錯誤解決Error
- ORA-00607: Internal error occurred while making a change to a data blockErrorWhileBloC
- dbeaver 升級 24.1.x 版本提示 An error has occurred 的解決Error
- ORA-27302: failure occurred at: sskgxprcv1AI
- Archery 平臺執行DDL error:Threads_connected exceeds its critical thresholdErrorthread
- org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend.SQLExceptionErrorWhile
- ASP.NET WebHooks RC 1釋出ASP.NETWebHook
- 解決Eclipse裡Maven工程報 An error occurred while filtering resources錯誤EclipseMavenErrorWhileFilter
- What’s New in TiDB 3.0.0-rc.1TiDB
- 【翻譯】.NET 5 RC1釋出
- Julia 0.5.2和0.6-rc1釋出了
- Frugalware Linux 1.9 RC1 釋出Linux
- Kwort Linux 3.5 RC1 釋出Linux
- [ CSSCLNT][1]clsssInitNative: connect failed, rc 9CSSAI
- redhat系統伺服器重啟後提示An error occurred during the file system check.Redhat伺服器Error
- 配置jboss5.1(jdk1.6)_啟動錯誤_Error occurred during initialization of VMJDKError