Solved

pthread_create:: Cannot allocate memory

Posted on 2004-10-01
4
1,577 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
Comment Utility
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
Comment Utility
I got it working now. I had to recompile glibc with 1024 threads.
0
 

Accepted Solution

by:
modulo earned 0 total points
Comment Utility
PAQed with points refunded (50)

modulo
Community Support Moderator
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now