P
P
Pavel Kulaga2020-02-19 19:36:01
macOS
Pavel Kulaga, 2020-02-19 19:36:01

How to limit process memory allocated via malloc on Mac os?

I need to limit the memory to the process so that malloc would return zero when trying to allocate.
unlimit - tried - does not work.
I found on the Internet that it seems possible using launchd , maybe someone knows how to do this using launchd or some other way?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question