`
langzhe
  • 浏览: 278560 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

第一次 使用 tsung

阅读更多

网上搜了一下 发现http://erlang-china.org/study/tsung_your_web.html,其实以前看过,动手操作。

看了一遍操作了一下 最后在tsung start 这里卡住 抛出下面错误:

“root@jasson:~/.tsung# tsung -recorder start

Starting Tsung

"Log directory is: /root/.tsung/log/20100709-07:14"

["Config Error, aborting ! ",{undef,[{httpd_util,to_lower,["GET"]},{ts_config_http,parse_config,2},{lists,foldl,3},{ts_config,read,1},{ts_config_server,handle_call,3},{gen_server,handle_msg,5},{proc_lib,init_p_do_apply,3}]}]

在群里讨论了很常时间也没有找到原因。“窦娥”以前用过,他用的deb安装的,我用的是源码编译的。

我的代码在他那边正常运行,最后只能怀疑环境问题了。

我用他的deb安装时遇到了下面问题:

“root@jasson:/home/langzhe# sudo dpkg -i tsung_1.3.1-1_all.deb 

选中了曾被取消选择的软件包 tsung。

(正在读取数据库 ... 系统当前总共安装有 216530 个文件和目录。)

正在解压缩 tsung (从 tsung_1.3.1-1_all.deb) ...

dpkg:依赖关系问题使得 tsung 的配置工作不能继续:

 tsung 依赖于 erlang-nox (>= 10.b.5-1);然而:

  未曾安装软件包“erlang-nox”。

dpkg:处理 tsung (--install)时出错:

 依赖关系问题 - 仍未被配置

正在处理用于 man-db 的触发器...

在处理时有错误发生:

 tsung

 

通过用 apt-get install -f 解决了上面的问题,是什么意思(请老师留言)

 

重新安装 顺利完成。

 

再次 tsung -recorder start 顺利成功。

谢幕了。 花了大半天时间原来是我的,环境造成的。document也有了初步了解了。下一步开始使用。

 

 

 

 

  • 大小: 179.5 KB
1
0
分享到:
评论
5 楼 langzhe 2019-07-26  
Mac 下用  sudo cpan Template,
依然不能解决再修改
#!/usr/bin/perl -w

to

#!/usr/bin/env perl -w
https://stackoverflow.com/questions/23912087/tsung-stats-pl-on-mac-os-x-mavericks-run-into-cant-locate-template-pm-error

4 楼 langzhe 2011-01-18  
lxwb@client-6:~/.tsung/log/20110117-12:22$ /usr/local/lib/tsung/bin/tsung_stats.pl
warn, last interval (3) not equal to the first, use the first one (10)
Error while running gnuplot: Inappropriate ioctl for device at /usr/local/lib/tsung/bin/tsung_stats.pl line 167.
No data for Perfs
Error while running gnuplot: Inappropriate ioctl for device at /usr/local/lib/tsung/bin/tsung_stats.pl line 167.
No data for Match
No data for Event
No data for Async
Error while running gnuplot: Inappropriate ioctl for device at /usr/local/lib/tsung/bin/tsung_stats.pl line 167.
Error while running gnuplot: Inappropriate ioctl for device at /usr/local/lib/tsung/bin/tsung_stats.pl line 167.
Error while running gnuplot: Inappropriate ioctl for device at /usr/local/lib/tsung/bin/tsung_stats.pl line 167.
No data for Size
Can't locate Template.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /usr/local/lib/tsung/bin/tsung_stats.pl line 367.
lxwb@client-6:~/.tsung/log/20110117-12:22$ ls


解决 方法
直接用apt-get来安装画图模板库apt-get install libtemplate-perl gnuplot
3 楼 langzhe 2010-07-16  
写tsung插件
http://www.process-one.net/en/wiki/Writing_a_Tsung_plugin/
2 楼 langzhe 2010-07-15  
root@jasson:/home/langzhe/.tsung# tsung -recorder start
Starting Tsung
"Log directory is: /root/.tsung/log/20100715-07:42"

root@jasson:~/.tsung# cd log/20100715-07\:42/
root@jasson:~/.tsung/log/20100715-07:42#

/usr/lib/tsung/bin/tsung_stats.pl
creating subdirectory data
creating subdirectory images
creating subdirectory gnuplot_scripts
warn, last interval (6) not equal to the first, use the first one (10)
No data for Match
No data for Event
No data for Async
No data for Errors
root@jasson:~/.tsung/log/20100715-07:42# firefox report.html
1 楼 langzhe 2010-07-12  
装完后发现不能生成 html 总是提示下面信息
langzhe@jasson:~/.tsung/log/20100712-01:50$ /usr/lib/tsung/bin/tsung_stats.pl -tdir /usr/share/doc/tsung/
creating subdirectory data
creating subdirectory images
creating subdirectory gnuplot_scripts
warn, last interval (1) not equal to the first, use the first one (10)
No data for Match
No data for Event
No data for Async
No data for Errors

解决 方法
直接用apt-get来安装画图模板库apt-get install libtemplate-perl gnuplot
谢谢窦娥

相关推荐

    Tsung安装使用详细解说

    Tsung安装使用的详细解说,主要针对xmpp的服务端(比如openfire的测试),编写测试场景的脚本配置详细说明。本人使用的是ubuntu操作系统、Tsung1.4.1

    MQTT压力测试之Tsung的使用

    MQTT压力测试之Tsung的使用 MQTT压力测试之Tsung的使用

    Tsung_测试XMPP_安装使用说明

    tsung是用erlang开发的一款简单易用的压力测试工具,目前仅支持linux各版本系统安装,有tar.gz和deb两种安装文件, 目前我们测试用的是CentOS或RedHat两种操作系统,因此选择tar.gz安装文件,总的来说tsung工具有...

    tsung安装使用

    关于tsung工具的安装步骤以及使用过程中会遇到的常见问题解答

    tsung用户手册 linux

    压力测试 压力测试 tsung linux

    tsung+erlang包

    tsung+erlang测试工具,初学者应用必备,内部放置tsung源程序文件和erlang文件

    tsung安装使用说明

    tsung安装使用,参数说明,模拟openfire注册用户,模拟用户openfire登录、状态更改、发送消息,对openfire长时间压力测试

    tsung脚本及说明

    tsung的测试脚本,包含发送单人消息,群组消息,获取花名册等

    Openfire 3.9.3 Load Test Tsung配置xml

    Openfire 3.9.3 Load Test Tsung配置xml,10万用户下集群测试的Tsung压力测试工具的jabber_cluster.xml,session 5分钟

    tsung里面测试websocket的插件

    tsung里面测试websocket的插件含 websocket.xml 等

    tsung1.6.0

    tsung为一个开源的多协议分布式负载测试工具,使用erlang语言开发的。具体安装使用可以参考URL:http://www.51ste.com/share/det-222.html

    tsung高并发测试工具搭建(自己亲测,详细的一逼)

    tsung高并发测试工具搭建(自己亲测,详细的一逼),改文档是自己一步一步摸索出来的,主要是安装tsung整个过程很详细,搭过的人,知道tsung的搭建依赖很恶心,不是一时半会能搞出来的

    tsung测试总结

    tsung 测试 java erlang

    Tsung负载测试tigase

    tsung是一个非常好用的压力测试软件,基于erlang语言,支持多种...在Ubuntu上装好tsung之后,首先要用ulimit修改系统支持的最大fd数量(ulimit-n 20480),否则tsung最多只能创建不到1024个连接,测试脚本是一个xml文件

    tsung最新用户手册

    tsung最新用户手册,包含HTTP, WebDAV, SOAP, PostgreSQL, MySQL, LDAP, and Jabber/XMPP servers压力测试模版,错误说明等。

    tsung安装相关文件

    —tsung-1.5.0.tar.gz —libtemplate-perl_2.20.orig.tar.gz —gnuplot-4.4.0.tar.gz —otp_src_R15B.tar.gz —perl-HTML-Tagset-3.10-2.1.1.noarch.rpm —perl-HTML-Parser-3.55-1.fc6.x86_64.rpm —...

    tigase及tsung安装笔记

    包括tigase的安装运行,tsung的安装运行,压测结果的信息解析等;

    Tsung 安装使用

    性能测试工具。 类似Loadrunner,比loadrunner给力。

    tsung-1.3.3

    tsung安装包,linux下进行压力测试的工具

    tsung-react-stats:从 json 报告中显示 tsung 统计信息

    tsung-react-stats 从 json 报告中显示 tsung 统计信息

Global site tag (gtag.js) - Google Analytics