-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
bugThis issue is a bug.This issue is a bug.closed-for-stalenessp2This is a standard priority issueThis is a standard priority issueresponse-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 10 days.Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.
Description
Describe the bug
Aws::Client::ClientConfiguration clientConfig;
if (!region.empty())
clientConfig.region = region;
clientConfig.endpointOverride = endpoint;
// 30 s
clientConfig.requestTimeoutMs = 30000;
clientConfig.connectTimeoutMs = 10000;
LOG_DEBUG("Aws region: %s, ak: %s, sk: %s, object_name: %s endpoint: %s bucket:%s", region.c_str(), ak.c_str(), sk.c_str(), key.c_str(), endpoint.c_str(), bucket_name.c_str());
Aws::S3::S3Client s3_client(Aws::Auth::AWSCredentials(ak,sk), clientConfig);
Aws::S3::Model::PutObjectRequest object_request;
object_request.WithBucket(bucket_name).WithKey(key_name);
object_request.SetBody(request_body);
auto put_object_outcome = s3_client.PutObject(object_request);以上是我的调用代码,我会在产生云存的线程里一直调用上边的代码。当流入的带宽有增加的情况下,程序占用的内存会有明显增长。但是在带宽下降后,增长的内存并没有得到释放。
说明:
我的程序是持续运行的,在程序开头调用了 Aws::InitAPI(_options);
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
在带宽下降的情况下,占用的内存能够释放掉。
Current Behavior
程序内存会持续性的增加
Reproduction Steps
leak memory
Possible Solution
No response
Additional Information/Context
No response
AWS CPP SDK version used
1.7
Compiler and Version used
6.1
Operating System and version
centos7
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.closed-for-stalenessp2This is a standard priority issueThis is a standard priority issueresponse-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 10 days.Waiting on additional info and feedback. Will move to "closing-soon" in 10 days.