September 23th Wednesday

本文讨论了在项目中遇到的服务器并发处理瓶颈问题,通过测试发现主要限制来自于操作系统层面。作者提出了使用Erlang开发服务器并结合Bio算法进行优化的想法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  Today I tested my biogine.  It can deal with about 260 request at once.  But it is so low for the requirement of our project.  Why?  In this project, the server may have to fact up to thounds request at one time.

 

  After discussing on the problem now, we decided to study the source of nginx, yeah it is just the great http server.  More and more application, the nginx prevailed over the apache.

 

  It also means that it is hard to study its sources.

 

$ perl -MIO::Socket -e '$s=new IO::Socket::INET( LocalPort => 9999, Listen => 5 ); sleep(1) while 1'


$ perl -MIO::Socket -le 'foreach(1..100000){ $c=new IO::Socket::INET( PeerAddr => "127.0.0.1:9999" ); redo unless $c; push @c, $c; print }'


$ netstat -nat | grep EST | grep 9999 | wc -l

 

  The above is code segment to test the backlog in an OS.  That is from my a workmate.

 

  From the testing, the main problem is the limit in OS.  Now, we are all seeking a good and easy way to slove it.

We must improve the link number at the same time.

 

  Maybe we can use Erlang to develop a server, and make a interface as a bridge to the BioOne algorithm.  However, I don't know wether our leaders accept that way.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值