[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1817
  • Last Modified:

pthread_create:: Cannot allocate memory

I have a multithreaded "c" program that seems to work perfect on some servers and gives me this error on other servers.
pthread_create:: Cannot allocate memory

I am running this from the command prompt on a linux Red Hat 9.0 server.
How can I solve this problem?
Brian
0
ACMuir
Asked:
ACMuir
1 Solution
 
owensleftfootCommented:
Have a look at /etc/security/limits.conf on the servers it wont run on and check "U", which is the max number of threads a user can open. Man limits.conf will give you more info.
0
 
ACMuirAuthor Commented:
I got it working now. I had to recompile glibc with 1024 threads.
0
 
moduloCommented:
PAQed with points refunded (50)

modulo
Community Support Moderator
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now