LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 02-17-2007, 01:55 AM   #1
nav_123
LQ Newbie
 
Registered: Feb 2007
Posts: 2

Rep: Reputation: 0
Maximum Thread creation in solaris


Hi ,
My application is Multithreaded and its a 365x24x7 runnning application Its running on a Solaris Blade machine(with 4GB RAM).

It begins working perfectly and runs in perfect manner for may be for 3~4 months and then suddenly the thread creation fails and it remains failed for along time.
Can i know the reason for same.Why does a thread creation fails
I am using posix threads.

Whats the maximum limit for creation of threads in Solaris.
Is this thread limit limited per process?

thnx
 
Old 02-17-2007, 02:33 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
The number of threads is generally "unlimited", i.e. limited only by memory availability.
Are you monitoring memory (physical and virtual) usage ?
What is your threads stack size ?
Are you monitoring the number of threads this process is having ?
 
Old 02-20-2007, 11:40 PM   #3
nav_123
LQ Newbie
 
Registered: Feb 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Hi
Thanks for ur reply.
Am using default attributes to create a thread so the stack size wld be 1Mb for my 32bit machine as it says in man page of pthread_create

how can i monitor the no of threads in this process.do u know any command
the top command and ps command show only the Kernel level threads , that wont tell the exact number of threads i mean user level threads of my application. Correct ?
 
Old 02-21-2007, 02:14 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
prstat will show you the number of threads for each process.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Thread Creation failing arunka Programming 1 07-18-2006 03:27 PM
[thread control suggestion] add a "solved" button that the thread starter can click atom LQ Suggestions & Feedback 3 03-24-2005 11:55 AM
User Creation in solaris siddhartha.das Solaris / OpenSolaris 3 03-05-2005 01:14 PM
Main thread sending notification to child thread rajesh_b Programming 1 09-22-2004 09:15 AM
configure qt thread issue (just compiled qt w/ -thread option) cleff Linux - Software 8 05-07-2004 11:11 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration