P
P
psngut2017-05-17 17:17:36
SSH
psngut, 2017-05-17 17:17:36

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

2 answer(s)
S
Saboteur, 2017-05-17
@saboteur_kiev

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.

V
Vladimir Kuzin, 2017-05-17
@Bobson8

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 question

Ask a Question

731 491 924 answers to any question