Thanks to visit codestin.com
Credit goes to github.com

Skip to content

descrease python.d.plugin memory usage #5525

Description

@ilyam8
Feature idea summary

python.d.plugin imports a lot of packages (yaml, urllib3 + additional packages if they are present on the system - pymongo, pymysql, etc.) during auto-detection process and they live in memory even if they aren't needed later (module is not running).

For example, python.d.plugin consumes 21.1 MiB on my system (Manjaro) with only example module running.


Since it is almost impossible to remove imported packages from memory, the idea is to have a separate process that will:

  • load configs (yaml package)
  • load module and perform job check (job specific packages)
  • report to main process which modules should be loaded (with at least on successful job)
Expected behavior

python.d.plugin use less memory

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions