-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory Leak in EdgeHub module #6997
Comments
Hi @KhantNayan, sorry for the late answer. Do you see this growing indefinitely (so it never stops)? We have long haul tests and we did not notice this, but let me it up and see. I would think that it is related to caching and the memory gets freed when it is scarce. |
Thank you @vipeller for the response. |
Attached support bundle |
@KhantNayan Hi, I see from the support bundle that there are many modules. Can you give me a hint about the message pattern, e.g. that these modules use module to module messages and what message size/message rate? I don't need the exact schema, just want to setup some similar test, I want to find the spot where it leaks, we don't see leaking in out long running tests |
This issue is being marked as stale because it has been open for 30 days with no activity. |
Microsoft has reproduced this problem on multiple occasions without succeeding in resolving it. |
Any updates on this incident ? |
Hi @spark-iiot, this issue is not actively being investigated. I asked some additional information on May 8th about your setup, so I could run a test with similar module number/behavior. We have long running tests and those don't show memory leak. Those send through several 10 thousands of messages through several days. We had memory leak problems in the past, resulted by different bugs, RocksDB, etc - some of them were found and fixed, others were worked around. These were triggered by specific use cases. Without knowing your use case, I will not be able to repro it and see what may cause this. I need to run something similar than you do, so then I can check with memory profiling that what holds on the memory. Please, give some information what you actually do:
Let me know your setup better, so we can create better tests to repro |
Expected Behavior
Memory utilization by EdgeHub module should be constant
Current Behavior
Memory utilization by EdgeHub module is increasing
Steps to Reproduce
Context (Environment)
Output of
iotedge check
Configuration checks (aziot-identity-service)
√ keyd configuration is well-formed - OK
√ certd configuration is well-formed - OK
√ tpmd configuration is well-formed - OK
√ identityd configuration is well-formed - OK
√ daemon configurations up-to-date with config.toml - OK
√ identityd config toml file specifies a valid hostname - OK
‼ aziot-identity-service package is up-to-date - Warning
Installed aziot-identity-service package has version 1.4.1 but 1.4.3 is the latest stable version available.
Please see https://aka.ms/aziot-update-runtime for update instructions.
√ host time is close to reference time - OK
√ preloaded certificates are valid - OK
√ keyd is running - OK
√ certd is running - OK
√ identityd is running - OK
√ read all preloaded certificates from the Certificates Service - OK
√ read all preloaded key pairs from the Keys Service - OK
√ check all EST server URLs utilize HTTPS - OK
√ ensure all preloaded certificates match preloaded private keys with the same ID - OK
Connectivity checks (aziot-identity-service)
√ host can connect to and perform TLS handshake with iothub AMQP port - OK
√ host can connect to and perform TLS handshake with iothub HTTPS / WebSockets port - OK
√ host can connect to and perform TLS handshake with iothub MQTT port - OK
Configuration checks
√ aziot-edged configuration is well-formed - OK
√ configuration up-to-date with config.toml - OK
√ container engine is installed and functional - OK
√ configuration has correct URIs for daemon mgmt endpoint - OK
‼ aziot-edge package is up-to-date - Warning
Installed IoT Edge daemon has version 1.4.3 but 1.4.9 is the latest stable version available.
Please see https://aka.ms/iotedge-update-runtime for update instructions.
√ container time is close to host time - OK
√ DNS server - OK
‼ production readiness: logs policy - Warning
Container engine is not configured to rotate module logs which may cause it run out of disk space.
Please see https://aka.ms/iotedge-prod-checklist-logs for best practices.
You can ignore this warning if you are setting log policy per module in the Edge deployment.
√ production readiness: Edge Agent's storage directory is persisted on the host filesystem - OK
√ production readiness: Edge Hub's storage directory is persisted on the host filesystem - OK
√ Agent image is valid and can be pulled from upstream - OK
√ proxy settings are consistent in aziot-edged, aziot-identityd, moby daemon and config.toml - OK
Connectivity checks
√ container on the default network can connect to upstream AMQP port - OK
√ container on the default network can connect to upstream HTTPS / WebSockets port - OK
√ container on the IoT Edge module network can connect to upstream AMQP port - OK
√ container on the IoT Edge module network can connect to upstream HTTPS / WebSockets port - OK
32 check(s) succeeded.
3 check(s) raised warnings. Re-run with --verbose for more details.
2 check(s) were skipped due to errors from other checks. Re-run with --verbose for more details.
Device Information
Runtime Versions
iotedge version
]: 1.4.3docker version
]: 20.10.18+azure-2Additional Information
10-20 MB increasing at every 4 hours
Below are the memory utilization be Edge Hub
The text was updated successfully, but these errors were encountered: