Hi Guys!

On both Zimbra OS 8.0.1 and 8.0.4 I have a problem with an Android mobile client (AquaMail):

Around 15 folders are PUSHED on the mobile device, and the AquaMail client just syncs all the time through the folders.


I checked mailbox.log and I found this a LOT of times:

Code:
2013-07-22 ###### INFO  [ImapSSLServer-1] [name=######@######;ip=##.##.##.##;ua=AquaMail/1.2.4.31;] session -Too many IMAP sessions, closing ImapSession{sessionId=22, accountId=######, lastAccessed=######}
2013-07-22 ###### INFO  [SessionSweeper] [] imap - dropping connection for user######@###### (server-initiated)

I've read through the forums and find suggetions for dropping connections, therefore I've increased some constants:

Code:
zimbra@mail:/home/zlaci$ zmlocalconfig -e imap_throttle_acct_limit=500
zimbra@mail:/home/zlaci$ zmlocalconfig -e imap_throttle_ip_limit=500

Code:
zimbra@mail:/home/zimbra$ zmprov gs mail.mydomain.com | grep Threads
zimbraAdminImapImportNumThreads: 20
zimbraHttpNumThreads: 250
zimbraHttpSSLNumThreads: 50
zimbraImapNumThreads: 500
zimbraLmtpNumThreads: 20
zimbraMilterNumThreads: 100
zimbraPop3NumThreads: 100
zimbraScheduledTaskNumThreads: 20
Code:
zimbra@mail:/home/zimbra$ netstat -ant | grep 993 | wc -l
16
In the Admin GUI, Monitoring/Sessions shows 15-16 sessions only.

My question is:
Where can I increase the session limit (if there is any) or if there's another problem, where can I search for?

Also, as an INFO, debug log of AquaMail is full with this:

Code:
2013.07.20 02:29:15.748 +0200	AquaMail	[NETWRK.470] ***** ERROR: Unable to connect to [XXXXXXXXXXXXX:993,]
java.net.ConnectException: failed to connect to XXXXXXXXXXXXX/XX.XX.XX.XX (port 993) after 30000ms: isConnected failed: ECONNREFUSED (Connection refused)
	at libcore.io.IoBridge.isConnected(IoBridge.java:224)
	at libcore.io.IoBridge.connectErrno(IoBridge.java:161)
	at libcore.io.IoBridge.connect(IoBridge.java:112)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459)
	at java.net.Socket.connect(Socket.java:842)
	at org.kman.AquaMail.net.MailConnectionManager.acquire(MailConnectionManager.java:253)
	at org.kman.AquaMail.mail.imap.ImapIdleStartupTask.initConnection(ImapIdleStartupTask.java:98)
	at org.kman.AquaMail.mail.imap.ImapTask_ConnectLogin.ensureConnectLogin(ImapTask_ConnectLogin.java:33)
	at org.kman.AquaMail.mail.imap.ImapTask_Sync.process(ImapTask_Sync.java:156)
	at org.kman.AquaMail.mail.imap.ImapIdleStartupTask.process(ImapIdleStartupTask.java:34)
	at org.kman.AquaMail.core.MailTaskExecutor.onTask(MailTaskExecutor.java:366)
	at org.kman.AquaMail.core.MailTaskExecutor.run(MailTaskExecutor.java:342)
	at java.lang.Thread.run(Thread.java:856)
Caused by: libcore.io.ErrnoException: isConnected failed: ECONNREFUSED (Connection refused)
	at libcore.io.IoBridge.isConnected(IoBridge.java:208)
	... 13 more
Thanks in advance!

Laszlo