Solved

Linux, limits.conf

Posted on 2013-11-14
3
228 Views
Last Modified: 2013-11-15
I often set up my limits.conf to a very high nproc level

      xxx           soft    nproc          16384
      xxx           hard    nproc          16384

Open in new window


How can I do this with threads.  What is the default leve3l for threads and how would I extend it.

Thanks
0
Comment
Question by:Los Angeles1
  • 2
3 Comments
 
LVL 62

Accepted Solution

by:
gheist earned 500 total points
ID: 39648173
Actually
xxx - nproc 16384

Threads use local stacks and a bit of info in process's own stack
do we talk java here?
0
 

Author Comment

by:Los Angeles1
ID: 39648677
No,  there is no java.  Can I assume there is no limit on the number of threads available ?
0
 
LVL 62

Expert Comment

by:gheist
ID: 39649271
It just uses some memory from parent thread and some to hold environment and first 3 file handles.
Say 16K for thread should be allowed in parent's stack.

You have to explore event handling in your program. that way you can manage without that many threads.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Fine Tune your automatic Updates for Ubuntu / Debian
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will giveā€¦
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.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

820 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