Ubuntu 16.04.2 - O MongoDB não está instalado, mas há 2 processos mongod comendo RAM

0

Estou executando uma instalação do Ubuntu 16.04.2 que estou usando (Landscape, Juju, LXD). Recentemente, nos últimos dias, após a reinicialização, o sistema (i7 5820K, 16Gb DDR4) irá parar. Glances e gnome-system-monitor mostram dois processos, ambos pertencentes ao root, chamados de mongod e cada um deles consumiu quase seis gigabytes de RAM.

Eu uso muitas abas do Firefox, então isso significa que meu uso de memória atinge quase 100% e as coisas diminuem drasticamente devido ao uso do meu swapfile.

sudo killall mongod não mata os processos. Apenas executar sudo pkill [PID] realmente os mata, e mesmo depois disso, às vezes, os dois processos retornam, embora desta vez usando apenas cerca de 30Mb de RAM cada.

Além disso, não instalei o MongoDB nem nada relacionado a ele. A execução de apt autoremove usando *mongo* não mostra nada instalado.

Eu estava curioso para saber se Juju tinha alguma coisa a ver com isso, então eu desinstalei tudo relacionado a Juju e Landscape. No entanto, eu reiniciei algumas vezes desde então e ainda existem esses processos.

Aqui está a prova de que nada relacionado ao Juju ou MongoDB está instalado no meu sistema:

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.

Estou muito confuso sobre o porquê isso está acontecendo e como posso remover o que está causando isso do meu sistema.

    
por Snyper 26.05.2017 / 06:56

1 resposta

0

A correção para isso é simples. conjure-up implementou vários contêineres LXC para uso com o Juju, e esses contêineres estavam sendo executados na inicialização e continham o processo mongod que estava consumindo minha RAM.

Para corrigir isso, listamos os contêineres existentes com lxc list .

Depois, paramos com lxc stop [containername]

e exclua-os com lxc delete [containername]

e agora o nosso problema foi resolvido.

    
por Snyper 30.05.2017 / 21:27