service ldap failed with message ch_malloc of 50272082776 bytes failed

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
alpha041
Posts: 4
Joined: Sun Apr 11, 2021 4:54 pm

service ldap failed with message ch_malloc of 50272082776 bytes failed

Post by alpha041 »

Hello everyone,

After a power outage, we were forced to run fsck on our zimbra server. After that operation the server started normally but everytime we are trying to start zimbra server

The ldap service constantly fail with this message in log :

Code: Select all

Apr 11 16:10:06 zimbra slapd[5801]: ch_malloc of 50272082776 bytes failed
Apr 11 16:33:49 zimbra slapd[125757]: ch_malloc of 50272082776 bytes failed
Apr 11 16:46:37 zimbra slapd[8508]: ch_malloc of 50272082776 bytes failed
Apr 11 16:48:59 zimbra slapd[17087]: ch_malloc of 50272082776 bytes failed
Apr 11 16:49:36 zimbra slapd[21111]: ch_malloc of 50272082776 bytes failed
Apr 11 16:50:34 zimbra slapd[23136]: ch_malloc of 50272082776 bytes failed
Apr 11 16:58:04 zimbra slapd[28856]: ch_malloc of 50272082776 bytes failed
Apr 11 17:14:42 zimbra slapd[15830]: ch_malloc of 50272082776 bytes failed
Apr 11 17:26:08 zimbra slapd[32136]: ch_malloc of 50272082776 bytes failed
Apr 11 17:32:26 zimbra slapd[2839]: ch_malloc of 50272082776 bytes failed
I see that ldap is trying to allocate 46gb of memory and it is not normal. We have a small installation, around 400 users. 12Go of RAM.

Our version of zimbra : Release 8.8.15_GA_3869.RHEL6_64_20190917004220 RHEL6_64 FOSS edition, Patch 8.8.15_P9.

Can anyone help us resolve that issue ?

Thanks
Klug
Ambassador
Ambassador
Posts: 2762
Joined: Mon Dec 16, 2013 11:35 am
Location: France - Drôme
ZCS/ZD Version: All of them
Contact:

Re: service ldap failed with message ch_malloc of 50272082776 bytes failed

Post by Klug »

Looks like the LDAP database is in bad shape, you should restore a backup/dump.
alpha041
Posts: 4
Joined: Sun Apr 11, 2021 4:54 pm

Re: service ldap failed with message ch_malloc of 50272082776 bytes failed

Post by alpha041 »

Hello and thanks for your reply

IS there a documentation that can guide me to do that ?

Do zimbra automatically make a backup ?

I have a backup of our server (2 months old) can i use it to restore ldap ? If yes is there a documentation to do that ?

Best regards
alpha041
Posts: 4
Joined: Sun Apr 11, 2021 4:54 pm

Re: service ldap failed with message ch_malloc of 50272082776 bytes failed

Post by alpha041 »

Hello Guys

My problem is solved. I used the solution mentionned in this link : viewtopic.php?t=57865

export the database and reimport it. Some account are missing. But it's another problem.

Thanks
Klug
Ambassador
Ambassador
Posts: 2762
Joined: Mon Dec 16, 2013 11:35 am
Location: France - Drôme
ZCS/ZD Version: All of them
Contact:

Re: service ldap failed with message ch_malloc of 50272082776 bytes failed

Post by Klug »

You should read documentation (wiki) and make your own backups if you don't have the right version (Network Edition or OpenSource Edition + ZeXtras).
alpha041
Posts: 4
Joined: Sun Apr 11, 2021 4:54 pm

Re: service ldap failed with message ch_malloc of 50272082776 bytes failed

Post by alpha041 »

thanks for the suggestion. I will do it.

For deleted account here is the link i use to restore : https://wiki.zimbra.com/wiki/How_to_res ... _from_LDAP

And one more time thank you for point me to the right direction.
Post Reply