当前位置:网站首页>C1000k TCP connection upper limit test

C1000k TCP connection upper limit test

2022-04-23 19:06:00 franket

Preface

c1000k It's a set used to test local OS TCP Connection limit C/S Gadget .

This is the TCP server-client suit to help you test if your OS supports c1000k(1 million connections).

Let's share c1000k The basic use method , see Official documents


Summary


Download and install

Install using

wget --no-check-certificate https://github.com/ideawu/c1000k/archive/master.zip
unzip master.zip
cd c1000k-master
make

setup script

[[email protected] c1000k]# wget --no-check-certificate https://github.com/ideawu/c1000k/archive/master.zip
--2015-11-25 13:44:07--  https://github.com/ideawu/c1000k/archive/master.zip
Resolving github.com... 192.30.252.130
Connecting to github.com|192.30.252.130|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/ideawu/c1000k/zip/master [following]
--2015-11-25 13:44:09--  https://codeload.github.com/ideawu/c1000k/zip/master
Resolving codeload.github.com... 192.30.252.146
Connecting to codeload.github.com|192.30.252.146|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: “master.zip”

    [ <=>                                                                        ] 3,075       --.-K/s   in 0s      

2015-11-25 13:44:11 (11.3 MB/s) - “master.zip” saved [3075]

[[email protected] c1000k]# ls
master.zip
[[email protected] c1000k]# du -sh master.zip 
4.0K	master.zip
[[email protected] c1000k]# unzip master.zip 
Archive:  master.zip
f435ee41fca847b71aab679fed1d9b07c979cfba
   creating: c1000k-master/
 extracting: c1000k-master/.gitignore  
  inflating: c1000k-master/Makefile  
  inflating: c1000k-master/README.md  
  inflating: c1000k-master/client.c  
  inflating: c1000k-master/server.c  
[[email protected] c1000k]# ls 
c1000k-master  master.zip
[[email protected] c1000k]# cd c1000k-master/
[[email protected] c1000k-master]# ls
client.c  Makefile  README.md  server.c
[[email protected] c1000k-master]# make 
gcc -std=c99 -O2 -o server server.c
gcc -O2 -o client client.c
[[email protected] c1000k-master]#

Start the service

版权声明
本文为[franket]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231853539886.html