Recently there has been a cloud host error, view system logs found to be too high update-apt-xapi resource-intensive task, even accounting for over memory can not open the memory
Cloud Hosting:Ubuntu 14.04.5 LTS
update-apt-xapi
Why is it?
Online search out this task is the system used to update the internal resources package, the default will start automatically in the background. The main index is an extension of the data package is not necessary to rely on the system,
Solution one:
Proposal directly uninstall
sudo apt-get autoremove --purge apt-xapian-index
sudo apt-get autoremove --purge
Solution two:
Change parameters. /etc/cron.weekly/apt-xapian-index
#!/bin/sh
CMD=/usr/sbin/update-apt-xapian-index
IONICE=/usr/bin/ionice
# Rebuild the index
if [ -x $CMD ]
then
if [ -x $IONICE ]
then
nice -n 19 $IONICE -c 3 $CMD --update --quiet
else
nice -n 19 $CMD --update --quiet
fi
fi
Reference:
Ubuntu official website