-
测mina tcp效率较完整项目,部署到linux上
应用背景使用两个linux机器,测试用例:
1:模拟100个客户端同时发送1000tcp包,服务器响应的最长时间。
2:模拟500个客户端同时发送1000tcp包,服务器响应的最长时间。
使用3台linux服务器,部署项目测试用例:
1:2个机器做客户端,分别同时模拟100客户端,同时发送1000tcp包,测试mina响应的最长时间。
模拟客户端数和发送的包数可以灵活设置。
关键技术
public void sessionOpened(IoSession session) {
if (!v.contains(session.getId()))
v.add(session.getId());
final IoSession session1 = session;
final Long port = session1.getId();
if (clientSessionCounts.get(port) == null) {
clientSessionCounts.put(port, new AtomicInteger(0));
}
System.out.println("created sessions - " + v.size());
try {
/*
* Timer timer = new Timer(); timer.schedule(new TimerTask() {
*
* @Override public void run() { session1.write("
- 2022-03-12 22:41:44下载
- 积分:1
-
pubu
Android项目源码带瀑布流的旅游指南应用是一款旅游型的APP,是旅游目的地攻略指南,可以自动定位到城市,景点,餐馆,酒店,还可以分享旅游经验,与参与者互动。该项目的架构合理,有详细的注解,其中引入了第三方的瀑布流项目,以源代码的形式直接加入,很好的学习材料。默认使用UTF-8编码,编译版本为4.3(The Android project source code with a waterfall flow guide application is app a type of tourism, tourism destination strategy guide, can automatically locate the city, attractions, restaurants, hotels, can also share travel experiences, to interact with the participants. The framework of the project is reasonable, there are detailed notes, which introduces the third side of the waterfall flow project, in the form of source code to join, a good learning materials. The default use of UTF-8 code, the compiler version is 4.3)
- 2020-12-27 16:59:03下载
- 积分:1
-
UCWEB
安卓实现仿UCWEB样式源码,欢迎大家来下载(Andrews imitation UCWEB source)
- 2013-06-29 12:23:20下载
- 积分:1
-
Tic tac Toe
它是一种传统的井字游戏,两个人玩,并试图让自己的模式(ATLEAST3)在一条直线上eigther hozontally垂直或对角线。它的玩法是一个3×3板。
- 2022-02-06 18:44:37下载
- 积分:1
-
tqChess
在android平台下设计的一款象棋游戏,运行界面有自己的名字,根据需要可以修改,有些界面美观简洁(The design of a chess game in the Android platform, run the interface has its own name, can be modified as needed, some beautiful and simple interface)
- 2013-05-10 13:16:56下载
- 积分:1
-
仿蘑菇街 android UI设计源码
仿蘑菇街 android UI设计源码
- 2015-07-04下载
- 积分:1
-
desine联系编辑
该项目使你成为好的gui desiner,在你了解想要学习它,将有助于更好的克服desining问题
- 2022-02-05 10:35:56下载
- 积分:1
-
社团管理系统
资源描述社团管理系统,学校学生社团的管理,社团的添加,审核,学生可以申请向假如的社团,然后进行审核。社团的管理等功能的实现
- 2022-03-21 12:42:38下载
- 积分:1
-
android 悬浮窗例子
下面是创建悬浮窗的方法:
做完这步,基本上就可以在桌面显示一个悬浮窗并且可以自由拖动了。
如果想要控制它在桌面显示,而进入到别的应用程序时隐藏它的话,就需要用一个后台运行的Service来实现了。
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2023-06-05 05:25:03下载
- 积分:1
-
论坛扫描工具
基于SWT开发的论坛扫描工具,开发语言是JAVA,使用到HTTPCLIENT,通过组件加载模式定制需要扫描的论坛,使用HTTPCLIENT获取贴子列表,匹配定制的关键词。
- 2022-08-18 09:14:06下载
- 积分:1