51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

楼主: zhsh1203
打印 上一主题 下一主题

[求助] loadrunner监控tomcat解决方案

[复制链接]

该用户从未签到

21#
发表于 2009-8-21 15:41:58 | 只看该作者
我用这个方法设置tomcat登录的时候一直都报错:

Virtual User Script started
Starting action vuser_init.
Web Turbo Replay of LoadRunner 9.10.0 for Windows Vista; WebReplay85 build 5896          [MsgId: MMSG-27143]
Run Mode: Click-and-Script          [MsgId: MMSG-26000]
Run-Time Settings file: "C:\Users\ibm\workspace\lr\login\\default.cfg"          [MsgId: MMSG-27141]
Current locale is "Chinese Simplified (GB2312)", code page 936, preferred charset name "gb2312", Unicode converter name="gb2312", CRT locale string="Chinese (Simplified)_People's Republic of China.936"          [MsgId: MMSG-27045]
vuser_init.c(5): Notify: Transaction "monitor tomcat" started.
vuser_init.c(8): Registering web_reg_save_param was successful          [MsgId: MMSG-26390]
vuser_init.c(13): Registering web_reg_save_param was successful          [MsgId: MMSG-26390]
vuser_init.c(19): Registering web_reg_save_param was successful          [MsgId: MMSG-26390]
vuser_init.c(25): web_set_user was successful          [MsgId: MMSG-26392]
vuser_init.c(26): Warning -26630: HTTP Status-Code=401 (Unauthorized) for "http://122.122.1.15:888/manager/status"          [MsgId: MWAR-26630]
vuser_init.c(26): Error -26377: No match found for the requested parameter "JVMFreeMemory". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-26377]
vuser_init.c(26): Error -26377: No match found for the requested parameter "JVMTotalMemory". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-26377]
vuser_init.c(26): Error -26377: No match found for the requested parameter "JVMMaxMemory". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-26377]
vuser_init.c(26): web_url("status") highest severity level was "ERROR", 3666 body bytes, 466 header bytes          [MsgId: MMSG-26388]
vuser_init.c(26): Notify: Transaction "monitor tomcat" ended with "Fail" status (Duration: 0.2528 Wasted Time: 0.0001).
Abort was called from an action.

程序片段:
web_set_user("122.122.1.15\\admin","123","122.122.1.15:888");
          web_url("status",
                        "URL=http://122.122.1.15:888/manager/status",
                        "Resource=0",
                        "RecContentType=text/html",
                        "Referer=",
                        "Snapshot=t1.inf",
                        "Mode=HTTP",
                LAST);
在论坛里找了好多帖子,也检查了很多遍,都没有发现问题
直接开IE用admin和123是可以登进去的,IE是8.0的LR是9.1的
122.122.1.15这个IP就是我本机的,tomcat也是本机启的,
我还用localhost、127.0.0.1和本机的计算机名试过,都是报一样的错
高手来指点一下啊

[ 本帖最后由 hrob 于 2009-8-21 15:52 编辑 ]
回复 支持 反对

使用道具 举报

该用户从未签到

22#
发表于 2009-8-21 17:43:48 | 只看该作者
明明就提示 web_set_user was successful 了
怎么还是没有权限呢
回复 支持 反对

使用道具 举报

该用户从未签到

23#
发表于 2009-9-3 22:25:26 | 只看该作者
好帖。
回复 支持 反对

使用道具 举报

该用户从未签到

24#
发表于 2009-9-24 15:25:00 | 只看该作者
受益了,谢谢。
回复 支持 反对

使用道具 举报

该用户从未签到

25#
发表于 2009-9-24 16:49:51 | 只看该作者

Legend中,各个列的单位是什么

楼主,有一个疑问,JVMFreeMemory、JVMMaxMemory、JVMTotalMemory中,三个数值在Analysis的Legend中,各个数值(Minmus,MaxMum等)是以什么单位显示的?   谢谢。
回复 支持 反对

使用道具 举报

该用户从未签到

26#
发表于 2009-9-25 15:47:43 | 只看该作者
好贴,支持原创~~
前两天用了下 jprofile监测tomcat,那东东产生的图表 太多了 看不懂~~
还是简单点的好~~
回复 支持 反对

使用道具 举报

该用户从未签到

27#
发表于 2009-11-11 16:52:31 | 只看该作者
非常感谢
回复 支持 反对

使用道具 举报

该用户从未签到

28#
发表于 2009-11-11 23:03:56 | 只看该作者
向楼主学习

JProbe——有兴趣的可以试下
回复 支持 反对

使用道具 举报

该用户从未签到

29#
发表于 2009-11-24 15:52:42 | 只看该作者

回复 13# 的帖子

我也遇到此问题,重启tomcat,即可
回复 支持 反对

使用道具 举报

该用户从未签到

30#
发表于 2009-12-4 17:03:36 | 只看该作者
回复 支持 反对

使用道具 举报

该用户从未签到

31#
发表于 2009-12-4 18:08:07 | 只看该作者
回复 支持 反对

使用道具 举报

该用户从未签到

32#
发表于 2010-2-2 09:48:15 | 只看该作者
正在查找有关方面的资料,谢谢了
回复 支持 反对

使用道具 举报

该用户从未签到

33#
发表于 2010-3-23 10:56:30 | 只看该作者
点评一下:
  LZ属于优秀人才
回复 支持 反对

使用道具 举报

该用户从未签到

34#
发表于 2010-5-13 13:25:40 | 只看该作者
非常感谢,收藏了
回复 支持 反对

使用道具 举报

该用户从未签到

35#
发表于 2010-5-13 15:09:28 | 只看该作者
不错 正要用,
回复 支持 反对

使用道具 举报

该用户从未签到

36#
发表于 2010-10-15 12:56:59 | 只看该作者
谢谢楼主分享!!!!
回复 支持 反对

使用道具 举报

该用户从未签到

37#
发表于 2010-10-15 16:35:35 | 只看该作者
高手,必须顶,下来看看,多谢
回复 支持 反对

使用道具 举报

  • TA的每日心情
    开心
    2015-10-14 16:15
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]测试小兵

    38#
    发表于 2010-10-15 16:51:50 | 只看该作者
    不错的文章  谢谢分享
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    39#
    发表于 2011-6-8 14:38:15 | 只看该作者
    回复 13# aaa01
    你检查一下,你tomcat 的conf目录下的tomcat-user.xml文件中有没有添加
    <tomcat-users>
      <role rolename="manager"/>
      <role rolename="admin"/>
      <user username="admin" password="pass" roles="admin,manager"/>
    </tomcat-users>
    我有时候也会出现这个问题,回头检查tomcat-user.xml,原来添加的用户竟然没有啦,呵呵,也没有找出什么原因!反正加上就可以了,呵呵~~~
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    40#
    发表于 2011-6-8 15:15:20 | 只看该作者
    你们都太牛气了!!
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-5-12 19:17 , Processed in 0.078612 second(s), 21 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表