У меня установлена версия Ubuntu 16.04.2, с которой я играл (Landscape, Juju, LXD). Недавно, в последние несколько дней, после перезагрузки система (i7 5820K, 16Gb DDR4) остановится. Glances и gnome-system-monitor показывают, что два процесса, принадлежащих root, называются mongod, и каждый из них потребляет почти шесть гигабайт оперативной памяти.
Я использую много вкладок Firefox, так что это означает, что использование моей памяти достигает почти 100%, и все резко замедляется из-за использования моего файла подкачки.
sudo killall mongod
не убивает процессы. Только запуск на sudo pkill [PID]
самом деле убивает их, и даже после этого иногда возвращаются два процесса, хотя на этот раз используется только около 30 МБ ОЗУ каждый.
Кроме того, я не установил MongoDB или что-либо связанное вообще. Запуск apt autoremove
с использованием *mongo*
ничего не показывает.
Мне было любопытно, имеет ли Juju какое-либо отношение к этому, поэтому я удалил все, что связано с Juju и ландшафтом. Однако с тех пор я несколько раз перезагружался, и все же эти процессы существуют.
Вот доказательство того, что в моей системе не установлено ничего, связанного с Juju или MongoDB:
snyper@machine1:~$ sudo apt autoremove *mongo*
[sudo] password for snyper:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'jmeter-mongodb' for glob '*mongo*'
Note, selecting 'python-mongoengine' for glob '*mongo*'
Note, selecting 'mongodb' for glob '*mongo*'
Note, selecting 'ruby-mongo' for glob '*mongo*'
Note, selecting 'python2.7-pymongo' for glob '*mongo*'
Note, selecting 'python3-pymongo-ext' for glob '*mongo*'
Note, selecting 'python-mongoengine-doc' for glob '*mongo*'
Note, selecting 'juju-mongodb2.6' for glob '*mongo*'
Note, selecting 'juju-mongo-tools3.2' for glob '*mongo*'
Note, selecting 'juju-mongodb3.2' for glob '*mongo*'
Note, selecting 'libmongodb-perl' for glob '*mongo*'
Note, selecting 'libmongodbx-class-perl' for glob '*mongo*'
Note, selecting 'libcatmandu-store-mongodb-perl' for glob '*mongo*'
Note, selecting 'python3-mongoengine' for glob '*mongo*'
Note, selecting 'libmongo-client0' for glob '*mongo*'
Note, selecting 'python2.7-pymongo-ext' for glob '*mongo*'
Note, selecting 'python3-pymongo' for glob '*mongo*'
Note, selecting 'ruby-em-mongo' for glob '*mongo*'
Note, selecting 'mongodb-server' for glob '*mongo*'
Note, selecting 'libmongo-client0-dbg' for glob '*mongo*'
Note, selecting 'libmongoc-1.0-0' for glob '*mongo*'
Note, selecting 'python2.7-mongoengine' for glob '*mongo*'
Note, selecting 'libmongo-client-dev' for glob '*mongo*'
Note, selecting 'libmongo-client-doc' for glob '*mongo*'
Note, selecting 'php-mongo' for glob '*mongo*'
Note, selecting 'php-horde-mongo' for glob '*mongo*'
Note, selecting 'libmongoc-dbg' for glob '*mongo*'
Note, selecting 'libmongoc-dev' for glob '*mongo*'
Note, selecting 'libmongoc-doc' for glob '*mongo*'
Note, selecting 'juju-mongodb' for glob '*mongo*'
Note, selecting 'syslog-ng-mod-mongodb' for glob '*mongo*'
Note, selecting 'python-pymongo-doc' for glob '*mongo*'
Note, selecting 'python-pymongo' for glob '*mongo*'
Note, selecting 'mongodb-clients' for glob '*mongo*'
Note, selecting 'python-pymongo-ext' for glob '*mongo*'
Note, selecting 'puppet-module-puppetlabs-mongodb' for glob '*mongo*'
Note, selecting 'libmongodb-java' for glob '*mongo*'
Note, selecting 'php-mongodb' for glob '*mongo*'
Note, selecting 'php-doctrine-mongodb-odm' for glob '*mongo*'
Package 'php-doctrine-mongodb-odm' is not installed, so not removed
Package 'php-horde-mongo' is not installed, so not removed
Package 'php-mongo' is not installed, so not removed
Note, selecting 'python-mongoengine' instead of 'python2.7-mongoengine'
Note, selecting 'python-pymongo' instead of 'python2.7-pymongo'
Note, selecting 'python-pymongo-ext' instead of 'python2.7-pymongo-ext'
Package 'python-pymongo-doc' is not installed, so not removed
Package 'python3-pymongo' is not installed, so not removed
Package 'python3-pymongo-ext' is not installed, so not removed
Package 'jmeter-mongodb' is not installed, so not removed
Package 'juju-mongo-tools3.2' is not installed, so not removed
Package 'juju-mongodb' is not installed, so not removed
Package 'juju-mongodb2.6' is not installed, so not removed
Package 'libcatmandu-store-mongodb-perl' is not installed, so not removed
Package 'libmongo-client-dev' is not installed, so not removed
Package 'libmongo-client-doc' is not installed, so not removed
Package 'libmongo-client0' is not installed, so not removed
Package 'libmongo-client0-dbg' is not installed, so not removed
Package 'libmongoc-1.0-0' is not installed, so not removed
Package 'libmongoc-dbg' is not installed, so not removed
Package 'libmongoc-dev' is not installed, so not removed
Package 'libmongoc-doc' is not installed, so not removed
Package 'libmongodb-java' is not installed, so not removed
Package 'libmongodb-perl' is not installed, so not removed
Package 'libmongodbx-class-perl' is not installed, so not removed
Package 'mongodb' is not installed, so not removed
Package 'mongodb-clients' is not installed, so not removed
Package 'mongodb-server' is not installed, so not removed
Package 'php-mongodb' is not installed, so not removed
Package 'puppet-module-puppetlabs-mongodb' is not installed, so not removed
Package 'python-mongoengine' is not installed, so not removed
Package 'python-mongoengine-doc' is not installed, so not removed
Package 'python-pymongo' is not installed, so not removed
Package 'python-pymongo-ext' is not installed, so not removed
Package 'python3-mongoengine' is not installed, so not removed
Package 'ruby-em-mongo' is not installed, so not removed
Package 'ruby-mongo' is not installed, so not removed
Package 'syslog-ng-mod-mongodb' is not installed, so not removed
Package 'juju-mongodb3.2' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
snyper@machine1:~$ sudo apt autoremove *juju*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'juju2' for glob '*juju*'
Note, selecting 'juju-deployer' for glob '*juju*'
Note, selecting 'juju-1' for glob '*juju*'
Note, selecting 'python3-jujuclient' for glob '*juju*'
Note, selecting 'juju-1-default' for glob '*juju*'
Note, selecting 'juju-mongodb2.6' for glob '*juju*'
Note, selecting 'juju-mongo-tools3.2' for glob '*juju*'
Note, selecting 'juju-mongodb3.2' for glob '*juju*'
Note, selecting 'golang-juju-loggo-dev' for glob '*juju*'
Note, selecting 'python-jujubundlelib' for glob '*juju*'
Note, selecting 'juju-core2' for glob '*juju*'
Note, selecting 'juju-local' for glob '*juju*'
Note, selecting 'python3-jujubundlelib' for glob '*juju*'
Note, selecting 'python-txjuju' for glob '*juju*'
Note, selecting 'juju-1.25' for glob '*juju*'
Note, selecting 'juju-core' for glob '*juju*'
Note, selecting 'juju-2.0' for glob '*juju*'
Note, selecting 'juju-mongodb' for glob '*juju*'
Note, selecting 'golang-github-juju-loggo-dev' for glob '*juju*'
Note, selecting 'golang-github-juju-ratelimit-dev' for glob '*juju*'
Note, selecting 'juju' for glob '*juju*'
Note, selecting 'python-jujuclient' for glob '*juju*'
Note, selecting 'juju-local-kvm' for glob '*juju*'
Package 'juju2' is not installed, so not removed
Note, selecting 'juju-1.25' instead of 'juju-1'
Package 'juju-core2' is not installed, so not removed
Package 'golang-juju-loggo-dev' is not installed, so not removed
Package 'golang-github-juju-loggo-dev' is not installed, so not removed
Package 'golang-github-juju-ratelimit-dev' is not installed, so not removed
Package 'juju-deployer' is not installed, so not removed
Package 'juju-mongo-tools3.2' is not installed, so not removed
Package 'juju-mongodb' is not installed, so not removed
Package 'juju-mongodb2.6' is not installed, so not removed
Package 'python-jujubundlelib' is not installed, so not removed
Package 'python3-jujubundlelib' is not installed, so not removed
Package 'juju-1-default' is not installed, so not removed
Package 'juju-1.25' is not installed, so not removed
Package 'juju-core' is not installed, so not removed
Package 'juju-local' is not installed, so not removed
Package 'juju-local-kvm' is not installed, so not removed
Package 'juju-mongodb3.2' is not installed, so not removed
Package 'python-jujuclient' is not installed, so not removed
Package 'python3-jujuclient' is not installed, so not removed
Package 'juju' is not installed, so not removed
Package 'juju-2.0' is not installed, so not removed
Package 'python-txjuju' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Я просто очень смущен тем, почему это происходит, и как я могу удалить все, что вызывает это, из моей системы.
dpkg -l | grep juju
просто выходит на следующую строку.● mongod.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead)
lsof +L1
покажет вам процессы, которые работают и используют удаленные файлы.Ответы:
Исправить это просто.
conjure-up
развернул несколько контейнеров LXC для использования с Juju, и эти контейнеры работали при загрузке и содержалиmongod
процесс, который занимал мою оперативную память.Чтобы исправить это, мы перечисляем существующие контейнеры с
lxc list
.Тогда мы остановим их
lxc stop [containername]
и удалите их с
lxc delete [containername]
и теперь наша проблема была решена.
источник