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

服务器性能优化 #1

Open
TitorX opened this issue Sep 21, 2015 · 1 comment
Open

服务器性能优化 #1

TitorX opened this issue Sep 21, 2015 · 1 comment

Comments

@TitorX
Copy link
Owner

TitorX commented Sep 21, 2015

服务器层需要进行优化
socket层的工作模式不够清晰简洁需要重构
目前多进程工作模式采用每一进程监听一个端口拥有一个线程池,使用nginx进行负载均衡。此种方式需要反思,是否采用仅一个入口的模式。
线程池中的线程工作时生成一个handler对象,请求处理完毕后释放等待下次请求。工作模式值得反思。是否应当实现为每个线程固定拥有一个handler,每次新的请求到来仅传入新的请求数据,请求结束清除该次的数据。
Handler的工作模式不会更改。

@Revolution1
Copy link

试试端口复用,后期再用epoll等事件驱动框架来改善性能

@TitorX TitorX changed the title 服务器优化 服务器性能优化 Oct 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants