我正在尝试使用Postfix + Dovecot将SOGo添加到已经正常工作的服务器中。
服务器是Centos 7,2核心,3Gb RAM,用户少于10个。 Sogo从官方仓库安装:sogo-2.3.8-1.el7.centos.x86_64
/ etc / sysconfig / sogo为10名工人设置:PREFORK = 10“
Sogo配置了10名具有此配置的工作人员:
WOListenQueueSize=10; WOWatchDogRequestTimeout=60; SOGoMaximumPingInterval = 354; SOGoMaximumSyncInterval = 354; SOGoInternalSyncInterval = 15; SOGoMaximumSyncWindowSize = 50; SOGoMaximumSyncResponseSize = 2048;
问题似乎是有效的同步客户端(ms outlook)。 SOGo进程开始吃掉所有RAM并且有时会挂起(进程不能被信号15杀死)。该问题似乎与日志文件报告有关:
Feb 19 13:30:26 sogod [13164]: Sleeping 15 seconds while detecting changes in Ping... Feb 19 13:30:26 sogod [13163]: Sleeping 15 seconds while detecting changes in Ping... Feb 19 13:30:26 sogod [13150]: [ERROR] No child available to handle incoming request! Feb 19 13:30:26 sogod [13155]: Sleeping 15 seconds while detecting changes in Ping... Feb 19 13:30:27 sogod [13152]: Sleeping 15 seconds while detecting changes in Ping... Feb 19 13:30:27 sogod [13150]: [WARN] pid 13168 has been hanging in the same request for 3 minutes Feb 19 13:30:28 sogod [13150]: [ERROR] No child available to handle incoming request! Feb 19 13:30:28 sogod [13150]: [WARN] pid 13164 has been hanging in the same request for 3 minutes Feb 19 13:30:29 sogod [13150]: [ERROR] No child available to handle incoming request! Feb 19 13:30:29 sogod [13150]: [WARN] pid 13163 has been hanging in the same request for 2 minutes Feb 19 13:30:30 sogod [13168]: Sleeping 15 seconds while detecting changes in Ping... Feb 19 13:30:30 sogod [13150]: [WARN] pid 13151 has been hanging in the same request for 1 minutes Feb 19 13:35:03 sogod [13150]: [WARN] pid 13153 has been hanging in the same request for 5 minutes Feb 19 13:35:04 sogod [13150]: [ERROR] No child available to handle incoming request! Feb 19 13:35:06 sogod [13150]: [ERROR] No child available to handle incoming request! Feb 19 13:35:07 sogod [13153]: Sleeping 15 seconds while detecting changes in Ping... Feb 19 13:35:07 sogod [13150]: [ERROR] No child available to handle incoming request! Feb 19 13:35:08 sogod [13164]: Sleeping 15 seconds while detecting changes in Ping...
我使用gdb来查看其中一个挂起进程。答案如下:
#0 0x00007f176ddcc49d in nanosleep () from /lib64/libc.so.6 #1 0x00007f176ddcc334 in sleep () from /lib64/libc.so.6 #2 0x00007f17608e8a99 in -[SOGoActiveSyncDispatcher processPing:inResponse:] () from /usr/lib64/GNUstep/SOGo/ActiveSync.SOGo/./ActiveSync #3 0x00007f17608eee4b in -[SOGoActiveSyncDispatcher dispatchRequest:inResponse:context:] () from /usr/lib64/GNUstep/SOGo/ActiveSync.SOGo/./ActiveSync #4 0x00007f1760d50d84 in -[SOGoMicrosoftActiveSyncActions microsoftServerActiveSyncAction] () from /usr/lib64/GNUstep/SOGo/MainUI.SOGo/./MainUI #5 0x00007f1773e61113 in -[WODirectAction performActionNamed:] () from /lib64/libNGObjWeb.so.4.9 #6 0x00007f1773ee3834 in -[SoActionInvocation callOnObject:withPositionalParametersWhenNotNil:inContext:] () from /lib64/libNGObjWeb.so.4.9 #7 0x00007f1773edee98 in -[SoObjectMethodDispatcher dispatchInContext:] () from /lib64/libNGObjWeb.so.4.9 #8 0x00007f1773ee0f09 in -[SoObjectRequestHandler handleRequest:inContext:session:application:] () from /lib64/libNGObjWeb.so.4.9 #9 0x00007f1773e72753 in -[WORequestHandler handleRequest:] () from /lib64/libNGObjWeb.so.4.9 #10 0x00007f1773e3433c in -[WOCoreApplication dispatchRequest:usingHandler:] () from /lib64/libNGObjWeb.so.4.9 #11 0x00007f1773e3463f in -[WOCoreApplication dispatchRequest:] () from /lib64/libNGObjWeb.so.4.9 #12 0x00007f17751fbb4d in -[SOGo dispatchRequest:] () #13 0x00007f1773ed1a85 in -[WOHttpTransaction _run] () from /lib64/libNGObjWeb.so.4.9 #14 0x00007f1773ed1de5 in -[WOHttpTransaction run] () from /lib64/libNGObjWeb.so.4.9 #15 0x00007f1773ecd9e4 in -[WOHttpAdaptor runConnection:] () from /lib64/libNGObjWeb.so.4.9 #16 0x00007f1773ecdc02 in -[WOHttpAdaptor _handleAcceptedConnection:] () from /lib64/libNGObjWeb.so.4.9 #17 0x00007f1773ecdff7 in -[WOHttpAdaptor _handleConnection:] () from /lib64/libNGObjWeb.so.4.9 #18 0x00007f1773ece2c3 in -[WOHttpAdaptor acceptControlMessage:] () from /lib64/libNGObjWeb.so.4.9 #19 0x00007f177261613f in -[NSNotificationCenter _postAndRelease:] () from /lib64/libgnustep-base.so.1.24 #20 0x00007f17732a0e3d in -[NSObject(FileObjectWatcher) receivedEvent:type:extra:forMode:] () from /lib64/libNGExtensions.so.4.9 #21 0x00007f177271ceea in -[GSRunLoopCtxt pollUntil:within:] () from /lib64/libgnustep-base.so.1.24 #22 0x00007f177265d870 in -[NSRunLoop acceptInputForMode:beforeDate:] () from /lib64/libgnustep-base.so.1.24 #23 0x00007f177265dd22 in -[NSRunLoop runMode:beforeDate:] () from /lib64/libgnustep-base.so.1.24 #24 0x00007f1773e33b94 in -[WOCoreApplication run] () from /lib64/libNGObjWeb.so.4.9 #25 0x00007f17751fb1fe in -[SOGo run] () #26 0x00007f1773e7bc5e in -[WOWatchDog _runChildWithControlSocket:] () from /lib64/libNGObjWeb.so.4.9 #27 0x00007f1773e7c0f1 in -[WOWatchDog _spawnChild:] () from /lib64/libNGObjWeb.so.4.9 #28 0x00007f1773e7c7d9 in -[WOWatchDog _ensureChildren] () from /lib64/libNGObjWeb.so.4.9 #29 0x00007f1773e7d7f6 in -[WOWatchDog run:argc:argv:] () from /lib64/libNGObjWeb.so.4.9 #30 0x00007f1773e7df21 in WOWatchDogApplicationMain () from /lib64/libNGObjWeb.so.4.9 #31 0x00007f17751fa491 in main ()
请帮忙吗?
答案 0 :(得分:0)
vim / etc / sysconfig / sogo
prefork的= 10
USER = SOGO
vim /etc/rc.d/init.d/sogod
prefork的= 10