Solved

pthread_create:: Cannot allocate memory

Posted on 2004-10-01
4
1,602 Views
Last Modified: 2013-12-06
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
Comment
Question by:ACMuir
4 Comments
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 12206429
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
 

Author Comment

by:ACMuir
ID: 12244986
I got it working now. I had to recompile glibc with 1024 threads.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 14028622
PAQed with points refunded (50)

modulo
Community Support Moderator
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question