OSError: [Errno 12] Cannot allocate memory错误解决

20190905:17:52:47:024892 gpconfig:70qb06:gpadmin-[ERROR]:-[Errno 12] Cannot allocate memoryTraceback (most recent call last):
File “/gpdata/greenplum-db/lib/python/gppylib/commands/base.py”, line 243, in run
self.cmd.run()
File “/gpdata/greenplum-db/lib/python/gppylib/commands/unix.py”, line 396, in run
super(Ping, self).run(validateAfter)
File “/gpdata/greenplum-db/lib/python/gppylib/commands/base.py”, line 711, in run
self.exec_context.execute(self)
File “/gpdata/greenplum-db/lib/python/gppylib/commands/base.py”, line 433, in execute
stdout=subprocess.PIPE, close_fds=True)
File “/gpdata/greenplum-db/ext/python/lib/python2.7/subprocess.py”, line 711, in init
errread, errwrite)
File “/gpdata/greenplum-db/ext/python/lib/python2.7/subprocess.py”, line 1235, in _execute_child
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory
20190905:17:52:47:024892 gpconfig:70qb06:gpadmin-[WARNING]:-Ping to host: ‘70qb07’ FAILED
20190905:17:52:47:024892 gpconfig:70qb06:gpadmin-[WARNING]:-alternate host: ‘70qb07’ => ‘70qb07’
20190905:17:52:47:024892 gpconfig:70qb06:gpadmin-[ERROR]:-[Errno 12] Cannot allocate memory
Traceback (most recent call last):
File “/gpdata/greenplum-db/lib/python/gppylib/commands/base.py”, line 243, in run
self.cmd.run()
File “/gpdata/greenplum-db/lib/python/gppylib/commands/base.py”, line 711, in run
self.exec_context.execute(self)
File “/gpdata/greenplum-db/lib/python/gppylib/commands/base.py”, line 655, in execute
LocalExecutionContext.execute(self, cmd)
File “/gpdata/greenplum-db/lib/python/gppylib/commands/base.py”, line 433, in execute
stdout=subprocess.PIPE, close_fds=True)
File “/gpdata/greenplum-db/ext/python/lib/python2.7/subprocess.py”, line 711, in init
errread, errwrite)
File “/gpdata/greenplum-db/ext/python/lib/python2.7/subprocess.py”, line 1235, in _execute_child
self.pid = os.fork()
OSError: [Errno 12] Cannot allocate memory
20190905:17:52:47:024892 gpconfig:70qb06:gp

最后解决办法:就是加大内存,因为虚拟机才32g内存,因此尝试加大虚拟机内存到64G,问题解决。

最原始最粗暴 的解决方式。

你可能感兴趣的:(GP的管理命令不能执行,GP)