I just brought up a 513MB droplet of Ubuntu 14.04 x64 and rsyslogd is using over 200MB of memory. I’m not sure what would be causing that. How would I figure out why rsyslogd is using so much memory?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
One solution is to reduce the buffer size of rsyslogd. Edit the /etc/defualt/rsyslogd configuration file and add
ulimit -S -s 128
to the last line of the configuration file. This will reduce the allocated memory of rsyslogd to 128k, which is still enough for it to to do it’s job. Restarting the service didn’t seem to update the systems information correctly, but restarting the instance now shows much less memory usage.
What’s the output of the following command?
pidstat -r -p $(pidof rsyslogd)
rsyslogd is most likely not actually using 200MB of memory. You can find out how much memory it really is using by looking for the value (in kilobytes) of the RSS column of the above command’s output.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.