Folder connection limit

Hi there!
I recognized a strange behavior when using JavaMail. Most likely it is due to a usage error by me but maybe you can help me to fix it. I'm connecting through JavaMail 1.4.2 to an Exchange server (2007). Then I try to open as much folders as possible (just to test the Exchange behavior). When the first exception is raised, I save the amount of open folders and close them afterwards.
This is the code:
IMAPFolder[] list = new IMAPFolder[100];
int amount = 0;
for (int i=0; i<100; i++) {
  try {
    list[i] = (IMAPFolder) eStore.getFolder("inbox");
    list.open(Folder.READ_ONLY);
} catch (Exception e) {
amount = i;
break;
for (int i=0; i<100; i++) {
if (list[i] != null)
if (list[i].isOpen())
list[i].close(false);
list[i] = null;
System.out.println(amount + " open folders allowed.");
Okay, now to the strange thing: I activated the debug option in JavaMail and I saw that it establishes a new server connection (!!!) when calling eStore.getFolder("inbox"). Is that the supposed behavior? I performed the connection establishment before manually. So why does have JavaMail to reestablish it? This is the point where I think I misuse JavaMail. But in the demo source files it is written in the way above, too.
The second thing is when I try to close the open folders I get the following notification: IMAP DEBUG: IMAPProtocol noop
A4 NOOP
A4 OK NOOP completed.
DEBUG: current size: 1 pool size: 1
DEBUG: pool is full, not adding an Authenticated connection
A5 LOGOUT
* BYE Microsoft Exchange Server 2007 IMAP4 server signing off.When performing the first close() operation, it closes the folder. But for all folders afterwards, I get the message shown above.
And last but not least: how do I increase the number of parallel open folders? It is set to 15 but I would need a higher number.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Okay. Thanks for the fast answers.
I just noticed that my Exchange guys have reduced the amount of concurrent IMAP connections. This broke my application because I was monitoring each subfolder of inbox with an IDLE command. Maybe you could think about changing the JavaMail structure to support better the IDLE command. But I think the problem is located in the IMAP protocol. If the IDLE command really needs an open connection to the folder then there is no other way around.
Anyway, thanks for you help bshannon.

Similar Messages

  • Windows 7 - What Constitutes a Connection Under the 20 Connection Limit?

    Background
    Currently testing some enterprise software the company I work for designs, and our current scope of support allows for installations on Windows 7. We have multiple services running on the 'server' and we're communicating with clients on various IP ports,
    as well as running a webpage through IIS. At the very minimum we have two connections from a client system at any time over two different ports, this can grow depending on what's being run as part of the client.
    Environment
    The environment consists of the following:
    Windows 7 'Server' running a local instance of SQL Express, also hosting ASP.NET webpage.
    Windows 7/Vista/XP Clients connecting over IP to 2-4 different ports
    Question
    There's a host of threads and documentation on the 20 connection limit within Windows 7, but really no clear answer as to what constitutes a 'connection'. Some Microsoft documentation says TCP connections, some say SMB connections, and a half dozen form
    posts claim one or the other. I did a quick test last night with a client simulation tool which pushed two connections to the server for each client, and connected 25 clients (total of 50 connections) and was not refused subsequent connections.
    What exactly removes an available connection from the pool of 20?
    Unlimited connections from a single IP address? (each computer removes an available connection from the limit)
    Per TCP connection? (each connection to a port removes an available connection from the limit)
    Per Windows User? (each connection from a Windows user removes an available connection from the limit)
    Or is the 20 connection limit strictly applied to SMB?
    I also see the following in the EULA for Windows 7 Professional:
    Device Connections. You may allow up to 20 other devices to access software installed on the licensed computer to use only File Services, Print Services, Internet Information Services and Internet Connection Sharing and Telephony Services.
    Does this indicate the 20 connection limit only applies to IIS, ICS, File/Print Sharing?
    Greatly appreciate the time taken to answer this.
    Cheers,
    James. 

    Hi James,
    The 20 connection limit applies to File and Printer sharing.
    Limit the Number of Users of a Shared Folder
    http://technet.microsoft.com/en-us/library/cc753521.aspx#BKMK_interface
    Windows 7 incoming connection limit 
    http://social.technet.microsoft.com/Forums/en/w7itpronetworking/thread/854f3e27-10e5-4629-bb77-007cc5e42b41
    Regarding TCP, IIS connection limit, it is hard to confirm. Since Vista SP2 the limitation have been removed from TCPIP.SYS, and has been configured through a registry key. Windows7
    should follow that same behavior. You can also consult in IIS forum.
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\]
    Value: TcpNumConnections
    Type: DWORD
    More information
    http://blogs.msdn.com/b/david.wang/archive/2006/04/12/howto-maximize-the-number-of-concurrent-connections-to-iis6.aspx
    Best Regards,
    Niki
    Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Is there a way to put more apps (increase the folder size limit) in iOS 5.0.1 on iPad2

    I read on some site that there is an app that allows one to increase the desktop folder size limit in iOS 5.0.1 on an iPad2 does anyone have any info please?
    Thanks for any thoughts in advance.....
    Dave

    Firstly, Thanks for taking the time to reply :-) 
    It's not that I want gazillions of apps, I just wanted to put more in each folder so I don't have to have multiple folders with similar names....Weather1, 2, 3,etc.... but I see your point and appreciate the thoughts.
    Dave

  • How do I get my new contacts to the contacts folder connected to Icloud?

    When I add new Contacts on my PC, they go to a Contact folder that is not connected to Icloud. It is a Contact folder under "My Contacts". I have to move them over manually the Contact folder that is in the Icloud folder! Also when I double click on an emailaddress to look for the Contact, it looks in the default folder - where I don't have any Contacts (as I move the to the Contact folder connected to Icloud).
    Can I move the Contact folder that is default to the Icloud and then move all Contact over to that one and then delete the one I use now??
    Just afraid to loose the 2800 Contacts I built up during many years (running my own business) !
    Looked for a solution for months... so grateful!
    Thomas

    A little more information would be helpful, like how are you trying to sync, what have you done to set it up, what is your computer type and operating system, what error message do you get when the phone "does not want to sync with the computer"
    If you haven't done so yet it would be helpful to read the manual, specifically the chapter on syncing contacts: http://manuals.info.apple.com/en_US/iphone_user_guide.pdf.

  • Too many connections - limit of 150 reached

    We ran into a situation where a program (written in PHP, running under Apache) was spawned via crontab every 30 seconds for test purposes. It connected to the database but did not disconnect.
    Net result: Once the program had been started 150 times, the database refused any more connections. No valid users could connect. I couldn't even connect from the oracle privileged account.
    Item 1: The process will be modified to explicitly close its connection when done, rather than trusting the job to default behavior of PHP. So, hopefully, we will not run into this a second time.
    Item 2: But if we do have this problem again, I need to know how to intervene when the connection limit has been reached. I was not able to connect myself and therefore could not query v$process or related tables to gather any information. I could kill the various (useless) listener processes at the unix command line, but it still took time for Oracle to sense the dead process and mop up. How to accomplish this quickly?
    Item 3: I can probably set up the rogue process to login as a different user and then set a resource profile for that user including timeouts. Any suggestions on values for that resource profile?
    Item 4: Is there a way to reserve a listener connection for a privileged account such as the DBA?
    Thanks for any guidance.
    -- Chris Curzon

    ChrisCurzonDBA wrote:
    Thanks for the friendly reply.
    What worried me was that I had to wait for the useless connections to clear, before I could connect and see what the sessions were. Yes, Oracle had to roll back any uncommitted work, and there's no way to speed that up, but I wanted to see that processes from inside of Oracle (connected) not from outside.
    Is it possible to configure the listener to "reserve" one connection for a privileged account? No.
    It is not the listener's responsibility. In fact, it is not even the listener's responsibility to maintain existing connections. Once the listener services the connection request, it is totally out of the picture. You can even kill the listener, and any existing connections will continue on. It's like being introduced to someone at a party. Once you are introduced to someone (by The Listener), you carry on your conversation with that person directly, not through the person (The Listener) who introduced you.
    >
    -- Chris

  • Share Point folder size limit - File Services

    I created a new folder inside a share point using Server Admin. Is there a way to set a folder size limit (quota) for that folder.
    P.S. I am NOT talking about user accounts quotas for home folders created using Workgroup Manager! ...Just any new folder created, to be used on any volume, is there a way to set a mamimum size?
    For example I have a 1TB volume on my Xserve RAID. I create a new folder but want to set its maximum capacity to 200GB. Is that possible?
    Thank you very much in advance for any feedback.

    There's no direct way to set a limit on a folder size.
    The 'simplest' method I can think of is to create partitions on your disk of the appropriate sizes and share these - they will have inherent size limits based on the size of the partition. It's a little messier but should solve your issue.
    :: thinking :: you might be able to use disk images rather than partitions, although I've never tried sharing a mounted disk image, and you'd need to address automounting the disk images when the server starts, so it might not be viable.

  • No redirection to different url upon http connections limit exceeded

    Hi,
    As of Standalone OC4j 10.1.2, if you want messages to be redirected to a different URL when the maximum connections limit is reached, you would include the HTTP redirect URL to max-http-connections tag inside server.xml.
    <max-http-connections max-connections-queue-timeout="120" socket-backlog="50"
    value="100">http://optional.redirect.url/page.jsp</max-http-connections>
    I have a standalone OC4j 10.1.3, and would like to be able to redirect to different URL when maximum connections limit is reached but the above max-http-connections does not work and I am not redirected to different URL when maximum connectionns limit is reached. I read user guide of OC4j 10.1.3 and there is no mentioning of max-http-connections at all. In there, they talk about limiting concurrency via http thread pool but there is no discussion as to the mechanism of redirecting users to a different URL where I can display a user friendly message to say "Server is busy, please try again later..." instead of browser display a message "Page cannot be displayed"..
    Please advice,
    Thanks

    Any thoughts on above issue ? please help.
    thanks
    Sam

  • Opening multiple reports in Crystal Reports for VS causes database connect limit to be reached.  Seems to be no way to force Crystal Reports to close database connection (other than exiting application)

    I am working on upgrading an application that has been in use for many years.  The application is written in VB6 and I have been tasked with upgrading the current application to Crystal Reports for Visual Studio.  I am using Crystal Reports for VS Version 13.0.12.1494.  The system's database is a Sybase SQL Anywhere 16 database with an ODBC connection using integrated login.  Each of the reports has the database connection set up from within the report.  There is only once database server, so each of the reports are pointing to the same DB.  The database server is currently installed as a "Personal Server" with a limit of 10 connections. 
    I have implemented the CR viewer as part of a COM-callable wrapper that exposes a COM interface for VB6 to interact with.  Inside of my viewer component is a Winform that embeds the Crystal's Report viewer.  The COM interface basically maps the basic Crystal apis to methods that the VB6 can call (i.e., Load Report, Set Field Text, Update SQL Query, etc).  This architecture is working as designed and the reports are displaying correctly and responding correctly to changes in queries, etc.
    The issue is that after I open 9 reports, the tenth one will respond with an error indicating that the database connection limit has been reached.  The database connections used by the reports aren't released until after the application is closed.  The application is designed for a secure environment that prohibits the non-administrative user from accessing the systems desktop, so asking the user tor restart the application after 10 reports isn't a viable option.
    I have checked and database connection pooling is turned off for the SQL Anywhere 16 driver.
    I have been digging on this for a few days and have tried adding code in the FormClosed event to close and dispose of the Report Document as follows:
    ReportDocument reportDoc= (ReportDocument) crystalReportViewer1.ReportSource;
    reportDoc.Close();
    reportDoc.Dispose();
    GC.Collect();       // Force garbage collection on disposed items
    I have also tried the following (as well as maybe 20 or so other permutations) trying to fix the issue with no success.  
    ReportDocument reportDoc= (ReportDocument) crystalReportViewer1.ReportSource;
    foreach (Table table in reportDoc.Database.Tables)
         table.Dispose();
    crystalReportViewer1.ReportSource = null;
    reportDoc.Database.Dispose();
    reportDoc.Close();
    reportDoc.Dispose();
    reportDoc = (ReportDocument)crystalReportViewer1.ReportSource;
    GC.Collect();       // Force garabe collection on disposed items
    Any ideas or suggestions would be greatly appreciated.  I have been pulling my hair out on this one!

    Hi Ludek,
    Thanks so much for the quick reply.  Unfortunately I did not have time to work on the reporting project Friday afternoon, but did a quick test this morning with some interesting results.  I'm hoping if I describe what I'm doing, you can show me the error of my ways.  This is really my first major undertaking with Crystal Reports.
    If I simply load the report, then close and dispose, I don't hit the limit of 10 files.  Note that I do not logon manually in my code as the logon parameters are all defined within the reports themselves.  The logon happens when you actually view the report.  Loading the report doesn't seem to actually log in to the DB.
    What I did was create a very simple form with a single button that creates the WinForm class which contains the Crystal Viewer.  It then loads the report, sets the ReportSource property on the CrystalReportsViewer object contained in the WInForm and shows the report. The report does show correctly, until the 10 reports limit is reached.
    The relevant code is shown below. More than I wanted to post, but i want to be as complete and unambiguous as possible. 
    This code displays the same behavior as my earlier post (after 10 reports we are unable to create another connection to the DB).
    // Initial Form that simply has a button
      public partial class SlectReport : form
            public SelectReport()
                InitializeComponent();
            private void button1_Click(object sender, EventArgs e)
                ReportDocument rd = new ReportDocument();
                ReportForm report = new ReportForm();
                try
                    rd.Load(@"Test.rpt");
                    report.ReportSource = rd;
                    report.Show();
             catch (Exception ex)
                  MessageBox.Show(ex.Message);
    // The WinForm containing the Crystal Reports Viewer
        public partial class ReportForm : Form
            public ReportForm()
                InitializeComponent();
            private void Form1_Load(object sender, EventArgs e)
                this.crystalReportViewer1.RefreshReport();
                this.FormClosed += new FormClosedEventHandler(ReportForm_FormClosed);
            void ReportForm_FormClosed(object sender, FormClosedEventArgs e)
                ReportDocument rd;
                rd = (ReportDocument)crystalReportViewer1.ReportSource;
                rd.Close();
                rd.Dispose();
            public object ReportSource
                set { crystalReportViewer1.ReportSource = value; }
    Again, any guidance would be greatly appreciated. 

  • There appears to be a persistent connection limit of 2 for cross domain requests

    I am building a service that allows anybody to add real-time push updates to their website or web application. To do this I'm using the Access-Control-Allow-Origin header response from a cloud hosted server.
    When establishing a connection we create one persistently connected HTTP connection and use a second connection to send requests (subscriptions/commands).
    The problem I'm seeing looks very similar to the old 2 socket to a server connection limit (related to about:config "network.http.max-persistent-connections-per-server").
    Is there a limitation on the number of persistent cross domain connections that can be established from a single Firefox process? If so, where is the configuration options to override this?
    This problem can be easily duplicated by going to the following page in two tabs within the same Firefox process:
    http://kwwika.com/Standalone/Demos/WorldCup2010/
    You will notice that one page connects and starts to receive updates. The second will not connect until you close the first tab/page.
    I'd like to be able to provide feedback to the users of Kwwika about this problem so any information you can provide me with would be very much appreciated.
    == URL of affected sites ==
    http://kwwika.com/Standalone/Demos/WorldCup2010/
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4

    [bump]

  • Oracle Personal 9i connection limit?

    I am trying to find out if there is any kind of hard wireed connection limit for the Oracle 9i Personal Edition.
    Thanks in Advance,
    Jamin

    Are you getting the complete file when downloading? i.e. the filesize on your disk matches the size listed on OTN.
    Regards,
    OTN Team

  • Does NET8 2-tier server have a simultaneous connection limit ?

    Does NET8 2-tier server have a simultaneous connection limit ?
    I came across one article that has a 100 simultaneous connection listing for 2-tier.
    Please let me know
    George

    Yes, My WRT610N is currently using both 2.4Ghz and 5.0Ghz at the same time. I'm using WPA2 Private with AES on both frequencies. I'm currently getting 135mbps on both frequencies. Both are stable at 30 feet but the Actual throughput is better on the 2.4Ghz frequency and also range.
    I think the reason that i'm restricted to 135mbps is the Intel wifi link 5100 can only transfer at a maximum of 150 mbps.
    This router has always been stable although i did loose my network one night it dived to 6mbps for apparently no reason at all. But i believe that this issue was due to an update on my Laptop. I fixed this by removing the Wifi adapter drivers and reinstalling them.
    5 G Network
    Mode:   Wireless-N Only     
    Network Name (SSID):   N/A    
    Radio Band:   Wide - 40MHz Channel     
    Wide Channel:   38     
    Standard Channel:   36     
    Security:   WPA2-Personal      
    SSID Broadcast:   Enabled  
    2.4 G Network
    Mode:   Mixed     
    Network Name (SSID):   N/A 
    Radio Band:   Wide - 40MHz Channel     
    Wide Channel:   8     
    Standard Channel:   6     
    Security:   WPA2-Personal      
    SSID Broadcast:   Enabled  
    ** Note these settings are from the Status / Wireless Network page on the router, all wide channel / standard channels are actually set to Auto

  • How is the album and folder connected and when I delete photos from the album it also deletes from the folder?

    How is the album and folder connected and when I delete photos from the album it also deletes from the folder?

    In what application? iPhoto? If so: what version?

  • ACE connection limit and remote TCP security scans

    We are currently running remote TCP security scans on our networks and are running into a major problem where when the scans are taking place the ACE connection resource usage sky rockets and easily reaches the maximum 4 million connections.  This means that anyone can run a simple TCP scan and take down our ACE by maxing the connection limit.  We have the following parameter-map applied to all of our policies but it does not help to clear the connection count on the ACE in a reasonable amount of time.  parameter-map type connection CONNECTION_TIMEOUT   set timeout inactivity 300   set tcp timeout half-closed 60  I should note that we do have normalization turned off because it causes way more problems then it's worth (no resolution with TAC).  Does anyone have an tips on how to accommodate security scan's on networks behind the ACE while not saturating the connection count limit?

    For vips, this particular context only has one class C applied to a class-map.  Not all IP's are in use but regardless the ACE creates connections for those as well.  I've set the timeout inactivity to 120 seconds and I still see connections from the remote scanning host idling well over 45mins for connections destined to the vip's.  Is turning on normalization my only option?  I know there are others who have turned off normalization due to performance and connectivity issues so there must be other ways around this.  Thanks for your help.

  • BYE Connection limit reached

    Hi, Everyone
    My customer's site use Webmail (using JavaMail API and customer made webmail module) connect IMAP.
    Rescently, I can see the following IMAP log.
    2006/11/15 16:51:38 <E> <com.daou.winip.mail.manage.UserLoginManager> javax.mail.MessagingException: * BYE Connection limit reached
    for your IP address;
    nested exception is:
    com.sun.mail.iap.ConnectionException: * BYE Connection limit reached for your IP address
    As a result of this, login is very slow and IMAP connection is disconnected.
    Anyone who experienced this, plz let me know how to solve this problem.
    Mail version are iMS5.2 patch2 and JES6.2
    iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)
    libimta.so 5.2 Patch 2 (built 19:30:12, Jul 14 2004)
    SunOS mail 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-Enterprise
    ./imsimta version
    Sun Java(tm) System Messaging Server 6.2-3.04 (built Jul 15 2005)
    libimta.so 6.2-3.04 (built 01:43:03, Jul 15 2005)
    SunOS fly 5.9 Generic_118558-06 sun4u sparc SUNW,Ultra-60
    And I didn't change any IMAP setting.
    Thanks

    My mail provider has further indicated that even during part of the period I am idle and not opening any of my folders in mail App, sometimes the app is hitting the IMAP mail server. This is not an expected behaviour he is saying.
    It perhaps implies that the iOS mail App is having bug.

  • Anywhere16: Connection Limit (Licensed seats) = 3?

    We are developing a system with Anywhere16 Developer Edition.
    When starting up a DB, we saw that connection limit is restricted at 3.
    Is this a limit of Developer Edition? We googled but couldn't find any info about the connection limit of Developer Edition.
    We got the license key by registering at this site or so:
    SAP - Please Register
    If we want to carry out load test later, is there any way to raise the limit?

    Hi Henry,
    You can use the dblic tool to configure the connection limit to the number of licensed seats that you are entitled to.
    For example, to adjust the number of seats to 25, run the following at an elevated command prompt:
    "%SQLANY16%\Bin64\dblic.exe" -l perseat -u 25 "%SQLANY16%\Bin64\dbsrv16.lic"
    "%SQLANY16%\Bin64\dblic.exe" -l perseat -u 25 "%SQLANY16%\Bin64\dbeng16.lic"
    "%SQLANY16%\Bin64\dblic.exe" -l perseat -u 25 "%SQLANY16%\Bin64\mlsrv16.lic"
    This document outlines some of the license terms for the Developer Edition. In particular, section 3b describes "test and prototyping use".
    You must use this utility only in accordance with your license agreement to license the number of users or processors to which you are entitled. Running this command does not grant you license.
    Thanks,
    Mikel Rychliski
    SAP Active Global Support

Maybe you are looking for

  • ALV layout in selection criteria

    Dear Friends, I have created a webdynpro report with 2 views. 1st view contains all selction criteria and 2nd view contains ALV. I have created couple of layouts for ALV using settings option. By default we will have [Standard View]. Every thing work

  • Connection a RS232 device to the Aux port.

    Dear, I have a home lab wthe a 2600 access server (16 port octal). From this 2600 router I want to connect to a Raritan 8 ports RPC. This RPC (Remote power control) has a rs232 serial port (RJ45) I tried a lot and still I do not get connected to the

  • Too many error codes: can't update!

    Well, I wanted to update my iPod nano(2nd gen), so I plugged it in, and it says it is updating, and after a while, it says "iPod cannot be updated; an error occured (-50). It then continues to update again, rendering me unable to do anything, then a

  • Show page correct - store search results incorrect

    Hi. I submitted my feed: http://www.tomrbaynham.com/feed/podcast/ Received the iTunes show page: http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=337486702 The show page has the correct details - Podcast image, "The Investigative Auth

  • ITunes 7.6 Error.

    This message appears when I try to upgrade to the new iTunes. If you didn't click the link it says this exactly : Error writing to file: C:/Program Files/iTunes.Resources/fi.lproj/Apple TV Help.chm Verify that you have access to that directory. I've