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

Anyway to reduce the memory use? #6

Closed
joway opened this issue Apr 26, 2024 · 5 comments
Closed

Anyway to reduce the memory use? #6

joway opened this issue Apr 26, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@joway
Copy link

joway commented Apr 26, 2024

For some binary with large size(like 400MB), it will OOM killed by os. My host have 180GB Memory....

@Zxilly
Copy link
Owner

Zxilly commented Apr 26, 2024

I think there are many tools focused on this, or just use builtin pprof.
Mostly the running memory usage are not related to the binary size.

@cristaloleg
Copy link
Contributor

cristaloleg commented May 15, 2024

Hm, I read OP's message in a different way. Running gsa on a 400Mb binary will result in gsa process get killed due to OOM.

@joway can you confirm that?

@Zxilly Zxilly added bug Something isn't working and removed not related labels May 15, 2024
@Zxilly
Copy link
Owner

Zxilly commented May 15, 2024

Oh, I understand what you means now.
Are there any samples you can provide? I'm analysing about 200 megabytes of k8s binary and it's working fine.

@Zxilly
Copy link
Owner

Zxilly commented May 15, 2024

One reason I can imagine is that the decompile creates too many go routine in a split second, consuming all the available memory, but I don't think it's likely to squeeze a machine with 180g of RAM.
I'll try to put a limit on it and please let me know if this fixes your problem.

@Zxilly
Copy link
Owner

Zxilly commented May 16, 2024

A configurable gc parameter was added in 1.0.5

@Zxilly Zxilly closed this as completed May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants