Skip to content
Discussion options

You must be logged in to vote

Usually this happens because the huge number of threads spawned by the robotInterface (for each new connection new threads are spawned) are saturating the memory. This because every new thread takes a fixed amount of memory for its stack.

On typical Debian system, every thread by default takes 8192 KiloBytes for its stack. In IIT we decreased the default stack size for thread using the ulimit utility. In particular, you can decrease the default stack size to 4096 KB with:

ulimit -s 4096

In this way you implicitly increase the number of threads that is possible to create in the system.
Anyway, several other strategies can be used to reduce the number of threads created by the robotInterfa…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pattacini
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants