系统相关
首页 > 系统相关> > 解决rsyslogd服务占用内存高

解决rsyslogd服务占用内存高

作者:互联网

vim /usr/lib/systemd/system/rsyslog.service

[Unit]
Description=System Logging Service
;Requires=syslog.socket
Wants=network.target network-online.target
After=network.target network-online.target
Documentation=man:rsyslogd(8)
Documentation=http://www.rsyslog.com/doc/

[Service]
Type=notify
EnvironmentFile=-/etc/sysconfig/rsyslog
ExecStart=/usr/sbin/rsyslogd -n $SYSLOGD_OPTIONS
Restart=on-failure
MemoryAccounting=yes
MemoryMax=60M
MemoryHigh=6M
UMask=0066
StandardOutput=null
Restart=on-failure


[Install]
WantedBy=multi-user.target
;Alias=syslog.service

systemctl daemon-reload 
systemctl restart rsyslog.service

标签:network,service,占用,内存,rsyslog,rsyslogd,Service,target
来源: https://blog.csdn.net/qq_41671629/article/details/117747996