codedeploy 在几次部署(php 应用程序)后失败并出现错误
“无法分配内存 - su”,但在实例中它播种了 51% 的内存正在使用中。
可能是什么原因?
Error.
InstanceAgent::Plugins::CodeDeployPlugin::CommandPoller: Error during perform: Errno::ENOMEM - Cannot allocate memory - su - /usr/share/ruby/open3.rb:211:in `spawn'
/usr/share/ruby/open3.rb:211:in `popen_run'
/usr/share/ruby/open3.rb:99:in `popen3'
/opt/codedeploy-agent/lib/instance_agent/plugins/codedeploy/hook_executor.rb:141:in `execute_script'
/opt/codedeploy-agent/lib/instance_agent/plugins/codedeploy/hook_executor.rb:115:in `block (2 levels) in execute'
/opt/codedeploy-agent/lib/instance_agent/plugins/codedeploy/hook_executor.rb:103:in `each'
/opt/codedeploy-agent/lib/instance_agent/plugins/codedeploy/hook_executor.rb:103:in `block in execute'
[centos@ip-10-196-21-200 codedeploy-agent]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/xvda1 41926416 21195568 20730848 51% /
devtmpfs 487892 0 487892 0% /dev
tmpfs 507480 0 507480 0% /dev/shm
tmpfs 507480 38336 469144 8% /run
tmpfs 507480 0 507480 …Run Code Online (Sandbox Code Playgroud)