Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




OutofMemoryExceptions

web-app

we have a working setup of gemini application, with some mailbox processors setup on it. in the last few days, the mailbox processors are not picking up new emails, and upon investigating, i found these errors in the 'gemini admin system log', and 'event viewer'

[1]
-------------------------------
Exception of type 'System.OutOfMemoryException' was thrown.

at cb.a(Byte[] A0, Int32 A1, Int32 A2, Boolean A3) at b6.ak() at b6.b(Byte[] A0, Int32 A1, Int32 A2, dq A3) at b6.b(Byte[] A0, dq A1) at b6.b(String A0, dq A1) at as.a(Int32 A0, Int32 A1, Int32 A2) at a5.a(Int32 A0, Int32 A1, Int32 A2) at a5.a(Boolean A0, Int32 A1, Int32 A2, Int32 A3) at MailBee.Pop3Mail.Pop3.DownloadEntireMessages() at CounterSoft.Gemini.Mail.Mailbox.MailboxProcess.CheckEmails(MailboxEN mailbox, RegistryHelper helper) at CounterSoft.Gemini.Mail.Mailbox.MailboxProcess.CheckEmails(MailboxEN mailbox) at CounterSoft.Gemini.MailboxConfig.RepeaterCommand(Object sender, CommandEventArgs e)

From MailBee.NET

[2]
-------------------------

at NHibernate.Type.AbstractBynaryType.DeepCopyNotNull(Object value) at NHibernate.Type.MutableType.DeepCopy(Object value, EntityMode entityMode, ISessionFactoryImplementor factory) at NHibernate.Type.TypeFactory.DeepCopy(Object[] values, IType[] types, Boolean[] copy, Object[] target, ISessionImplementor session) at NHibernate.Event.Default.AbstractSaveEventListener.PerformSaveOrReplicate(Object entity, EntityKey key, IEntityPersister persister, Boolean useIdentityColumn, Object anything, IEventSource source, Boolean requiresImmediateIdAccess) at NHibernate.Event.Default.AbstractSaveEventListener.PerformSave(Object entity, Object id, IEntityPersister persister, Boolean useIdentityColumn, Object anything, IEventSource source, Boolean requiresImmediateIdAccess) at NHibernate.Event.Default.AbstractSaveEventListener.SaveWithGeneratedId(Object entity, String entityName, Object anything, IEventSource source, Boolean requiresImmediateIdAccess) at NHibernate.Event.De

from NHibernate
------------------------------------------

[3]

Event Type:        Error

Event Source:    Error starting Gemini Scheduler [3]

Event Category:                None

Event ID:              0

Date:                     6/30/2010

Time:                     8:20:21 PM

User:                     N/A

Computer:          BLPTCMON01

Description:

MailBee.NET - The socket object used by MailBee was unexpectedly closed. InnerException message follows: Unable to read data from the transport connection: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full. -    at cu.a(Exception A_0)

   at cu.a(Byte[] A_0, Int32 A_1)

   at cy.a(Byte[] A_0, Int32 A_1)

   at b6.ak()

   at b6.b(Byte[] A_0, Int32 A_1, Int32 A_2, dq A_3)

   at b6.b(Byte[] A_0, dq A_1)

   at b6.b(String A_0, dq A_1)

   at as.a(Int32 A_0, Int32 A_1, Int32 A_2)

   at a5.a(Int32 A_0, Int32 A_1, Int32 A_2)

   at a5.a(Boolean A_0, Int32 A_1, Int32 A_2, Int32 A_3)

   at MailBee.Pop3Mail.Pop3.DownloadEntireMessages()

   at CounterSoft.Gemini.Mail.Mailbox.MailboxProcess.CheckEmails(MailboxEN mailbox, RegistryHelper helper)

   at CounterSoft.Gemini.Scheduler.MailboxProcessor.MailboxProcess.CheckEmails()

   at CounterSoft.Gemini.Scheduler.MailboxProcessor.MailboxProcess.ProcessOne()

   at CounterSoft.Gemini.Scheduler.SchedulerService.OnStart(String[] args)

 

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


the box has 4GB memory and less than 1GB of the memory is in use. Gemini scheduler service is using ~19mb memory, and the IIS worker corresponding to Gemini application is using ~250mb memory.any ideas, as to what could be causing these issues?


your help and input is appreciated.


jinnjee
· 1
jinnjee
Replies (10)
helpful
0
not helpful

we are using Gemini 3.5.3 (Build 2390)


jinnjee
· 1
jinnjee
helpful
0
not helpful

Do you have a large email in the mailbox?
Does gemini works ok besides the mailbox issue?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

yes. Gemini works fine other than this issue.

i may have to check for the size of the emails in the mailbox. what size range is acceptable, and what size could be problematic?

please suggest


jinnjee
· 1
jinnjee
helpful
0
not helpful

Hard to say, anything abouve 5mb might be an issue.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

I have checked the mailbox, and there are no emails that are unprocessed, with sizes larger than 2MB. any other ideas, to troubleshoot this?


jinnjee
· 1
jinnjee
helpful
0
not helpful

Did you try restarting the scheduler service? Does the error occur every X minutes?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

yes. tried restarting the service. these errors happen after the service is started, and every X minutes.


jinnjee
· 1
jinnjee
helpful
0
not helpful

Ok, did you try removing the mailbox definition from Gemini? Please try and do so, does the error still occurs?

We just want to make sure that it is coming from the mailbox.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

ok. tried removing the mailbox and created it back again. and the processor is picking up the emails now. the downside though, it that, it has created gemini issues, for all of the emails (read and unread). so now we have a whole bunch (1000+) of duplicate issues created.


jinnjee
· 1
jinnjee
helpful
0
not helpful

Ok, can you identify these duplicate issues? If so we can provide the SQL to delete them.


Saar Cohen
· 5000
Saar Cohen