-
Notifications
You must be signed in to change notification settings - Fork 260
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
关于内存限制的问题 #8
Comments
因为有时候限制内存太小的话,进程可能启动都有问题,所以可以使用的内存限制大一些,最后超内存是按照实际获取到的用量数字来的。 |
我自己也写了一个类似的,用hello world测试,显示子进程的ru_maxrss是444KB,但rlimit至少要设置4MB才能运行,否则会报 |
@FlyingOnion 因为
|
你好,我想问下child.c 45行
max_memory.rlim_cur = max_memory.rlim_max = (rlim_t) (_config->max_memory) * 2;
乘2是什么原因?
The text was updated successfully, but these errors were encountered: