Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Epoll模式错误 #6

Closed
kaibusi opened this issue Sep 11, 2015 · 1 comment
Closed

Epoll模式错误 #6

kaibusi opened this issue Sep 11, 2015 · 1 comment

Comments

@kaibusi
Copy link

kaibusi commented Sep 11, 2015

main.xml中改成Epoll模式,执行PurenessScopeServer。提示如下:
[ 10:16:18.672993|140657353844512][CServerManager::Init()]... i=[0].
ACE_Dev_Poll_Reactor::open failed inside ACE_Dev_Poll_Reactor::CTOR: No such file or directory
[ 10:16:18.673788|140657353844512][CAceReactorManager::AddNewReactor]New [0] ReactorTxype = [4] nThreadCount = [1]. pAceReactor=[0x789030]
[ 10:16:18.673824|140657353844512][CServerManager::Init]AddNewReactor REACTOR_CLIENTDEFINE = Reactor_DEV_POLL.
[ 10:16:18.673850|140657353844512][CServerManager::Init()]... i=[1].
ACE_Dev_Poll_Reactor::open failed inside ACE_Dev_Poll_Reactor::CTOR: No such file or directory
[ 10:16:18.674584|140657353844512][CAceReactorManager::AddNewReactor]New [1] ReactorTxype = [4] nThreadCount = [1]. pAceReactor=[0x789560]
[ 10:16:18.674618|140657353844512][CServerManager::Init]AddNewReactor REACTOR_CLIENTDEFINE = Reactor_DEV_POLL.
[ 10:16:18.674643|140657353844512][CServerManager::Init()]... i=[2].
ACE_Dev_Poll_Reactor::open failed inside ACE_Dev_Poll_Reactor::CTOR: No such file or directory
[ 10:16:18.675030|140657353844512][CAceReactorManager::AddNewReactor]New [2] ReactorTxype = [4] nThreadCount = [1]. pAceReactor=[0x789b00]
[ 10:16:18.675060|140657353844512][CServerManager::Init]AddNewReactor REACTOR_CLIENTDEFINE = Reactor_DEV_POLL.
[ 10:16:18.675084|140657353844512][CServerManager::Init()]... i=[3].
ACE_Dev_Poll_Reactor::open failed inside ACE_Dev_Poll_Reactor::CTOR: No such file or directory
[ 10:16:18.675470|140657353844512][CAceReactorManager::AddNewReactor]New [3] ReactorTxype = [4] nThreadCount = [1]. pAceReactor=[0x78a090]
[ 10:16:18.675500|140657353844512][CServerManager::Init]AddNewReactor REACTOR_CLIENTDEFINE = Reactor_DEV_POLL.
[ 10:16:18.675523|140657353844512][CServerManager::Init()]... i=[4].
ACE_Dev_Poll_Reactor::open failed inside ACE_Dev_Poll_Reactor::CTOR: No such file or directory
[ 10:16:18.675899|140657353844512][CAceReactorManager::AddNewReactor]New [4] ReactorTxype = [4] nThreadCount = [1]. pAceReactor=[0x78a620]
[ 10:16:18.675928|140657353844512][CServerManager::Init]AddNewReactor REACTOR_CLIENTDEFINE = Reactor_DEV_POLL.
[ 10:16:18.675952|140657353844512][CServerManager::Init()]... i=[5].
ACE_Dev_Poll_Reactor::open failed inside ACE_Dev_Poll_Reactor::CTOR: No such file or directory
[ 10:16:18.676326|140657353844512][CAceReactorManager::AddNewReactor]New [5] ReactorTxype = [4] nThreadCount = [1]. pAceReactor=[0x78abb0]
[ 10:16:18.676356|140657353844512][CServerManager::Init]AddNewReactor REACTOR_CLIENTDEFINE = Reactor_DEV_POLL.
......................
[ 10:16:19.988129|140657353844512][CServerManager::Start]Begin.
Segmentation fault (core dumped)
我用的是ACE6.3.0版本,按照说明文档已经把/etc/security/limits.conf文件各项设置6000,并已经重启系统生效。用的TCPtest例子测试的。
用select,poll模式都测试了,正常运行,只有epoll出现问题。
请帮忙看下这是什么问题导致的,谢谢

@kaibusi
Copy link
Author

kaibusi commented Sep 11, 2015

我找到原因了。 main.xml中 MaxHandlerCount="10000",而我系统设置的最大是6000,超过了系统的上限值。把系统的上限值改大或者改小MaxHandlerCount,就不会出错误了。

@freeeyes freeeyes closed this as completed May 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants