Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET POP3

 AfterLogic Forum : MailBee.NET POP3
Subject Topic: Error chain, are all these errors liked ? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 01 July 2010 at 1:59am | IP Logged Quote ImmoConnect

Hello,

I have a set of errors which occurs on the same second, not on the same message.
The MailBee version is 5.8.2.200

First error :

INFO 2010-06-16 09:58:25,812 [ManagerMail_"Claire" <xxx.xxx@xxx.xx>] XXX.Mail.ManagerMail.MailerAccount DownloadEntireMessage --> Erreur lors du téléchargement du message complet (1272461099.7821.gixgrenoble.altiva.org,S=50214527). Message : Une exception de type 'System.OutOfMemoryException' a été levée.
System.OutOfMemoryException: Une exception de type 'System.OutOfMemoryException' a été levée.
   à dn.a(Byte[] A_0, Int32 A_1, Int32 A_2, Boolean A_3)
   à de.aj()
   à de.b(Byte[] A_0, Int32 A_1, Int32 A_2, fz A_3)
   à de.b(Byte[] A_0, fz A_1)
   à de.b(String A_0, fz A_1)
   à bh.b(String A_0, fz A_1, Boolean A_2)
   à bh.a(String A_0, fz A_1, Boolean A_2)
   à a7.b(Int32 A_0, Int32 A_1)
   à bq.a(Int32 A_0, Int32 A_1)
   à bq.a(Boolean A_0, Int32 A_1, Int32 A_2)
   à MailBee.Pop3Mail.Pop3.DownloadEntireMessage(Int32 index)
   à XXX.Mail.ManagerMail.MailerAccount.DownloadEntireMessage(Str ing uid)
---------- in --------------
   à XXX.Mail.ManagerMail.MailerAccount.DownloadEntireMessage(Str ing uid)
   à XXX.Mail.ManagerMail.MailerAccount.GetNewMails()
   à XXX.Mail.ManagerMail.MailerAccount.SendAndReceiveInSameThrea d(Object param)
   à XXX.ThreadLauncherManager.b.a(Object A_0)
   à System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   à System.Threading.ThreadHelper.ThreadStart(Object obj)
----------------------------

WARN 2010-06-16 09:58:25,812 [ManagerMail_"Claire" <xxx.xxx@xxx.xx>] XXX.Mail.ManagerMail.MailerAccount CallReceivedFailed --> Erreur lors de la reception du mail uid 1272461099.7821.gixgrenoble.altiva.org,S=50214527
XXX.Mail.Interface.ManagerMailException: Une erreur est survenue lors de la réception du mail 1272461099.7821.gixgrenoble.altiva.org,S=50214527 ---> System.Exception: Erreur lors du téléchargement du message complet (1272461099.7821.gixgrenoble.altiva.org,S=50214527).
   à XXX.Mail.ManagerMail.MailerAccount.DownloadEntireMessage(Str ing uid)
   à XXX.Mail.ManagerMail.MailerAccount.GetNewMails()
   --- Fin de la trace de la pile d'exception interne ---
---------- in --------------
   à XXX.Mail.ManagerMail.MailerAccount.CallReceivedFailed(String uid, ManagerMailException ex)
   à XXX.Mail.ManagerMail.MailerAccount.GetNewMails()
   à XXX.Mail.ManagerMail.MailerAccount.SendAndReceiveInSameThrea d(Object param)
   à XXX.ThreadLauncherManager.b.a(Object A_0)
   à System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   à System.Threading.ThreadHelper.ThreadStart(Object obj)
----------------------------



2nd error :

INFO 2010-06-16 09:58:27,437 [ManagerMail_"Claire" <xxx.xxx@xxx.xx>] XXX.Mail.ManagerMail.MailerAccount DownloadEntireMessage --> Erreur lors du téléchargement du message complet (1276607499.1889.gixgrenoble.altiva.org,S=5727). Message : The particular item of the response data cannot be parsed. The response string: P0APWVFOZXGVQIOJK1TQC9GRI6JQOV7QX+WVWF/B18T/SIQ+O/BPGOG.
MailBee.MailBeeInvalidTextResponseException: The particular item of the response data cannot be parsed. The response string: P0APWVFOZXGVQIOJK1TQC9GRI6JQOV7QX+WVWF/B18T/SIQ+O/BPGOG. ---> cw: The particular item of the response data cannot be parsed.
   à eu.a(String A_0, Encoding A_1)
   à bb.a(Int32 A_0)
   --- Fin de la trace de la pile d'exception interne ---
   à bb.a(Int32 A_0)
   à de.aj()
   à de.b(Byte[] A_0, Int32 A_1, Int32 A_2, fz A_3)
   à de.b(Byte[] A_0, fz A_1)
   à de.b(String A_0, fz A_1)
   à bh.b(String A_0, fz A_1, Boolean A_2)
   à bh.a(String A_0, fz A_1, Boolean A_2)
   à a7.b(Int32 A_0, Int32 A_1)
   à bq.a(Int32 A_0, Int32 A_1)
   à bq.a(Boolean A_0, Int32 A_1, Int32 A_2)
   à MailBee.Pop3Mail.Pop3.DownloadEntireMessage(Int32 index)
   à XXX.Mail.ManagerMail.MailerAccount.DownloadEntireMessage(Str ing uid)
---------- in --------------
   à XXX.Mail.ManagerMail.MailerAccount.DownloadEntireMessage(Str ing uid)
   à XXX.Mail.ManagerMail.MailerAccount.GetNewMails()
   à XXX.Mail.ManagerMail.MailerAccount.SendAndReceiveInSameThrea d(Object param)
   à XXX.ThreadLauncherManager.b.a(Object A_0)
   à System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   à System.Threading.ThreadHelper.ThreadStart(Object obj)
----------------------------

WARN 2010-06-16 09:58:27,437 [ManagerMail_"Claire" <xxx.xxx@xxx.xx>] XXX.Mail.ManagerMail.MailerAccount CallReceivedFailed --> Erreur lors de la reception du mail uid 1276607499.1889.gixgrenoble.altiva.org,S=5727
XXX.Mail.Interface.ManagerMailException: Une erreur est survenue lors de la réception du mail 1276607499.1889.gixgrenoble.altiva.org,S=5727 ---> System.Exception: Erreur lors du téléchargement du message complet (1276607499.1889.gixgrenoble.altiva.org,S=5727).
   à XXX.Mail.ManagerMail.MailerAccount.DownloadEntireMessage(Str ing uid)
   à XXX.Mail.ManagerMail.MailerAccount.GetNewMails()
   --- Fin de la trace de la pile d'exception interne ---
---------- in --------------
   à XXX.Mail.ManagerMail.MailerAccount.CallReceivedFailed(String uid, ManagerMailException ex)
   à XXX.Mail.ManagerMail.MailerAccount.GetNewMails()
   à XXX.Mail.ManagerMail.MailerAccount.SendAndReceiveInSameThrea d(Object param)
   à XXX.ThreadLauncherManager.b.a(Object A_0)
   à System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   à System.Threading.ThreadHelper.ThreadStart(Object obj)
----------------------------

INFO 2010-06-16 09:58:27,437 [ManagerMail_"Claire" <xxx.xxx@xxx.xx>] XXX.Mail.ManagerMail.MailerAccount DownloadEntireMessage --> Erreur mail bee lors du téléchargement du message complet (1276617586.8343.gixgrenoble.altiva.org,S=102523). Message : Not yet connected to the server. Call Connect first.
MailBee.MailBeeInvalidStateException: Not yet connected to the server. Call Connect first.
   à bh.ap()
   à bq.a(Boolean A_0, Boolean A_1, a7 A_2)
   à bq.a(Boolean A_0, Boolean A_1)
   à bq.a(String A_0)
   à MailBee.Pop3Mail.Pop3.GetMessageIndexFromUid(String uid)
   à XXX.Mail.ManagerMail.MailerAccount.DownloadEntireMessage(Str ing uid)
---------- in --------------
   à XXX.Mail.ManagerMail.MailerAccount.DownloadEntireMessage(Str ing uid)
   à XXX.Mail.ManagerMail.MailerAccount.GetNewMails()
   à XXX.Mail.ManagerMail.MailerAccount.SendAndReceiveInSameThrea d(Object param)
   à XXX.ThreadLauncherManager.b.a(Object A_0)
   à System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   à System.Threading.ThreadHelper.ThreadStart(Object obj)
----------------------------

WARN 2010-06-16 09:58:27,437 [ManagerMail_"Claire" <xxx.xxx@xxx.xx>] XXX.Mail.ManagerMail.MailerAccount CallReceivedFailed --> Erreur lors de la reception du mail uid 1276617586.8343.gixgrenoble.altiva.org,S=102523
XXX.Mail.Interface.ManagerMailException: Le logiciel s'est déconnecté lors de la récupération du mail 1276617586.8343.gixgrenoble.altiva.org,S=102523, on se reconnecte et on continue à récupérer les mails suivants. ---> MailBee.MailBeeInvalidStateException: Not yet connected to the server. Call Connect first.
   à bh.ap()
   à bq.a(Boolean A_0, Boolean A_1, a7 A_2)
   à bq.a(Boolean A_0, Boolean A_1)
   à bq.a(String A_0)
   à MailBee.Pop3Mail.Pop3.GetMessageIndexFromUid(String uid)
   à XXX.Mail.ManagerMail.MailerAccount.DownloadEntireMessage(Str ing uid)
   à XXX.Mail.ManagerMail.MailerAccount.GetNewMails()
   --- Fin de la trace de la pile d'exception interne ---
---------- in --------------
   à XXX.Mail.ManagerMail.MailerAccount.CallReceivedFailed(String uid, ManagerMailException ex)
   à XXX.Mail.ManagerMail.MailerAccount.GetNewMails()
   à XXX.Mail.ManagerMail.MailerAccount.SendAndReceiveInSameThrea d(Object param)
   à XXX.ThreadLauncherManager.b.a(Object A_0)
   à System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   à System.Threading.ThreadHelper.ThreadStart(Object obj)
----------------------------


So, I have several questions

Can you provide me more informations about the OutOfMemory cause ?
And, do you think the second error is a direct consequence of the first error or there only a coincidence ?
And, what could be the problem ?
(I've already checked other topics and I saw a problem could be pipelining, but we use no pipelining).

Thanks by advance.
Regards.
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 01 July 2010 at 2:00am | IP Logged Quote ImmoConnect

Linked, I meant linked, not liked...sorry...
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6040
Posted: 01 July 2010 at 2:41am | IP Logged Quote Igor

Looks like you're dealing with large mails, so you need to make sure you don't store multiple mails in memory at a time, using GC.Collect() or similar approach is recommended.

Please also note that we've recently introduced multiple optimization tweaks in the DLL, so please grap the latest build and check if the issue persists.

--
Regards,
Igor, AfterLogic Support

PS: Really nice avatar! And I'm thinking of using 11th Doctor pic for myself ;)
Back to Top View Igor's Profile Search for other posts by Igor
 
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 01 July 2010 at 5:13am | IP Logged Quote ImmoConnect

Hello,

Thanks for your answer.
We will use the latest build in our next release.
Is using "MailMessage" instances with an using statement can be a solution similar to GC.Collect() ?
We did a code update in that way, could this help ? (yes, I imagine, but just for sure).

Regards.

P.S. Hello, Doctor's fan ;) I haven't seen the 5th season yet but I heard it is great.
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6040
Posted: 01 July 2010 at 5:24am | IP Logged Quote Igor

"Using" would only free unmanaged resources, so it won't do the same job as GC.Collect().

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 02 July 2010 at 12:11am | IP Logged Quote ImmoConnect

Hello,

How do you recomend to use GC.Collect().
After each use of a mail message ?
Don't this decrease performances too much ?

Thanks by advance.
Regards.
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 02 July 2010 at 2:09am | IP Logged Quote Alex

You should not use GC.Collect too often but it makes sense after very large memory block gets freed. For instance, if you processing 100K small emails, making GC.Collect after every one will certainly slow down the system. If you have just received 50MB email (this won't occur 100 times per second, I guess), GC.Collect will help. So, you can run it after processing very large emails.

Code:

if (msg.Size > 10 * 1024 * 1024)
{
  msg = null;
  GC.Collect();
}


Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
ImmoConnect
Newbie
Newbie
Avatar

Joined: 23 February 2009
Location: France
Online Status: Offline
Posts: 35
Posted: 02 July 2010 at 4:44am | IP Logged Quote ImmoConnect

Ok, thanks for your answer.

Regards.
Back to Top View ImmoConnect's Profile Search for other posts by ImmoConnect
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide