Giter Site home page Giter Site logo

push's Introduction

push

百万连接测试

对于推送技术,一般需要和客户端建立一个长连接,所以需要测试一下单台机器能够建立的链接数据以及推送能力。

此项目用于做一些基准测试以及性能测试程序。

现在的程序主要是用于创建tcp长连接的程序。

一 方法介绍和脚本说明

主要的方法,是在单台主机上建立20个左右的虚拟ip地址,每个虚拟ip地址大约有6w个可用的端口号,差不多可以 和服务器端建立20*6w ~ 100w个tcp长连接。

1.ipup.sh和ipdown.sh两个脚本用来开启和关闭虚拟ip地址 2.server现在主要是监听客户端的连接,client端通过虚拟ip地址访问server端口。

二 统计数据:

socket建立连接数:

socket建立连接数

内存消耗对比:

memory consume before run the test

memory consume after run the test

整个建立连接的过程耗费了大约有五分钟的时间。

可以参考的文档连接地址:

A Million-user Comet Application with Mochiweb

http://www.metabrew.com/article/a-million-user-comet-application-with-mochiweb-part-3

100万并发连接服务器笔记之处理端口数量受限问题

http://www.blogjava.net/yongboy/archive/2013/04/09/397594.html

push's People

Contributors

fisheuler avatar

Watchers

Jeff Xie avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.