Skip to content
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

How to reduce memory usage after a transfer. #103

Open
gunhak01 opened this issue May 9, 2023 · 0 comments
Open

How to reduce memory usage after a transfer. #103

gunhak01 opened this issue May 9, 2023 · 0 comments

Comments

@gunhak01
Copy link

gunhak01 commented May 9, 2023

When I tried to transfer binary data, the memory usage went up to twice the data size during the transfer process,
but after void AMQPMessage::setMessage(const char * data,uint32_t length),
it continues to occupy the same amount of memory space as the data size.

I don't think I'm doing anything wrong, because the starting point of onMessage already uses twice the memory of the data size.

At the very least, I'd like the memory usage to decrease accordingly when the next message comes,
but for now, the high memory usage continues, keeping the size of the highest memory usage (currently the largest file).

How can I free this memory after sending?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant