Answer the question
In order to leave comments, you need to log in
Ssh connection problem? How to get rid?
-bash: fork: Cannot allocate memory
when connecting via ssh at the same time up to 1000 pcs displays this line
server
Processor:
2 x 2.7 GHz
RAM:
1024 MB
what kind of memory is needed to connect more than 5000 ssh at the same time or what settings need to be corrected on the server
Answer the question
In order to leave comments, you need to log in
One connection can take a couple of megabytes. But this is if the user does not launch anything. And so - someone will run a script that sorts the array, someone will read a large file.
You have only 1024 memory, and for 1000 connections this is not enough, especially do not forget that something else will go to the OS itself.
It’s easier for you not to ask on the toaster, but to see live - how many users are connected, how many user processes eat memory and divide, having received the average statistical user, multiply it by 50000. After all, memory consumption depends on the OS bit depth, settings and activity users.
Problems on the server, some process is eating up memory.
https://unixforum.org/index.php?showtopic=117977
searchengines.guru/showthread.php?t=917186
Read it here.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question