[root@A /]# systemctl status
● - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/; enabled; vendor preset: disabled)
Active: failed (Result: core-dump) since 四 2020-12-17 09:23:35 CST; 2min 21s ago
Docs: man:smbd(8)
man:samba(7)
man:(5)
Process: 49967 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=dumped, signal=ABRT)
Main PID: 49967 (code=dumped, signal=ABRT)
Status: "smbd: ready to serve connections..."
12月 17 09:23:35 uc smbd[49967]: #5 /usr/lib64/samba/(exit_server+0x14) [0x7fad685ebaf4]
12月 17 09:23:35 smbd[49967]: #6 /usr/sbin/smbd(main+0x1283) [0x55ec22095223]
12月 17 09:23:35 smbd[49967]: #7 /lib64/.6(__libc_start_main+0xf5) [0x7fad5edef505]
12月 17 09:23:35 smbd[49967]: #8 /usr/sbin/smbd(+0x8e34) [0x55ec22095e34]
12月 17 09:23:35 smbd[49967]: [2020/12/17 09:23:35.778928, 0] ../../source3/lib/:318(dump_core)
12月 17 09:23:35 smbd[49967]: coredump is handled by helper binary specified at /proc/sys/kernel/core_pattern
12月 17 09:23:35 systemd[1]: : main process exited, code=dumped, status=6/ABRT
12月 17 09:23:35 systemd[1]: Unit entered failed state.
12月 17 09:23:35 systemd[1]: failed.
12月 17 09:23:37 systemd-coredump[49973]: Process 49967 (smbd) of user 0 dumped core.
Stack trace of thread 49967:...
Hint: Some lines were ellipsized, use -l to show in full.
Result: core-dump
内存溢出:访问的内存超出了系统所给这个程序的内存空间
后经查是Docker samba运行导致内存不足,无法启动,关闭后正常。
或者不关闭,使用其他方案:
1、调用命令查看系统所提供的内存空间:
ulimit -a
查看:
stack size (kbytes, -s) 8192
如果8192<程序运行所需要的内存
调用命令
ulimit -s 102400
把内存改为102400
2、core file为0.(用ulimit -a查看)
输入命令:
ulimit -c unlimited。