/var/run/log/vmkernel.log contains messages indicating that the likewise agent is getting close to run out of available memory, specifically these entries:<timestamps> cpu#:###)MemSched: 14642: uw.2924860 (14074759) extraMin/extraFromParent: 256/256, likewise (790) childEmin/eMinLimit: 99871/100096
<timestamps> cpu#:###)MemSched: 14635: Admission failure in path: likewise/lwsmd.2924860/uw.2924860
<timestamps> cpu#:###)MemSched: 14642: uw.2924860 (14074759) extraMin/extraFromParent: 256/256, likewise (790) childEmin/eMinLimit: 99871/100096
<timestamps> cpu#:###)MemSched: 14635: Admission failure in path: likewise/lwsmd.2924860/uw.2924860
<timestamp> Wa(180) vmkwarning: cpu27:2101383)WARNING: LinuxThread: 411: lwsmd: Error cloning thread: -12 (bad0014)
<timestamp> In(182) vmkernel: cpu27:2101383)Admission failure in path: host/vim/vmvisor/likewise:lwsmd.2101378:uwWorldStore.2101378
<timestamp> In(182) vmkernel: cpu27:2101383)uwWorldStore.2101378 (10580) requires 44 KB, asked 44 KB from likewise (836) which has 93184 KB occupied and 0 KB available.
<timestamp> In(182) vmkernel: cpu27:2101383)Admission failure in path: host/vim/vmvisor/likewise:lwsmd.2101378:uwWorldStore.2101378
<timestamp> In(182) vmkernel: cpu27:2101383)uwWorldStore.2101378 (10580) requires 44 KB, asked 44 KB from likewise (836) which has 93184 KB occupied and 0 KB available.
<timestamp> Wa(180) vmkwarning: cpu27:2101383)WARNING: World: 3234: Could not allocate new world handle for world ID: 26953837: Out of memory
<timestamp> Wa(180) vmkwarning: cpu52:2135899)WARNING: MemSchedAdmit: 1263: Group likewise: Requested memory limit 0 KB insufficient to support effective reservation 25192 KB
/var/run/log/vmkernel.log:<timestamp> Wa(180) vmkwarning: cpu52:2135899)WARNING: MemSchedAdmit: 1263: Group likewise: Requested memory limit 0 KB insufficient to support effective reservation 25192 KBand in
<timestamp> In(182) vmkernel: cpu6:2135943)User: 3259: lwsmd: wantCoreDump:lwsmd signal:11 exitCode:0 coredump:enabled
<timestamp> In(182) vmkernel: cpu6:2135943)UserDump: 3157: lwsmd: Dumping cartel 2135924 (from world 2135943) to file /var/core/lwsmd-zdump.000 ...
/var/run/log/vobd.log:YYYY-MM-DDTHH:MM:SS.810Z In(14) vobd[2097766]: [UserWorldCorrelator] 10473605981us: [esx.problem.application.core.dumped] An application (/usr/lib/vmware/likewise/sbin/lwsmd) running on ESXi host has crashed (1 time(s) so far). A core file may have been created at /var/core/lwsmd-zdump.000
Note: In recent ESXi versions, core dumps are disabled for Likewise. If this is the case, messages like lwsmd: wantCoreDump:lwsmd signal:11 exitCode:0 coredump:disabled might be observed instead./var/run/log/syslog.log might contain messages like:YYYY-MM-DDTHH:MM:SS.216Z Er(27) lwsmd[2100830]: [lwsm] Could not start bootstrap service: LW_ERROR_SERVICE_UNRESPONSIVE
This issue occurs when the memory pool for the Likewise service runs out of memory due to existing memory leaks in Active Directory operations and related libraries.
When smart card authentication is enabled and configured on the ESXi hosts, Likewise memory leaks are also observed.
The memory management for Likewise has been greatly improved in ESXi 8.0 Update 3i, with partial improvements introduced in the earlier version ESXi 8.0 Update 3h. Furthermore ESXi 8.0 Update 3e introduces an (optional) watchdog service to monitor the memory utilization of Likewise and can trigger automated restarts of the agent when it is about to exhaust its memory pool.
VMware Engineering continuing to improve the behavior, subscribe to this article to receive the latest updates.
The following workarounds are available:
lwisOomCheck was introduced. This service is disabled by default, but if enabled it monitors the Likewise memory usage and automatically triggers a restart of the Likewise service in order to mitigate the issue.http://<vCenter_FQDN_or_IP>/ui[email protected].http://<ESXi_FQDN_or_IP>/uiroot account./tmp/ folder of the ESXi host, which is called lwis-oom-stats. When the script detects that Likewise has exhausted its memory, it will automatically remediate the issue.Note: This workaround is temporary and will not persist if the ESXi host is rebooted.
lwis-mem-check-2.zip archive attached to this article.lwis-mem-check-2.sh script into the /tmp/ directory of the ESXi host.# chmod +x /tmp/lwis-mem-check-2.sh
# setsid /tmp/lwis-mem-check-2.sh >/dev/null 2>&1 < /dev/null &
Important: Back up the ESXi host configuration before proceeding. Refer to How to back up and restore the ESXi host configuration.
Notes:
This option is not available if Secure Boot is enabled. If you are unfamiliar with these steps, contact Broadcom support for assistance.
The script must be stored on a shared persistent datastore path, so it can be retrieved during startup.
lwis-mem-check-2.zip archive attached to this article.lwis-mem-check-2.sh script into a folder on a persistent datastore accessible by the ESXi host.root user.# cp /etc/rc.local.d/local.sh /local.sh_bak
# vi /etc/rc.local.d/local.sh
exit 0 statement:cp /vmfs/volumes/<Datastore>/<script_path>/lwis-mem-check-2.sh /tmp/
chmod +x /tmp/lwis-mem-check-2.sh
setsid /tmp/lwis-mem-check-2.sh >/dev/null 2>&1 < /dev/null &
Note: <Datastore> and <script_path> must be replaced with the actual datastore and respective folder the lwis-mem-check-2.sh script was placed in.:wq!.# /sbin/auto-backup.sh
# /etc/init.d/lwsmd stop
lwsmd service is configured to start automatically, update the service start policy to Start and stop manually.