OutOfMemoryHandler - hMailServer has run out of memory

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
nahosting
New user
New user
Posts: 20
Joined: 2013-02-14 13:32

OutOfMemoryHandler - hMailServer has run out of memory

Post by nahosting » 2020-06-29 12:13

Hi All,

hMailServer 5.6.7-B2425

After years of stability, in the last few weeks we have start to get a lot of random "OutOfMemoryHandler - hMailServer has run out of memory, clearing caches" issues. Here is a typical one from this morning

"APPLICATION" 12168 "2020-06-28 15:17:57.260" "OutOfMemoryHandler - hMailServer has run out of memory, clearing caches."
"APPLICATION" 12168 "2020-06-28 15:17:57.260" "OutOfMemoryHandler - hMailServer has run out of memory, clearing caches."
"APPLICATION" 12168 "2020-06-28 15:17:57.260" "OutOfMemoryHandler - hMailServer has run out of memory, clearing caches."
"ERROR" 12168 "2020-06-28 15:17:57.260" "Severity: 2 (High), Code: HM4208, Source: File::ReadFile(), Description: An error occured when reading file., Message: bad allocation"
"ERROR" 12168 "2020-06-28 15:17:57.260" "Severity: 3 (Medium), Code: HM4227, Source: File::ReadFile, Description: An unknown error occurred while reading file from disk."
"ERROR" 12168 "2020-06-28 15:17:57.260" "Severity: 3 (Medium), Code: HM5042, Source: File::ReadTextFile, Description: An unknown error occurred while reading a text file from disk."
"ERROR" 12168 "2020-06-28 15:17:57.260" "Severity: 1 (Critical), Code: HM5062, Source: IMAPFetch::ReportCriticalError_, Description: ERROR HM10001 - IMAP FETCH: Error when loading MIME message. - D:\ProgramData\hMailServer\Data\[REMOVED DOMAIN]\[REMOVED EMAIL]\FF\{FF24A71F-F059-4EBA-B35B-AF97FE6534F9}.eml"
"APPLICATION" 12168 "2020-06-28 15:17:57.260" "OutOfMemoryHandler - hMailServer has run out of memory, clearing caches."
"APPLICATION" 12168 "2020-06-28 15:17:57.260" "OutOfMemoryHandler - hMailServer has run out of memory, clearing caches."
"ERROR" 12168 "2020-06-28 15:17:57.260" "Severity: 3 (Medium), Code: HM5136, Source: TCPConnection::AsyncReadCompleted, Description: An error occured while parsing data. Data length: 185, Data: v3tn UID FETCH 242:244,405:406,427:428,510:511,525:526,685:686,692:694,823:824,859:860,888:889,908:912,927:928,945:947,993:995,1014:1015 (UID FLAGS RFC822.SIZE BODY.PEEK[] INTERNALDATE). Remote IP: [REMOVED]"
"ERROR" 12168 "2020-06-28 15:17:57.260" "Severity: 2 (High), Code: HM4208, Source: ExceptionHandler::Run, Description: An error occured while executing 'IOCPQueueWorkerTask', Message: bad allocation"

hMailServer then has a number of emails stuck in the queue with 0 delivery attempts. These emails are generally, but no always, fairly large i.e. 10mb upwards.
The only way of stopping/resolving these errors is to restart the service.

We have searched the forums and done the following

1. Checked all the hardware, everything is working fine.
2. Removed our own script, which has been working for years - not resolved the issue.
3. Checked that hMailServer doesn't actually run out of memory for a 32 bit app by having a script that monitors it - https://www.hmailserver.com/forum/viewtopic.php?t=26317
4. Checked the AV setup and even switched it off - no difference.
5. Cleaned up the Data directory (moved old files)
6. Run script from here - https://www.hmailserver.com/forum/viewtopic.php?t=27646
7. Run DDS
8. Checked mailbox limits (set in smtp at 25mb, all domains are 0)

Gone through this thread https://www.hmailserver.com/forum/viewtopic.php?t=27391

It just seems to be with larger files, now got a scenario where a clients mailbox can't be downloaded due to constant errors as soon as it hits a problem email file.

Any help appreciated as service is starting to suffer. Thanks.

User avatar
johang
Senior user
Senior user
Posts: 291
Joined: 2008-09-01 09:20

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by johang » 2020-06-29 14:01

nahosting wrote:
2020-06-29 12:13
Hi All,

hMailServer 5.6.7-B2425

After years of stability, in the last few weeks we have start to get a lot of random "OutOfMemoryHandler - hMailServer has run out of memory, clearing caches" issues. Here is a typical one from this morning

"APPLICATION" 12168 "2020-06-28 15:17:57.260" "OutOfMemoryHandler - hMailServer has run out of memory, clearing caches."
"APPLICATION" 12168 "2020-06-28 15:17:57.260" "OutOfMemoryHandler - hMailServer has run out of memory, clearing caches."
"APPLICATION" 12168 "2020-06-28 15:17:57.260" "OutOfMemoryHandler - hMailServer has run out of memory, clearing caches."
"ERROR" 12168 "2020-06-28 15:17:57.260" "Severity: 2 (High), Code: HM4208, Source: File::ReadFile(), Description: An error occured when reading file., Message: bad allocation"
"ERROR" 12168 "2020-06-28 15:17:57.260" "Severity: 3 (Medium), Code: HM4227, Source: File::ReadFile, Description: An unknown error occurred while reading file from disk."
"ERROR" 12168 "2020-06-28 15:17:57.260" "Severity: 3 (Medium), Code: HM5042, Source: File::ReadTextFile, Description: An unknown error occurred while reading a text file from disk."
"ERROR" 12168 "2020-06-28 15:17:57.260" "Severity: 1 (Critical), Code: HM5062, Source: IMAPFetch::ReportCriticalError_, Description: ERROR HM10001 - IMAP FETCH: Error when loading MIME message. - D:\ProgramData\hMailServer\Data\[REMOVED DOMAIN]\[REMOVED EMAIL]\FF\{FF24A71F-F059-4EBA-B35B-AF97FE6534F9}.eml"
"APPLICATION" 12168 "2020-06-28 15:17:57.260" "OutOfMemoryHandler - hMailServer has run out of memory, clearing caches."
"APPLICATION" 12168 "2020-06-28 15:17:57.260" "OutOfMemoryHandler - hMailServer has run out of memory, clearing caches."
"ERROR" 12168 "2020-06-28 15:17:57.260" "Severity: 3 (Medium), Code: HM5136, Source: TCPConnection::AsyncReadCompleted, Description: An error occured while parsing data. Data length: 185, Data: v3tn UID FETCH 242:244,405:406,427:428,510:511,525:526,685:686,692:694,823:824,859:860,888:889,908:912,927:928,945:947,993:995,1014:1015 (UID FLAGS RFC822.SIZE BODY.PEEK[] INTERNALDATE). Remote IP: [REMOVED]"
"ERROR" 12168 "2020-06-28 15:17:57.260" "Severity: 2 (High), Code: HM4208, Source: ExceptionHandler::Run, Description: An error occured while executing 'IOCPQueueWorkerTask', Message: bad allocation"

hMailServer then has a number of emails stuck in the queue with 0 delivery attempts. These emails are generally, but no always, fairly large i.e. 10mb upwards.
The only way of stopping/resolving these errors is to restart the service.

We have searched the forums and done the following

1. Checked all the hardware, everything is working fine.
2. Removed our own script, which has been working for years - not resolved the issue.
3. Checked that hMailServer doesn't actually run out of memory for a 32 bit app by having a script that monitors it - https://www.hmailserver.com/forum/viewtopic.php?t=26317
4. Checked the AV setup and even switched it off - no difference.
5. Cleaned up the Data directory (moved old files)
6. Run script from here - https://www.hmailserver.com/forum/viewtopic.php?t=27646
7. Run DDS
8. Checked mailbox limits (set in smtp at 25mb, all domains are 0)

Gone through this thread https://www.hmailserver.com/forum/viewtopic.php?t=27391

It just seems to be with larger files, now got a scenario where a clients mailbox can't be downloaded due to constant errors as soon as it hits a problem email file.

Any help appreciated as service is starting to suffer. Thanks.

Marc H had very similar problem
https://www.hmailserver.com/forum/viewtopic.php?t=33562
however there is no way to tell from the post if he fixed it or not
___________________________________________________________end of the line
spam filter appliance gateway: www.mailcleaner.org

nahosting
New user
New user
Posts: 20
Joined: 2013-02-14 13:32

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by nahosting » 2020-06-29 16:25

We just tried the diagnostics from HMSSettingsDiagnostics.zip
The noticeable thing was 147K whitelist entries.
We currently have loads more of the same errors.
Currently 256 IMAP connections.

User avatar
johang
Senior user
Senior user
Posts: 291
Joined: 2008-09-01 09:20

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by johang » 2020-06-29 17:03

___________________________________________________________end of the line
spam filter appliance gateway: www.mailcleaner.org

nahosting
New user
New user
Posts: 20
Joined: 2013-02-14 13:32

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by nahosting » 2020-06-29 20:07

Based on that thread and looking at other similar ones we have updated the threading from 15,10,15 to 4,2,4 based on the number cpus for the Xeon E3-1220 v5 it is running on (although the server never has any cpu issues). Restarted the service.

nahosting
New user
New user
Posts: 20
Joined: 2013-02-14 13:32

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by nahosting » 2020-06-29 21:30

nahosting wrote:
2020-06-29 20:07
Based on that thread and looking at other similar ones we have updated the threading from 15,10,15 to 4,2,4
Changing the threading made no difference.

User avatar
johang
Senior user
Senior user
Posts: 291
Joined: 2008-09-01 09:20

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by johang » 2020-06-29 22:17

nahosting wrote:
2020-06-29 12:13
It just seems to be with larger files, now got a scenario where a clients mailbox can't be downloaded due to constant errors as soon as it hits a problem email file.
My thoughts...

disk I/O ?
timeout ?
read/write ?
are those files possibly locked by any other process somehow.. ?

have you tested different imap clients ? apple, thunderbird, outlook, webmail (do they all behave the same.. getting stuck..)


in a previous life running mail services on *nix, we split DATA directorys over "separate" disk sets to get rid of problems like the ones you describe
read somewhere in the hmailserver forum about splitting on seprate servers moving domains to new hosts to minimize load


even though you say you check for mem usage ..
at what point of RAM usage does it happen for you ?
i would try what snico did .. https://www.hmailserver.com/forum/viewt ... 17#p160610



and i would sneak peak over on 5.7 and consider it ..
https://github.com/hmailserver/hmailserver/issues/258
___________________________________________________________end of the line
spam filter appliance gateway: www.mailcleaner.org

User avatar
jim.bus
Senior user
Senior user
Posts: 425
Joined: 2011-05-28 11:49
Location: US

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by jim.bus » 2020-06-30 09:36

I found this thread https://www.hmailserver.com/forum/viewtopic.php?t=29099.

The error messages listed in it looked very similar to the errors reported with your problem. There was no resolution in this thread as far as I could tell but the person who had this problem noted the problem seemingly only happened when fetching large email messages with IMAP and from your error messages and statements you are processing IMAP messages. And you were getting errors on IMAP. I can't tell by the way the person 'wrote big mails using IMAP' if he met the IMAP Mails (individual messages) were large or if he meant there were a lot of IMAP fetches or connections.

nahosting
New user
New user
Posts: 20
Joined: 2013-02-14 13:32

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by nahosting » 2020-06-30 10:07

Thanks jim.bus that does seem very similar and looking at the logs it does appear to be an issue with IMAP clients getting large files. Going to try various clients today and see if we can get to the bottom of this.

User avatar
jim.bus
Senior user
Senior user
Posts: 425
Joined: 2011-05-28 11:49
Location: US

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by jim.bus » 2020-06-30 12:43

I am getting out of my element with Out Of Memory errors. My installation never has to worry about such things as my installation is extremely small. But I was originally looking at this as a possible area of concern and on looking at this User Help file entry, Cache is related to memory usage.

See this discussion of how Cache works: https://www.hmailserver.com/documentati ... ails_cache

I do not know if this is even relevant but depending on how many Database objects you might be using at any given time, could you have so many objects that you might use all available Cache memory. If there is any correlation to this Out Of Memory error one way to confirm this is the area where problem might be would be to try Disabling Cache using hMailAdmin in the Performance Settings. This would most likely increase hMailServer Processing time but if the Out Of Memory error messages went away this would show you were running out of Cache.

However, from reading the link above and other things, I'm not expecting that to be the problem but Cache is in memory and your Error Messages indicates you may be running out of Cache as hMailServer is clearing the Cache. I would think you would need a very large number of Database objects to fill up all the available memory.

Disabling Cache is simple to do as it is simply unchecking the Cache option in the Performance section of hMailAdmin.

Another possibility related to the Cache is this thread which I had also considered this issue as a possibility and it appears Martin (Developer) also considered this in this thread. So my thoughts may very well be relevant also:

https://www.hmailserver.com/forum/viewtopic.php?t=27391

In this thread the person discovered when large messages were being processed the errors occurred. The person was not letting Windows manage the Virtual Memory Page File. His Page File was only manually set for 512 MB which is extremely small. However, it is not clear to me when he increased the Page File size if it was the solution that fixed the problem because he stated other errors cropped up. But this link is a very old link and there have been upgrades to hMailServer such that these additional errors might have been fixed by now. I let Windows System Manage my Page File and my Page File Allocation is 4864 MB. So I would check this out as well.

User avatar
jim.bus
Senior user
Senior user
Posts: 425
Joined: 2011-05-28 11:49
Location: US

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by jim.bus » 2020-06-30 13:29

One additional comment about my second alternate issue to look at in my prior post, If the data being read into memory such as maybe in the IMAP Fetch was larger than the Page File size, this would probably create a Page Fault in Windows which possibly hMailServer detects before it becomes a Page Fault. But if the Page File size too small to accommodate the size of the Page File this would probably cause the Out Of Memory Errors as a Page Fault error is addressing memory which is outside of your memory allocation as best I understand what a Page Fault is.

If you look at your error messages you get a Critical Error when trying to Fetch an IMAP Message. The error occuse when loading the MIME message. This could be because the message is too large to fit in the memory allocated which would be directly related to what the person found in the first link. That person found when the messages were too large they got Out Of Memory Errors. So, I would definitely check to see if your Windows Page File is being System Managed or the Page File size looks like it may be too small.

palinka
Senior user
Senior user
Posts: 2012
Joined: 2017-09-12 17:57

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by palinka » 2020-06-30 13:49

nahosting wrote:
2020-06-29 16:25
We just tried the diagnostics from HMSSettingsDiagnostics.zip
The noticeable thing was 147K whitelist entries.
We currently have loads more of the same errors.
Currently 256 IMAP connections.
Good Lord! That has to be your problem. Why don't you offload that to a separate database?

https://hmailserver.com/forum/viewtopic ... 20&t=33602

User avatar
mattg
Moderator
Moderator
Posts: 20965
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by mattg » 2020-07-10 07:42

could also be a 32 bit vs 64 bit problem
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

nahosting
New user
New user
Posts: 20
Joined: 2013-02-14 13:32

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by nahosting » 2020-08-18 20:25

Thanks for your feedback here guys - we are still getting this issue and have tried everything - but it is still happening.

mattg - I also related to 32 vs 64 bit - the server has 32GB and is never using more than 8GB.

I have read about a 64-bit version - although it doesn't seem to be available to download - although dravion seem to have a 64-bit version of hmail available?

Does the 64-bit one work of the same DB schema? Would it be possible for use to simply trial the 64bit version by using the new binaries with the existing DB?

Cheers everybody

User avatar
mattg
Moderator
Moderator
Posts: 20965
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by mattg » 2020-08-19 03:24

Look in Actions on Github, then for artifacts
https://github.com/hmailserver/hmailser ... s/13980830

You will need to log into Github to download

The artifact is a ZIP of the installer. Simply extract and then run on your system.

This is an ALPHA version, but some of us are running on production machines
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
SorenR
Senior user
Senior user
Posts: 3702
Joined: 2006-08-21 15:38
Location: Denmark

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by SorenR » 2020-08-19 09:28

nahosting wrote:
2020-06-29 16:25
We just tried the diagnostics from HMSSettingsDiagnostics.zip
The noticeable thing was 147K whitelist entries.
We currently have loads more of the same errors.
Currently 256 IMAP connections.
147,000 whitelist entries ?!?!?!

For real ??

Why ??

I'll explain the problem in everyday terms... Wife gives you a list of 147,000 items, you cannot write it down, you have to remember it - now go do your normal job and remember wife may call you at any given time to ask if an item is on the list.

There are plenty examples here on how to "offload" lists from memory, I could mention this :wink: : https://www.hmailserver.com/forum/viewt ... 74#p209774
SørenR.

“Those who don't know history are doomed to repeat it.”
― Edmund Burke

nahosting
New user
New user
Posts: 20
Joined: 2013-02-14 13:32

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by nahosting » 2020-08-19 12:47

Thanks for your comments SorenR,

But why do you think this is an issue, this is in the DB - the lookup is going to be instant - it's probably all stored in RAM - the table is only 1MB in size.

I think offloading to a file based lookup in the script would cause more of an issue, potential file locking issues, slower to look up than a DB?

The whitelist is created for webmail users contact lists, to ensure their contacts bypass expensive spam checks.

Really, this is improving the performance, as this won't perform the slow SpamAssassin checks etc.

I think using the built in whitelist is the only way to do this - I don't think you can bypass spam checks using the scripts.

palinka
Senior user
Senior user
Posts: 2012
Joined: 2017-09-12 17:57

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by palinka » 2020-08-19 18:36

SorenR wrote:
2020-08-19 09:28
nahosting wrote:
2020-06-29 16:25
We just tried the diagnostics from HMSSettingsDiagnostics.zip
The noticeable thing was 147K whitelist entries.
We currently have loads more of the same errors.
Currently 256 IMAP connections.
147,000 whitelist entries ?!?!?!

For real ??

Why ??

I'll explain the problem in everyday terms... Wife gives you a list of 147,000 items, you cannot write it down, you have to remember it - now go do your normal job and remember wife may call you at any given time to ask if an item is on the list.

There are plenty examples here on how to "offload" lists from memory, I could mention this :wink: : https://www.hmailserver.com/forum/viewt ... 74#p209774
palinka wrote:
nahosting wrote:
2020-06-29 16:25
We just tried the diagnostics from HMSSettingsDiagnostics.zip
The noticeable thing was 147K whitelist entries.
We currently have loads more of the same errors.
Currently 256 IMAP connections.
Good Lord! That has to be your problem. Why don't you offload that to a separate database?

https://hmailserver.com/forum/viewtopic ... 20&t=33602
Hmmmm.... Great minds think alike. :mrgreen:

But I think the OP has a point with bypassing spamassassin. A very dirty search produced nothing. But if anyone knows, you can figure it out. :mrgreen:

nahosting
New user
New user
Posts: 20
Joined: 2013-02-14 13:32

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by nahosting » 2020-08-19 19:51

I've looked at the source code, and it appears that whitelists are actually cached. Now the issue we are experiencing is related to caches.

So, I am looking in to further now!

Thanks palinka & SorenR

nahosting
New user
New user
Posts: 20
Joined: 2013-02-14 13:32

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by nahosting » 2020-08-21 15:25

Unfortunately, we're still getting this issue, even when the whitelist is not in use :(

palinka
Senior user
Senior user
Posts: 2012
Joined: 2017-09-12 17:57

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by palinka » 2020-08-21 16:13

nahosting wrote:
2020-06-29 12:13

"ERROR" 12168 "2020-06-28 15:17:57.260" "Severity: 2 (High), Code: HM4208, Source: File::ReadFile(), Description: An error occured when reading file., Message: bad allocation"
"ERROR" 12168 "2020-06-28 15:17:57.260" "Severity: 3 (Medium), Code: HM4227, Source: File::ReadFile, Description: An unknown error occurred while reading file from disk."
"ERROR" 12168 "2020-06-28 15:17:57.260" "Severity: 3 (Medium), Code: HM5042, Source: File::ReadTextFile, Description: An unknown error occurred while reading a text file from disk."
"ERROR" 12168 "2020-06-28 15:17:57.260" "Severity: 1 (Critical), Code: HM5062, Source: IMAPFetch::ReportCriticalError_, Description: ERROR HM10001 - IMAP FETCH: Error when loading MIME message. - D:\ProgramData\hMailServer\Data\[REMOVED DOMAIN]\[REMOVED EMAIL]\FF\{FF24A71F-F059-4EBA-B35B-AF97FE6534F9}.eml"
"APPLICATION" 12168 "2020-06-28 15:17:57.260" "OutOfMemoryHandler - hMailServer has run out of memory, clearing caches."
"APPLICATION" 12168 "2020-06-28 15:17:57.260" "OutOfMemoryHandler - hMailServer has run out of memory, clearing caches."
"ERROR" 12168 "2020-06-28 15:17:57.260" "Severity: 3 (Medium), Code: HM5136, Source: TCPConnection::AsyncReadCompleted, Description: An error occured while parsing data. Data length: 185, Data: v3tn UID FETCH 242:244,405:406,427:428,510:511,525:526,685:686,692:694,823:824,859:860,888:889,908:912,927:928,945:947,993:995,1014:1015 (UID FLAGS RFC822.SIZE BODY.PEEK[] INTERNALDATE). Remote IP: [REMOVED]"
"ERROR" 12168 "2020-06-28 15:17:57.260" "Severity: 2 (High), Code: HM4208, Source: ExceptionHandler::Run, Description: An error occured while executing 'IOCPQueueWorkerTask', Message: bad allocation"

Are you sure its not a hardware issue? Try running a memory tester. Usually "bad allocation" is a sign of bad RAM.

Also, less likely, is bad hard disk.

Lastly, if you have plenty of memory, turn off pagefile. Can you still do that? LOL... I once had a bad disk. The pagefile area was corrupted and I got the BSOD. It presented as a memory error, however.

User avatar
jim.bus
Senior user
Senior user
Posts: 425
Joined: 2011-05-28 11:49
Location: US

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by jim.bus » 2020-08-21 20:08

Wild stab in the dark.

Since palinka mentioned possible pagefile problem. You might check the pagefile allocation. Sometimes the pagefile allocation amounts gets changed without you being aware it has changed. I believe this may sometimes happen when a Windows Update occurs. Usually though a too small pagefile would result in a slow down though from my experience. But it wouldn't hurt to check the pagefile allocation.

nahosting
New user
New user
Posts: 20
Joined: 2013-02-14 13:32

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by nahosting » 2020-08-21 20:51

Thanks for these other suggestions' guys.

I cannot be 100% sure it's not a hardware issue, but other monitoring and services are not being affected, e.g. backups which go over all the disks and files have no issues.

If it were a RAM issue, I would expect more transient issues across the whole server and total crashing?

That said - we currently have RAM test running to ensure the RAM is all OK :)

The page file is managed by Windows and is currently set at 4985MB (32GB RAM)

The only thing that appears to be affected is hMail - and *only* where there is a largish email in the delivery queue. It's usually with a size of > 10MB - but large emails also work as well - it's just whenever there is an issue - the source is a "large" email.

User avatar
jim.bus
Senior user
Senior user
Posts: 425
Joined: 2011-05-28 11:49
Location: US

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by jim.bus » 2020-08-21 21:20

nahosting wrote:
2020-08-21 20:51
Thanks for these other suggestions' guys.


If it were a RAM issue, I would expect more transient issues across the whole server and total crashing?
Not necessarily. I get periodic RAM issues myself. I don't know if its a hardware RAM issue or not. My issue seems to relate to only when the temperature in my room is high due to lack of air conditioning I have in the summer. When temps are cooler, I do not have a RAM issue. When they are hotter, I get a RAM issue. When I run Windows Memory Diagnostics it will sometimes detect a RAM hardware issue when it is in the summer and not when it is in cooler times of the year.

Many times when I have a RAM issue I will get a notification that it couldn't read a single memory location but otherwise there isn't much of a problem. Sometimes when there is a RAM issue I will get the Light Blue Screen Of Death (LBSOD). Sometimes on these LBSOD crashes the only reason I know there was a RAM issue is I will get an error message along with it stating there was a Page Fault which I know is related to a RAM issue.

In short my RAM issues do not affect me much except for annoyance usually.

nahosting
New user
New user
Posts: 20
Joined: 2013-02-14 13:32

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by nahosting » 2020-08-23 17:23

Just to update on this - RAM test results show there are no issues with the RAM.

Going to start playing with the 64 bit version to see if we can switch it in/out in place of the 32 bit one - hopefully, the DB and file structure is the same between the two.

User avatar
mattg
Moderator
Moderator
Posts: 20965
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: OutOfMemoryHandler - hMailServer has run out of memory

Post by mattg » 2020-08-24 05:19

nahosting wrote:
2020-08-23 17:23
Going to start playing with the 64 bit version to see if we can switch it in/out in place of the 32 bit one - hopefully, the DB and file structure is the same between the two.
Yep

Backup first
But the 5.7 version should just install over the top of 5.6.X
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

Post Reply