簡體   English   中英

運行Puppet代理時獲取“無法分配內存”

[英]Getting “Cannot allocate memory” when running Puppet agent

運行“ puppet agent -t”時出現以下錯誤:

Cannot allocate memory - /bin/uname -s
...
Cannot allocate memory - /sbin/arp -an
...
Cannot allocate memory - /bin/uname -s
...
Could not retrieve kernelversion: private method `split' called for nil:NilClass
Could not retrieve kernelmajversion: private method `split' called for nil:NilClass
...

完整的錯誤在這里: http : //pastebin.com/fhjqrgBn

當我手動運行命令/bin/uname -s ,我得到的結果沒有任何錯誤。

free命令顯示:

             total       used       free     shared    buffers     cached
Mem:        609600     160688     448912          0       5716      35432
-/+ buffers/cache:     119540     490060
Swap:            0          0          0

bug錯誤? 你怎么看 ?

聽起來您的系統內存不足。 免費檢查內存使用情況,-m以MB為單位顯示值:

$ free -m
             total       used       free     shared    buffers     cached
Mem:           590        412        177          0         22        314
-/+ buffers/cache:         75        514
Swap:            0          0          0

從其他外殼程序中,您可以在運行puppet agent時免費檢查內存使用情況,也可以使用其他實用程序(例如top或dstat)。

嘗試查看您的服務狀態,確保沒有不需要的服務在運行:

service --status-all

暫無
暫無

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

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