Max Number of threads per Process in Solaris 8

I'm running into qpplication which crashes with a segfault when the LWP for that process hits about 255, i'm trying to find the maximum number of threads per process using sysconf and its returning -1
#include <unistd.h>
int
main(void)
printf("%ld\n",sysconf(_SC_THREAD_THREADS_MAX));
return 0;
I'm using gcc 3.3.2
If anyone can tell me the maximum number of threads per process I would really appreicate it.
Also the maximum number of open files per process.
Thanks in advance
- Rodrick Brown
- DoITT

Please make sure that you build a
multithreaded program first (check with ldd).
If anyone can tell me the maximum number of threads per process I would
really appreicate it.
Also the maximum number of open files per process. It depends on the architecture (x86/SPARC), OS version,
64 or 32-bit, /etc/system, shell limitations (/usr/bin/ulimit) ...
Search for "rlim_fd_max / rlim_fd_cur" on docs.sun.com too.
HTH,
-vladimir

Similar Messages

  • Max number of chars in process message MSEL?

    Hi, what is the max number of characteristics can be used in process message category's MSEL table? Right now, I am using more than 99 characteristics and I get a short dump DYNPRO_FIELD_CONVERSION. Is it really limited to 99 characteristics and if it is true, is there an OSS note to change it to allow more than 99?
    Thanks and points available

    Please make sure that you build a
    multithreaded program first (check with ldd).
    If anyone can tell me the maximum number of threads per process I would
    really appreicate it.
    Also the maximum number of open files per process. It depends on the architecture (x86/SPARC), OS version,
    64 or 32-bit, /etc/system, shell limitations (/usr/bin/ulimit) ...
    Search for "rlim_fd_max / rlim_fd_cur" on docs.sun.com too.
    HTH,
    -vladimir

  • Kernel parameters -maximum threads per process

    How can we change the kernel parameters also how can we increase the maximum number of threads allowed .
    How can we increase maimum perocess per used id .

    There is no kernel parameter limiting the maximum
    number of threads allowed. If you are talking about
    user level threads, you will run into virtual address
    space limitations at about 3000 for a process
    assuming 32-bit address space and default
    stack size of 1M per thread, and assuming you are
    not using the alternate thread library (see threads(3thr))
    or Solaris 9. If you need more than this many
    threads at the same time, I suspect you are doing something
    incorrectly. Otherwise, try using a smaller stack size
    per thread. If you are running on Solaris 9, or using
    the alternate thread library, both give you a 1x1
    thread model, i.e., each user thread has a corresponding
    kernel entity (lwp). In this case, you will cause
    your machine to hang by eating up all available
    space for lwp's. In either case, the question should be:
    "how do I limit the number of threads per process?", since
    there is currently no limitation other than space.
    In Solaris 9, you can use resource management to
    limit the number of lwp's (and therefore user threads)
    per process.

  • What is the Max Number of Total Work Process that we can Have on  One C.I

    Hi,
    What is the Max Number of Total Work Process that we can have on a Single C.I
    Is there any Limit that We can only have Perticular Number of Total work process ?
    Or it is just Unlimited number of total work process
    Thanks & Regards
    Dan.

    from the system throughput point of view a rule of a thumb is:
    1 up to 4 sometimes 5 workprocesses per CPU.
    (one is used in Benchmarks where you have a very small number of transactions running with a small amount of database accesses)
    you can easily find it out:
    configure 4 WPs per CPU. If you have a number of WP's consuming nearly no CPU time you can reduce the number of WPs.
    regards
    Peter

  • "max number of thread"

    We are running a java web app on a Ubuntu Oracle WebLogic server version 10.3.3.
    The java web app performs long polls with open tcp socket to keep the client connection open. The clients are long polling the WebLogic at 30 seconds.
    Currently we are not able to maintain stability for greater than 24 hours with approximately 200 simultaneous sessions on WebLogic server. Session to me is active client/server tcp connection. We have re-written our application to use continuations, but we are seeing ConcurrentModificationException errors in performance testing.
    Is there any setting in WebLogic for “max number of thread” that can handle?
    Edited by: user9316392 on Jul 8, 2010 11:07 AM

    First, WebLogic since 9.0 has a self-tuning thread pool where WLS will automatically grow and shrink the number of threads based on some internal algorithms. I'm not aware of a hard limit so theoretically there is no max thread count as long as the JVM has memory and WLS thinks more threads will help. You can read up on it here:
    http://www.oracle.com/technology/pub/articles/dev2arch/2006/01/workload-management.html
    Practically, I wouldn't expect more than several hundred threads to be helpful.
    As for your situation, how does WLS become unstable? Out of memory, out of file descriptors, errors on new requests, etc. I think you're going to have to use some JVM tools to see what happens to your JVM over time. Is there a memory leak somewhere, is it non-heap memory, etc. JRockit Mission Control is helpful if running on JRockit. If you're on Sun Hotspot, them presumably you can use some of the Hotspot tools. You'll want to compare the state of the JVM towards the beginning of your load test, but after a slight warm-up period with a snapshot after the load test has been running for a long period of time.

  • Max number of Thread allowed

    I am writing a multi threading program.
    is there any limit on max number of thread allowed?
    if yes, how to check the limit?

    For the language: no. It depends on your memory (every Thread has its own stack, etc.).
    Kind regards,
      Levi

  • Max number of threads in Java?

    Hi,
    I am running into a bug now that I am testing my working code. Basically, my program creates a bunch of objects that talk to each other. Each object is a thread, and at a given time (there is a one object that keeps track of time) a thread may choose to message another thread. My problem is that when I create more objects, my code doesn't run to completion. For example, when I have 10 objects talking to each other, things work fine. But if I have 15, they all run for a little bit, then the program seems to just hang and not do anything.
    Is there a limit as to how many threads I can have? If I was out of memory or something, I'd get an exception, right? But I don't get anything - it just seems like things "freeze up".

    15 threads? shouldn't be a problem.
    I think th emax threads allows runs in thousands..if not ten of thousands.Java process threads itself use about 600 or more threads. howevr, it could also be the underlying system restr8iction on the number of threads allow per process????
    for you case: it's highly likely you run into the max # of threads.
    I can only think of two reasons for your application to freeze:
    1. Deadlock
    if you have an object that is synchronized..than you might have run into a deadlock (race-condition)
    for example:
    Object A has the key for Object X , and waiting for Object Z
    Object B has the key for Object Z, and waiting for Object X
    as you can see..they will never gives up the lock....so you're in a dead lock.
    2. Low memory resource. (Memory - Paging and Thrashing)
    Each of your thread is using up the resouces (memory) and processing power.
    When you reach the max or near max and needs to create more memory..the garbage collector kick in
    and try to reclaim some unused memory. This can slow down your application dramatically if the garbage
    collector is invoke often.
    Also..paging is performed when you reach max memory..the operating system keep on paging your memory (usually happens when there's a lot of threads and not enough memory. If this happen..than it
    can cause your program to becomes freeze like....remeber..each thread is given a small amount of time to
    perform a task..if the time it takes to load a page for a thread is almost equals to context switch time..than
    no work is really done..and your program "freeze"
    solution..redesign you app to prevent thrashing.
    it is likely paging is the culprit..but i would not dismiss deadlock issues.

  • Throttling a file adapter to consume a max number of files per minute

    Is there a way to design a file adapter to throttle its processing bandwidth.
    A simple use case scenario is describes as follows;
    A File Adapter can only consumes a max of 5 files per minute. The producer average throughput is 3 files per minute but during peak times it can send 100 files per min. The peak times occur during end of year or quarterly accounting periods. If the consumer consumes more than 5 files per min the integrity of the environment and data is compromised.
    The SLA for the adapter is to :
    - Each file will be processed within 2 seconds.
    - Maximum File Transactions Per minute is 5
    An example is as follows.
    The producer sends 20 files to its staging directory within a minute. The consumer only processes 5 of these files in the first minute, sleeps then wakes up to consume the next 5 files in the second minute. This process is repeated until all files are processed.
    The producer can send another batch of files when ever it likes. So in the second minute the producer can send another 70 files. The consumer will throttle the files so it only processes 5 of these files every minute.

    Hi,
    If you have a polling frequency set to 2 secs..then controlling it to read only five files a min is difficult.?You can have the polling frequecy changed to 12secs
    or u can schedule a BPEL for every min and use synchronous read operation and loop it 5 times to read 5 files.

  • Max. number of WLCs per WCS

    Hi,
    I know this is a fairly basic question but I can't find answer in WCS Q&A's etc.
    I'm looking at a deployment where there will be many small sites with only 5 or 6 APs and a 2106 WLC. Each site will be in a different mobility group.
    I know WCS licensing counts APs, but is there a max. number of WLCs?
    Thanks, MH

    Hi Mark,
    The supported number of WLC's per WCS is based on the WCS Platform used :)
    Minimum server requirements
    Cisco WCS High-End Server
    • 3000 lightweight access points, 1250 standalone access points, 750 wireless LAN controllers
    • Two Intel® Xeon Dual Core CPU's; 3.0 GHz, 8 GB RAM, 200 GB HDD
    Cisco WCS Standard Server
    • 2000 lightweight access points, 1000 standalone access points, 150 wireless LAN controllers
    • Intel® Dual Core CPU; 3.2 GHz, 4 GB RAM, 80 GB HDD
    Cisco WCS Low-End Server
    • 500 lightweight access points, 200 standalone access points, 50 wireless LAN controllers
    • Intel® CPU; 3.06 GHz, 2 GB RAM, 30 GB HDD
    CiscoWorks WLSE Models 1130-19 or 1133 running Cisco WCS
    • 1500 lightweight access points, 100 wireless LAN controllers
    • Intel Pentium 4 CPU; 3 GHz, 3 GB RAM, 38 GB HDD
    http://www.cisco.com/en/US/prod/collateral/wireless/ps5755/ps6301/ps6305/product_data_sheet0900aecd802570d0.html
    Hope this helps!
    Rob

  • Max number of VMs per free ESXi hypervisor?

    VMware Community,
    I've just installed the free ESXi 5.5 hypervisor and I'm wondering if the same virtual machine limits apply to the standalone scenario as vCenter? Can I actually run 512 VMs? What, if any, is the max number of VMs I can run on a free version of ESXi?

    As of ESXi 5.5 most limitations were removed and only an 8 vCPU limit per virtual machine remains. So unless I'm mistaken, the mentioned 512 VM per host (see http://www.vmware.com/pdf/vsphere5/r55/vsphere-55-configuration-maximums.pdf) apply to the free Hypervisor too.
    André

  • Max number of threads in a jvm

    Is there any constraint for the maximum number of threads that we can
    create in a particular JVM

    Why do you have to worry about that? I don't see a reason to create lots and lots of threads. The OS will usually spend most of the time doing context switches if you create more than a couple of thousand threads.
    Kaj

  • Max number of agents per proxy

    Is there a suggested maximum number of agents per proxy, especially a proxy co-located with the enterprise controller?
    Thanks,
    Tim Reidy

    This would depend on usage patterns and what type of hardware the proxy controller is running.
    According to some whitepapers I have you're looking at :
    For only hardware management - 5000 systems per enterprise controller, 1000 systems per proxy controller
    For hardware, OS, update and virtualization - 3000 systems per enterprise controller, 1000 systems per proxy controller
    hardware specs are:
    Sparc T3's, 16-core T3 processor, 32 GB RAM for the EC, 16 GB RAM for ProxyController
    Intel, Sun Fire x4270's, 2 x Quad-core Nehalem processors, 36 GB RAM for EC, 8 GB RAM for ProxyController

  • Trickles connection; max number of clinet per server; more services

    Dear,
    I found on web something about Trickles connection. Is there some further reading about Trickles connection in Java? Is that just logical concept or it is language-oriented implementation? If it is only logical concept, I suppose it is equal to TCP connection on client side and UDP connection on server side, of course if that is possibly? Can anyone tell me something more about that? Thank you.
    If I am using stateful connection between server and client, what is average number of client which server can serve - you can specify some PC configuration and give number which depends on that PC? Thank you.
    If somewhere are more services which should communicate, but they are on a same PC (suppose all are written in Java). What is the best way of communication between themselves?
    If you can, recommend me some very good book which can give me at least one answer on my questions. It is better, if book is available as e-book.

    It's not supported in Java so you're asking in the wrong place.

  • Max number of instances per Server

    Good morning,
    I've installed Oracle9i in a Windows 2000 Server with 1GB of memory. After that I've created several instances of Oracle DB. With 3 instances my server works acceptably, but after adding two mor instances I've begun to have some perfomance problems and the access speed has considerably decreased, so my question is, what is the maximum number of instances that the same Oracle server can support in order to optimize the access to the DB?
    Thanks in advance.
    Isabel

    Hi,
    I am confronted with a similar problem. ie, we have got several instances on the basis of one application/one instance. I am asked to regroup all these instances to one and only one instance containing several schemas to reduce the number of servers, number of instances and on the way reduce the administrative ( dba ) tasks. As i have got some knowledge of dba, I thought of installing this instance under Oracle 10g like this : an application on its own tablespace and the backup of this tbs via rman. So when an application crashes, I can make use of TSPITR to bring the database to its initial ( stable ) status. My questions are :
    1° any re-initialisation of the database will sanction all the schemas. Is there any
    way to avoid this ?
    2° as different tablespaces be brought to a consistency status different in time via
    TSPITR even if the controlfile happens to be the same ?
    3° if I opt for UNDO management AUTO, there can be only one UNDO TBS
    active at a time. As this won't render me to trouble when i need to recover
    only one application ? or on performance ?
    Any prompt reply will be greatly appreciated.
    Best regards.
    Tiroumalai

  • Max number of devices per app

    I work for a school and we have 200 ipads.  Can I purchase one app and place it on all 200.  I am assuming not, but are there restrictions?

    Repost your question in the iPad in the Enterprise (Schools/Business) forum https://discussions.apple.com/community/ipad/ipad_in_the_enterprise Maybe someone from another school system will answer. Here's one link, but I'm not sure it applies to schools. http://www.idownloadblog.com/2011/08/10/apple-id-limited-10-devices/
     Cheers, Tom

Maybe you are looking for

  • Mac Book Pro goes to sleep without warning

    Hello Everybody: I have a MacBook Pro 1.67 Ghz PowerPC G4, 512 MB SDRAM running 10.4.11. I have this problem. Sometimes, when working, the computer will go to sleep, and the only way to wake it is closing and opening the screen. That's the easy part.

  • Hotspot click  in methods for alv grid list

    Hi all , i written a program for grid display and hotspot click. but it is not capturing the value at the event hotspot click, please anybody help me in capturing the value in the following code. it will be great will it happens soon. REPORT zag_tabl

  • Photoshop CC 2014 reset settings itself to defaults!

    Hello! I use Photoshop CC 2014 which is quite stable. But yesterday, for no apparent reason it reset ALL settings to defaults! All my brushes, actions, patters etc are disappeared! I have not updated because I do not have administrator rights so I do

  • How to send ical invites to outlook

    When I send an ical invite to outlook user, some users ok to accept and others return mail.dat file attachement?

  • Captivate and Articulate

    Hello, I created 2 sets of questions in Captivate using images and roll-overs and correct and incorrect feedback. The first set has 3 questions, T/F, multiple choice and matching. The second set has 2 questions a multiple choice, and matching. I have