-
Notifications
You must be signed in to change notification settings - Fork 1.1k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Build Memory Consumption #1890
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
Comments
Building the whole sdk can use a lot of memory as you have noticed. Can you try using the BUILD_ONLY flag with cmake to reduce the size of what you are trying to build? You will only need to select the services that you want to use. It might look something like this: |
Thanks for the response. I wasn't immediately aware of this switch option. |
If you haven't already can you please try building with that cmake flag. We are currently trying to improve the build process. More details about this can be found here. Also any feedback or suggestions are welcome. |
I tested the suggested approach with
|
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Describe the bug
Building of the libaws-cpp-sdk as a shared lib requires more than 4GB of memory.
This is from a machine with 4GB of physical memory.
Expected behavior
It should be possible to build the SDK with much less memory.
Current behavior
The SDK requires more than 4GB of memory to build.
Steps to Reproduce
Test building the library with 2 or 4GB of memory.
Possible Solution
One solution could be splitting
EC2Client.cpp.o
into multiple smaller objects.AWS CPP SDK version used
aws-sdk-cpp-1.7.266
Compiler and Version used
gcc (Debian 8.3.0-6) 8.3.0
Operating System and version
Linux 4.19.0-14-arm64
The text was updated successfully, but these errors were encountered: