{"action":"opened","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/4846","repository_url":"https://api.github.com/repos/lxc/lxd","labels_url":"https://api.github.com/repos/lxc/lxd/issues/4846/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/4846/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/4846/events","html_url":"https://github.com/lxc/lxd/issues/4846","id":345510319,"node_id":"MDU6SXNzdWUzNDU1MTAzMTk=","number":4846,"title":"Memory leak?","user":{"login":"leonid-xorcom","id":24544894,"node_id":"MDQ6VXNlcjI0NTQ0ODk0","avatar_url":"https://avatars0.githubusercontent.com/u/24544894?v=4","gravatar_id":"","url":"https://api.github.com/users/leonid-xorcom","html_url":"https://github.com/leonid-xorcom","followers_url":"https://api.github.com/users/leonid-xorcom/followers","following_url":"https://api.github.com/users/leonid-xorcom/following{/other_user}","gists_url":"https://api.github.com/users/leonid-xorcom/gists{/gist_id}","starred_url":"https://api.github.com/users/leonid-xorcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonid-xorcom/subscriptions","organizations_url":"https://api.github.com/users/leonid-xorcom/orgs","repos_url":"https://api.github.com/users/leonid-xorcom/repos","events_url":"https://api.github.com/users/leonid-xorcom/events{/privacy}","received_events_url":"https://api.github.com/users/leonid-xorcom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-29T07:45:00Z","updated_at":"2018-07-29T07:45:00Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nGithub issues are used for bug reports. For support questions, please use [our forum](https://discuss.linuxcontainers.org).\r\n\r\nPlease fill the template below as it will greatly help us track down your issue and reproduce it on our side.  \r\nFeel free to remove anything which doesn't apply to you and add more information where it makes sense.\r\n-->\r\n\r\n# Required information\r\n\r\n * Distribution: Ubuntu \r\n * Distribution version: 18.0.4\r\n * The output of \"lxc info\":$ lxc info\r\nconfig:\r\n  core.https_address: 192.168.0.206:8443\r\n  core.trust_password: true\r\n  images.auto_update_interval: \"0\"\r\napi_extensions:\r\n- storage_zfs_remove_snapshots\r\n- container_host_shutdown_timeout\r\n- container_stop_priority\r\n- container_syscall_filtering\r\n- auth_pki\r\n- container_last_used_at\r\n- etag\r\n- patch\r\n- usb_devices\r\n- https_allowed_credentials\r\n- image_compression_algorithm\r\n- directory_manipulation\r\n- container_cpu_time\r\n- storage_zfs_use_refquota\r\n- storage_lvm_mount_options\r\n- network\r\n- profile_usedby\r\n- container_push\r\n- container_exec_recording\r\n- certificate_update\r\n- container_exec_signal_handling\r\n- gpu_devices\r\n- container_image_properties\r\n- migration_progress\r\n- id_map\r\n- network_firewall_filtering\r\n- network_routes\r\n- storage\r\n- file_delete\r\n- file_append\r\n- network_dhcp_expiry\r\n- storage_lvm_vg_rename\r\n- storage_lvm_thinpool_rename\r\n- network_vlan\r\n- image_create_aliases\r\n- container_stateless_copy\r\n- container_only_migration\r\n- storage_zfs_clone_copy\r\n- unix_device_rename\r\n- storage_lvm_use_thinpool\r\n- storage_rsync_bwlimit\r\n- network_vxlan_interface\r\n- storage_btrfs_mount_options\r\n- entity_description\r\n- image_force_refresh\r\n- storage_lvm_lv_resizing\r\n- id_map_base\r\n- file_symlinks\r\n- container_push_target\r\n- network_vlan_physical\r\n- storage_images_delete\r\n- container_edit_metadata\r\n- container_snapshot_stateful_migration\r\n- storage_driver_ceph\r\n- storage_ceph_user_name\r\n- resource_limits\r\n- storage_volatile_initial_source\r\n- storage_ceph_force_osd_reuse\r\n- storage_block_filesystem_btrfs\r\n- resources\r\n- kernel_limits\r\n- storage_api_volume_rename\r\n- macaroon_authentication\r\n- network_sriov\r\n- console\r\n- restrict_devlxd\r\n- migration_pre_copy\r\n- infiniband\r\n- maas_network\r\n- devlxd_events\r\n- proxy\r\n- network_dhcp_gateway\r\n- file_get_symlink\r\n- network_leases\r\n- unix_device_hotplug\r\n- storage_api_local_volume_handling\r\n- operation_description\r\n- clustering\r\n- event_lifecycle\r\n- storage_api_remote_volume_handling\r\n- nvidia_runtime\r\napi_status: stable\r\napi_version: \"1.0\"\r\nauth: trusted\r\npublic: false\r\nauth_methods:\r\n- tls\r\nenvironment:\r\n  addresses:\r\n  - 192.168.0.206:8443\r\n  architectures:\r\n  - x86_64\r\n  - i686\r\n  certificate: |\r\n    -----BEGIN CERTIFICATE-----\r\n    MIIFOzCCAyOgAwIBAgIRAJLCzCsQRqn2ojy/kD7EMLgwDQYJKoZIhvcNAQELBQAw\r\n    MjEcMBoGA1UEChMTbGludXhjb250YWluZXJzLm9yZzESMBAGA1UEAwwJcm9vdEB3\r\n    ZXlsMB4XDTE4MDYyNTE0MDMyMFoXDTI4MDYyMjE0MDMyMFowMjEcMBoGA1UEChMT\r\n    bGludXhjb250YWluZXJzLm9yZzESMBAGA1UEAwwJcm9vdEB3ZXlsMIICIjANBgkq\r\n    hkiG9w0BAQEFAAOCAg8AMIICCgKCAgEArBqX3Gj9XiTfv48s09GBk8ulAm2tyZyv\r\n    ljb/AR3agelbTYDEJGQ+verJYPe62/CnnXg5zQWaSUHbjAg6Hxyj+QUKtG5zHcCg\r\n    lX2TbQ9bXcj1G6oPwqy6w3h9tWYegZFcNapxHmag9waPzNDSfwa6qlZD3peTVndF\r\n    XnqJMmEpnCK2OddeIxaRsl0hDurXfbjI0dE5nCiDI5HDlAYnWxXYAM0O7axVA+U2\r\n    LHWKEPRwegTzqY7mwa6hTKlxXWu/k9C2SHeCFn+iPH2Rq32eibvf3UFvGQCazB44\r\n    rU8sRW/5xXXwCI4XrTJaA1sA7X6ta6Mbiw5lHCRWnPgmtDAnvKYV2OewCiPNaO1i\r\n    hLLMXNutH4J4zd9aCAD7b6EycXrJLltNSIeyQ2t8ImMNDj4b+0fOHNGrl4Kcpz/Z\r\n    VEBZP0IIImlVQiD9TJlBe2jaBY4j18jLqcVDcFKu323RwFBEwFh6sjcsOmE487P4\r\n    Smgdo7NWuASzpFNOfCi0IRKeadC//YRqVQYSBE2ZcKA4vp+ziXgggrz2Wt9hDh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certificate_fingerprint: 2e3d7a97ab8c4368ff32ccd7349349502b812c9d583aa8a79ca5148bcc389564\r\n  driver: lxc\r\n  driver_version: 3.0.1\r\n  kernel: Linux\r\n  kernel_architecture: x86_64\r\n  kernel_version: 4.15.0-23-generic\r\n  server: lxd\r\n  server_pid: 24830\r\n  server_version: 3.0.1\r\n  storage: lvm\r\n  storage_version: 2.02.176(2) (2017-11-03) / 1.02.145 (2017-11-03) / 4.37.0 / ./configure\r\n    --build=x86_64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man\r\n    --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules\r\n    --libdir=${prefix}/lib/x86_64-linux-gnu --libexecdir=${prefix}/lib/x86_64-linux-gnu\r\n    --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --exec-prefix=\r\n    --bindir=/bin --libdir=/lib/x86_64-linux-gnu --sbindir=/sbin --with-usrlibdir=/usr/lib/x86_64-linux-gnu\r\n    --with-optimisation=-O2 --with-cache=internal --with-clvmd=corosync --with-cluster=internal\r\n    --with-device-uid=0 --with-device-gid=6 --with-device-mode=0660 --with-default-pid-dir=/run\r\n    --with-default-run-dir=/run/lvm --with-default-locking-dir=/run/lock/lvm --with-thin=internal\r\n    --with-thin-check=/usr/sbin/thin_check --with-thin-dump=/usr/sbin/thin_dump --with-thin-repair=/usr/sbin/thin_repair\r\n    --enable-applib --enable-blkid_wiping --enable-cmdlib --enable-cmirrord --enable-dmeventd\r\n    --enable-dbus-service --enable-lvmetad --enable-lvmlockd-dlm --enable-lvmlockd-sanlock\r\n    --enable-lvmpolld --enable-notify-dbus --enable-pkgconfig --enable-readline --enable-udev_rules\r\n    --enable-udev_sync\r\n  server_clustered: true\r\n  server_name: weyl\r\n\r\n\r\n# Issue description\r\n\r\nIn the 'top' utility output I see that LXD process memory consumption is growing up with the time. \r\nThus, immediately after start:\r\n\r\n-----------------------------------------------------------\r\nMem Type      | After Start     |  In a week      |\r\n-------------------|------------------|---------------------|\r\nVirtual             | 1282568       | 2172968         |\r\nResidential     |  34348          | 790276           |\r\nShared           |  21052          |  23232            |\r\n-------------------|------------------|---------------------|\r\n\r\n# Steps to reproduce\r\nRestart the LXD service and just monitor the memory consumption. \r\n\r\n# Information to attach\r\n\r\n - [ ] Any relevant kernel output (`dmesg`)\r\n - [ ] Container log (`lxc info NAME --show-log`)\r\n - [ ] Container configuration (`lxc config show NAME --expanded`)\r\n - [X] Main daemon log (at /var/log/lxd/lxd.log\r\n[lxd.log.tar.gz](https://github.com/lxc/lxd/files/2238589/lxd.log.tar.gz)\r\n or /var/snap/lxd/common/lxd/logs/lxd.log)\r\n - [ ] Output of the client with --debug\r\n - [ ] Output of the daemon with --debug (alternatively output of `lxc monitor` while reproducing the issue)\r\n"}}
{"actor":{"display_login":"leonid-xorcom"}}