/var/run/log/vmkernel.log contains indication for the likewise agent being close to run out of available memory, specifically these messages:<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 likelwsmd: wantCoreDump:lwsmd signal:11 exitCode:0 coredump:disabledmight 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
VMware ESXi 7.x
VMware ESXi 8.x
The issue occurs due to the exhaustion of Likewise memory because of 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. VMware Engineering continuing to improve the behavior, subscribe to this article to receive the latest updates.
Additionally the following workarounds are available:
The script provided below monitors the Likewise memory usage and generates a file in the /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 assitance.
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.# 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 thelwis-mem-check-2.shscript was placed in.
:wq!.# /sbin/auto-backup.sh
# /etc/init.d/lwsmd stop
lwsmd service is configured to start automatically, update the service policy to Start and stop manually.