Number of threads for imap process

What is the resonable nimber of threads for imap procerss?
I have 2 impad procrss and number of threads more then 200!!!
I think this is to much for 700-900 concurrent impa connection&
What is the reasons for this big number

Actually, your configuration sounds pretty close to correct for your load.
We allocate up to 250 threads, as many clients connect more than one time per session, and open more than one folder at a time.
I would not mess with the number of threads.
If most of your users have small numbers of messages and folders, you may be able to get away with a single imap process, but if you have several processors, two is fine, too.
Is there a problem or error situation you're trying to work around? What exact version of Messaging do you use? (imsimta version gets that)

Similar Messages

  • Maximum number of threads in a process

    Hello,
    we are currently running on Solaris 9 an application compiled
    with C++ compiler SunStudio 8.
    Our application crash after running 2990 concurrent threads with the system
    error
    ENOMEM (Not enough space).
    In the same time the real memory free was around 8 Gb.
    So what kind of resource was missing ?
    Is there any limit of concurrent threads inside a process ?
    Thanks for any tips.
    Yaakov Berkovitch
    [email protected]

    Hello,
    we are currently running on Solaris 9 anapplication
    compiled
    with C++ compiler SunStudio 8.
    Our application crash after running 2990concurrent
    threads with the system
    error
    ENOMEM (Not enough space).
    In the same time the real memory free was around 8
    Gb.
    So what kind of resource was missing ?
    Is there any limit of concurrent threads inside a
    process ?It could the memory available to the process. You
    don't say if it's a 32bit or 64bit application. If
    it's 32 bit, it could well be out of memory and/or
    stack.
    A+
    PaulOur application is 32-bit.
    But regarding the memory the server has a big mount of free memory so I cannot understand why the OS failed creating a new thread.
    BTW, the system call that failed was thr_create.
    A+ says that "vous parlez francais !!!!"

  • High number of LWPs for a process

    I have a high number of LWPs created for a process (say 70,000) at times .
    I would like to know the reason for such high LWP creation and how do i minimize this.
    Pls help

    LWPs are only created for a process when it requests it (via system calls).
    As an administrator, there's not much you can do to modify the behavior of code at that level. You'd need to examine the source to see why that's occuring.
    You could limit resources (like memory), but it may not behave well when it hits the resource limit.
    Darren

  • How to set the number of sockets for batch processing at runtime?

    Hello all,
    I need to change the execution model at runtime. I have achieved this by setting the 'ModelPath' property of the sequence file at runtime. When I set the sequence file model as batchmodel, i need to set the number of test sockets also dynamically. How can this be done? Once i set the number of sockets, i would also have to set the UUT serial number for each socket. Please help me out in solving this.
    Thanks and Regards
    Madhu Srinivasan.

    Hi Madhu,
        You can do this by inserting a sequence file callback into your main sequence and choose the ModelOptions callback. You can then use the expression step to set the "Parameters.ModelOptions.NumTestSockets" value to whatever you want. If you then use the Test UUTs execution entry point you will be prompted for serial numbers automatically. You could also use this same procedure but alter the ModelOptions callback in the process model directly, either way works just as well but I think that using a sequence file callback gives a bit more flexibility in the system.
    Hope this helps,
       Nick

  • Setting number of threads for each file sender adapter?

    Hi guys,
    I need to ensure file processing order based on a filename, so if I put 3 files named 1,2,3 to the directory, the 1 must be processed 1st etc..  But file adapters work in threads. What I need, is to set up each file adapter to work in just 1 thread. I then takes files one by one based on the name (config setting) and it's what I need.
    Is this possible?
    Thank you,
    Olian

    Hi,
    You need to pickup the files in sequence with the file adapter. But as you have said File adapter works with multiple threads/ instances simultaneously.
    So to overcome this kind of activty you can Either use BPM for processing of file or with the help of Scripting commands at OS level move the files to Source directory as one by one.
    In BPM, you have to include 3 receiver steps one by one so as per the sequence it will pick up the files.
    Thanks
    Swarup

  • User Threads for concurrent processing

    Is it adviasble to create threads inside Session beans. I want to query 2 different
    database/dataservers concurrently. These are huge quries. I have heard that creating
    user threads are not advisable and against J2EE. What are other ways of doing
    concurrent processing in EJB.

    Rajesh wrote:
    Rob,
    We need to build a session bean which would basically query 2 different
    data base. This seesion bean then collects the result from these queries to come
    back so that we can post it on the web.
    We can use JMS and callback interface but the problem here is these queries
    bring back large data. With JMS we would be basically using double the memory.
    One for storing data in the JMS and then in the session bean. With threads we
    can make these threads write to the same memory/datastructure. You don't need to store the data in JMS. Just use JMS to do the async
    work and the notification when the work is done. Your code that picks
    up the response/data can still consult your datastructure.
    -- Rob
    >
    >
    >
    Rob Woollen <[email protected]> wrote:
    Right, it's generally not recommended that you create threads.
    What are your desired semantics? JMS is a nice way to do asynchronous
    work.
    Should the session bean wait for the queries to return, or is there some
    callback interface?
    -- Rob
    hsejar wrote:
    Is it adviasble to create threads inside Session beans. I want to query2 different
    database/dataservers concurrently. These are huge quries. I have heardthat creating
    user threads are not advisable and against J2EE. What are other waysof doing
    concurrent processing in EJB.

  • 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.

  • How to use SquirrelMail and Require SSL for IMAP Service?

    Hello,
    Mac OS X Server v.10.4.9 – Open Directory Master
    Providing POP, IMAP, SMTP, web services including webmail via SquirrelMail.
    PHP v.4.4.4 Nov. 1, 2006
    OpenSSL v.0.9.7l Sept. 2006
    I need to require SSL for IMAP access, however, I also need to provide webmail access. SquirrelMail does support TSL it seems and that can be configured from /etc/squirrelmail/config/conf.pl and is discussed briefly here: http://www.squirrelmail.org/wiki/SquirrelMailIMAPS .
    When I turn on TSL on SquirrelMail and change the IMAP port number to 993 attempting to log into SquirrelMail provides the following error:
    Bad request: IMAP server does not appear to support the authentication method selected. Please contact your system administrator.
    According to the above noted page from the SquirrelMail site one needs PHP 4.3 and SSLv3 in order for TSL to work, one must also connect to the IMAP server over port 993. Requirements I appear to meet.
    So – how can one require the use of SSL for IMAP and still provide webmail access via SquirrelMail?
    I have reviewed these three threads:
    http://discussions.apple.com/thread.jspa?threadID=912841&tstart=75
    http://discussions.apple.com/thread.jspa?messageID=1457773&#1457773
    http://discussions.apple.com/thread.jspa?messageID=3921004&#3921004
    However they do not answer the fundamental question of how to use SquirrelMail with SSL required by IMAP. Essentially the conversation revolves around working around the SSL requirement or forgoing it.
    Thank you for any assistance.

    David,
    Yet from time to time these same users are in a
    circumstance where they need to use webmail, thus
    SquirrelMail needs to work. I am not trying to
    secure webmail by requiring SSL.
    I see, your problem. In this particular case there is a workaround.
    Use different ports for postfix and cyrus limited to localhost, thus catering only to SquirrelMail, thus not needing TLS.
    Roughly do this (this is just off the top of my head, may contain errors):
    For SMTP / Postfix:
    Edit /etc/postfix/master.cf
    and add:
    465 inet n - n - - smtpd
    -o smtpdrecipientrestrictions= permit_mynetworks,reject
    -o mynetworks=127.0.0.1/32
    -o smtpdenforcetls=no
    # This will create a port 465 (if you use this alreay pick another one. choose the number wisely, depending ony what is in use on your server)
    # This port is only accessible to IP number in "mynetworks"
    For IMAP / Cyrus
    Edit /etc/cyrus.conf and add (below imap):
    imaplocal cmd="imapd -C /etc/imapd-local.conf" listen="127.0.0.1:imap" prefork=0
    Next duplicate /etc/imapd.conf and name it imapd-local.conf
    Edit /etc/imapd-local.conf
    Change
    tlsserveroptions: require
    to
    tlsserveroptions: use
    Next edit:
    /etc/services
    and create a port called "imaplocal"
    (you could probably recycle 585 wich is deprecated, check what is in the services file, make sure no duplicate port numbers).
    should look something like:
    imaplocal 585/udp
    imaplocal 585/tcp
    When done with all config files:
    Save & restart mail services
    Point SquirrelMail to the new ports wich should only be accessible to localhost (check with an external client if it holds
    Sorry for the "draft style" post, but I don't have much time.
    Just ask, if anything isn't clear.
    HTH,
    Alex

  • Setting the right number of thread count

    Hi,
    What's the right number of thread for a server that has 2 CPU? I know the default setting for Dev is 15 and Production is 25. From what I read in the Performance Tuning Guide, it should be somewhere around the number of CPUs on the machine? Is that right? Or keep the default?

    Statement st = con.createStatement();
    st.setFetchSize(no_of_rows_here);
    ResultSet rs = st.executeQuery(query);Sudha

  • Table growth for Async process

    Hello,
    Using SOA/BPEL 11g
    Have deployed Async Bpel process and want to know (since this is async -- it must be saving or persisting state in some database tables ) what are the database table names THAT Async BPEL might be storing/persisting the STATE (for future use). Also, does anyone have the stats for "Table Growth" (MB) per xx number of request for BPEL process ?
    thx
    pp

    Below are the table names were data is stored:
    AUDIT_DETAILS
    AUDIT_TRAIL
    COMPOSITE_INSTANCE
    COMPOSITE_INSTANCE_ASSOC
    COMPOSITE_INSTANCE_FAULT
    CUBE_INSTANCE
    CUBE_SCOPE
    DLV_MESSAGE
    DLV_SUBSCRIPTION
    DOCUMENT_CI_REF
    DOCUMENT_DLV_MSG_REF
    HEADERS_PROPERTIES
    INSTANCE_PAYLOAD
    REFERENCE_INSTANCE
    REJECTED_MESSAGE
    REJECTED_MSG_NATIVE_PAYLOAD
    WFTASK
    WI_FAULT
    WORK_ITEM
    XML_DOCUMENT
    XML_DOCUMENT_REF
    There are no fixed guidelines for the database growth. Database utilization is different for each process depending upon the payload sizes.

  • 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

  • HT4061 I have tried for 3 days now to restore my iPhone 4, because someone changed my password, and it is impossible. I tried contacting Apple, but need my serial number to even begin the process of chatting with them.  How do I contact Apple, or get my S

    Someone changed my password for my iPhone 4. I have attempted to restore my device now for 3 days, continually being hooked up to the computer, continually having to restart, continually having to power off and then place the device in DFU mode.  I would LOVE to speak with someone from Apple, the only problem is to even begin to wait in line to chat with an Apple representative, I need my device's serial number to begin the lovely process of waiting in line.  How do I A)-Get the device's serial number when it is locked? B)-Begin to wait in line without said serial number?  I am beginning to think it would be much easier to just report the device as stolen, then contact my carrier and have them replace this device.  Am I doing something wrong for it to take 3+ days to restore? It has the most current, up to date software on the device, why in the world would it take 3+ days to simply restore to factory settings?

    If you open it to take out the battery from the iPhone then you forfeit all service for whatever reason from Apple in the future.
    Have you attempt to connect it to your computer and then restore it from iTunes on your computer?

  • How to dynamically load any number of VIs and spawn a new thread for each

    Hi,
    I'm trying to spawn several TCP listening threads, the number of which is dynamic based upon a configuration file which is read at runtime. With with the included code, I am attempting to open and call these listening threads from a for loop, thinking I could run through all the calls I need to make and be finished. However, since the subVI I'm calling (wait_for_and_process_messages.vi) runs a continuous while loop, the for loop in the parent VI does not continue as it is waiting for the first call to finish. 
    How can I design this to simply spawn off a thread each time I call the subVI and continue? The idea is to allow the number of threads be dynamic so it is not so easy compared to knowing the number of needed threads ahead of time. However, I do need to feed data to each call's nodes so I can't just use the "run" method unless there's a way to feed data to the nodes while using "run."
    Attachments:
    database_communicator.vi ‏12 KB

    Check out this Nugget.
    It contains code that should help you get started.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Create standby maximum number of logfiles for each thread

    The oracle doc states this equation for appropriate number of standby redo log file groups
    (maximum number of logfiles for each thread +1) * maximum number of threads
    How do you get the maximum number of logfiles for each thread and the max thread?
    Thanks!

    If you are running RAC you can, in theory, be running with a diferent count
    of Online Redo Logs in each thread (instance).
    However, normally, you would have the same number of Redo Logs in each
    thread.
    The theoretical max is prescribed at the CREATE DATABASE and can be
    changed with a CREATE CONTROLFILE. If you do an
    ALTER DATABASE BACKUP CONTROLFILE TO TRACE
    the sql script in the tracefile shows the maximum number of logs and members.

  • Maximum number of logfiles for each thread

    Hi all,
    When I configure a Standby Redo Log, to determine the appropriate number of standby redo log file groups, I should use the following formula:
    appropriate number of standby redo log file groups: (maximum number of logfiles for each thread + 1) * maximum number of threads
    My question is: how can I determine the maximum number of logfiles for each thread ? Is it the online redo log file per group? or total of redo log files in all groups?
    SQL> ed
    Wrote file afiedt.buf
      1* select group#, thread#, sequence#, members from v$log
    SQL> /
        GROUP#    THREAD#  SEQUENCE#    MEMBERS
             1          1         40          1
             2          1         38          1
             3          1         39          1

    user8994263 wrote:
    Hi,
    If you have 5 redo log groups on primary, do you suggest to create 6 standby redo log groups on standby?
    If yes, why ?
    -KalidasYou did two mistakes
    1) Responded to old question Posted: Jun 1, 2010 8:52 PM
    2) Its not your question & asking into others threads.
    -- Please lock this thread

Maybe you are looking for