Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a problem that so far I am unable to solve.
For the lab tests I need to run about 3000 instances of a single daemon(yes!). The daemon does not consume much memory, about 20% when 2000 instances are present. However when I reach 3000 it just says -bash: fork: Cannot allocate memory. The memory aint a problem for the server it has 32gb ram.
ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 128338
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 100000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 128338
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
anyone has ideas on how to increase the quota of daemon instances?
update:
looks like I can't run it fully in the background, after doing ./testlabs05 -f config.xml&
it does not fully go into the background and jobs -l still returns nothing.
is there a way to run it as a "full time" job in a background without actually making modifications to a code?
Last edited by DreadMaster; 10-18-2017 at 02:29 AM.
Welcome to LQ!!! Swap ok? Look into tools like:
free; htop; vmstat; tricky ps switches, smem ...
From this web-search: linux memory usage monitor per process details
(add Goo's intitle: or DDG's t: to memory; no space after colon)
Let us know... For a LinuxPHD, use sysdig.com
(Which distro? Is sysdig in your repos?)
its not the python script that needs the upkeep but to daemonise the process of a binary.
nohup and & doesn't help.
I am sorry that it has gone to this simpler matter, will welcome all the help!
Thank's ahead.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.