SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Junior Member
    Join Date
    Dec 2007
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    collect Perfservlet data on Loadrunner ?

    i deploy perfservlet to monitor an websphere application server ...

    the url http://[server]:91/wasPerfTool/servlet/perfservlet?server=[App] generate an xml response with data

    anyway for loadrunner to collect these data ??? how can i do this ?







    1. What version of LoadRunner (LR) or PerformanceCenter (PC) are you using? (specify which tool LR or PC)

    LR 8.1

    2. What is the protocol you are recording?

    Html

    2.1 If .NET, which version of .NET does the app require?

    no

    2.2 If .NET, which version of .NET do you have installed?

    no

    3. If HTML - are you using HTML-Advanced with URLs or,

    no

    4. If URL mode:
    - Concurrent groups, or
    - Without Concurrent groups?

    /

    5. Which LoadRunner/PerformanceCenter feature (FPs) or service packs are you using?

    SP1
    FP2
    FP4

    6. VuGen Recording - are you using Old or New Recording Engine?

    new

    7. What kind of LoadRunner license do you have -
    - Subscription,
    - Perpetual,
    - Permanent/Unlimited
    - Virtual User days, or
    - Evaluation?

    Unlimited (oracle 600, tuxedo 600, rte 600, web 600)

    8. If subscription, is subscription current or expired?

    expired for the moment

    9. What platform(s) (PCs) and Operating Systems (Windows-XP, etc.)? Include version and service packs (SP1 or 2, etc.)

    XP SP2

    10. If you have filed a service request with HP/Mercury, what have they told you at this point with respect to your issue?

  2. #2
    Senior Member
    Join Date
    Oct 2004
    Posts
    1,011
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: collect Perfservlet data on Loadrunner ?

    do one extra script pinging to perfservlet url. scrap performance data you need from XML. use lr_user_data_point get this data into analysis.

    pinging to perfservlet url would generate additional load on server so keep frequency low enough …to provide you relevant stats without affecting performance much.

  3. #3
    Junior Member
    Join Date
    Dec 2007
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: collect Perfservlet data on Loadrunner ?

    have you an sample of script that analyse xml results from an URL ?? how put all value of the html page in an char * ?

    #include "as_web.h"

    char * xml_input =
    "<acme_org>"
    "<accounts_dept>"
    "<employee>"
    " <name>John Smith</name>"
    "<cubicle>227</cubicle>"
    "<extension>2145</extension>"
    "</employee>"
    "</accounts_dept>"
    "</acme_org>";

    Action() {

    /************************************************** ***************************************/
    //Extraction of xml data
    lr_save_string(xml_input, "XML_Input_Param"); // Save input as parameter

    lr_xml_extract("XML={XML_Input_Param}",
    "XMLFragmentParam=Result",
    "Query=/acme_org/accounts_dept/employee/extension", LAST);

    lr_output_message(lr_eval_string("Extracted: {Result}"));
    /************************************************** ***************************************/


    an 10 sec frequency is correct ?

  4. #4
    Junior Member
    Join Date
    Dec 2007
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: collect Perfservlet data on Loadrunner ?

    i try this

    [ QUOTE ]

    #include "as_web.h"

    Action()
    {

    web_reg_save_param("XML_Input_Param","LB=", "RB=", LAST);

    web_url("perfservlet",
    "URL=http://xxxxxxx:91/wasPerfTool/servlet/perfservlet?server=yyyyyy",
    "Resource=1",
    "RecContentType=text/xml",
    "Referer=",
    "Snapshot=t1.inf",
    "Mode=HTTP",
    LAST);

    lr_output_message(lr_eval_string("Extracted: {XML_Input_Param}"));

    lr_xml_get_values("XML={XML_Input_Param}",
    "ValueParam=OutputParam",
    "Query=/Node name/Server name",
    LAST);


    lr_output_message(lr_eval_string("Extracted: {OutputParam}"));

    return 0;
    }


    [/ QUOTE ]

    the lr_output_message(lr_eval_string("Extracted: {XML_Input_Param}")); wrote the result of perfservlet in xml

    but i have an error with lr_xml

    [ QUOTE ]

    <Stat name="Gestion de la charge de travail">
    <Stat name="client"/>
    <Stat name="serveur"/>
    </Stat>
    </Stat>
    </Server>
    </Node>
    </PerformanceMonitor>
    Action.c(19): Error: An exception occured! Type:RuntimeException, Message:Could not open DTD file '/wasPerfTool/dtd/performancemonitor.dtd' (line 8, col 162)
    Action.c(19): Error: "lr_xml_get_values" execution failed


    [/ QUOTE ] <font color="red"> </font>

  5. #5
    Moderator JakeBrake's Avatar
    Join Date
    Dec 2000
    Location
    St. Louis - Year 2025
    Posts
    15,609
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: collect Perfservlet data on Loadrunner ?

    Is there a reason you are not using the native monitoring capabilities as opposed to pulling counter via code?

  6. #6
    Junior Member
    Join Date
    Dec 2007
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: collect Perfservlet data on Loadrunner ?

    yes, don't have an license for websphere monitoring

    the xml looks like

    [ QUOTE ]

    - &lt;PerformanceMonitor responseStatus="success" version="6.1.0.9"&gt;
    - &lt;Node name="s50qual_AppSrv"&gt;
    - &lt;Server name="QT2_COCKPIT"&gt;
    - &lt;Stat name="server"&gt;
    - &lt;Stat name="Statistiques DCS"&gt;
    &lt;Stat name="DefaultCoreGroup" /&gt;
    &lt;/Stat&gt;
    &lt;Stat name="ExtensionRegistryStats.name" /&gt;
    - &lt;Stat name="SipContainerModule"&gt;
    &lt;Stat name="SipContainer" /&gt;
    &lt;/Stat&gt;
    - &lt;Stat name="Mise en cache dynamique"&gt;
    - &lt;Stat name="Object: ws/com.ibm.workplace/ExtensionRegistryCache1216284646418"&gt;
    - &lt;Stat name="Cache d'objets"&gt;
    &lt;Stat name="Compteurs" /&gt;
    &lt;/Stat&gt;
    ...


    [/ QUOTE ]

    now whith

    [ QUOTE ]

    lr_xml_get_values("XML={XML_Input_Param}",
    "ValueParam=OutputParam",
    "Query=/Node name",
    LAST);


    [/ QUOTE ]

    i have problem with space character ...

    Starting action Action.
    Action.c(6): Registering web_reg_save_param was successful [MsgId: MMSG-26390]
    Action.c(8): web_url("perfservlet") was successful, 25803 body bytes, 230 header bytes, 13 chunking overhead bytes [MsgId: MMSG-26385]
    Action.c(19): Error: Extra illegal tokens!
    pattern = '/node name'
    Remaining tokens: ( 'name')
    Action.c(19): Error: "lr_xml_get_values" execution failed

  7. #7
    Senior Member
    Join Date
    Oct 2004
    Posts
    1,011
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: collect Perfservlet data on Loadrunner ?

    XML you pasted is not formatted properly..however try like this....after porperly chekcing format and path to element you want to capture
    Query=/Node@name
    and you need specify full path before node

  8. #8
    Junior Member
    Join Date
    Dec 2007
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: collect Perfservlet data on Loadrunner ?

    Why isn'it formatted correctly ?

    the perfservlet genere this xml file, after there is multi value in each section, hard to extract data to user data graph, no ?

    [ QUOTE ]

    &lt;?xml version="1.0" encoding="UTF-8" ?&gt;
    - &lt;!-- ************************************************** **************************
    --&gt;
    - &lt;!-- IBM Confidential OCO Source Material
    --&gt;
    - &lt;!-- 5639-D57, 5630-A36, 5630-A37, 5724-D18 (C) COPYRIGHT International
    --&gt;
    - &lt;!-- Business Machines Corp. 1997, 2004. The source code for this program is
    --&gt;
    - &lt;!-- not published or otherwise divested of its trade secrets, irrespective
    --&gt;
    - &lt;!-- of what has been deposited with the U.S. Copyright Office.
    --&gt;
    - &lt;!-- ************************************************** **************************
    --&gt;
    &lt;!DOCTYPE PerformanceMonitor (View Source for full doctype...)&gt;
    - &lt;PerformanceMonitor responseStatus="success" version="6.1.0.9"&gt;
    - &lt;Node name="s50qual_AppSrv"&gt;
    - &lt;Server name="QT2_COCKPIT"&gt;
    - &lt;Stat name="server"&gt;
    - &lt;Stat name="Statistiques DCS"&gt;
    &lt;Stat name="DefaultCoreGroup" /&gt;
    &lt;/Stat&gt;
    &lt;Stat name="ExtensionRegistryStats.name" /&gt;
    - &lt;Stat name="SipContainerModule"&gt;
    &lt;Stat name="SipContainer" /&gt;
    &lt;/Stat&gt;
    + &lt;Stat name="Mise en cache dynamique"&gt;
    - &lt;Stat name="Object: ws/com.ibm.workplace/ExtensionRegistryCache1216284646418"&gt;
    - &lt;Stat name="Cache d'objets"&gt;
    &lt;Stat name="Compteurs" /&gt;
    &lt;/Stat&gt;
    &lt;/Stat&gt;
    &lt;Stat name="Servlet: baseCache" /&gt;
    &lt;/Stat&gt;
    - &lt;Stat name="Pools de connexions JDBC"&gt;
    - &lt;Stat name="Derby JDBC Provider (XA)"&gt;
    - &lt;Stat name="jdbc/DefaultEJBTimerDataSource"&gt;
    &lt;CountStatistic ID="1" count="0" lastSampleTime="1216284644889" name="CreateCount" startTime="1216284644889" unit="N/A" /&gt;
    &lt;CountStatistic ID="2" count="0" lastSampleTime="1216284644889" name="CloseCount" startTime="1216284644889" unit="N/A" /&gt;
    &lt;BoundedRangeStatistic ID="5" highWaterMark="0" integral="0.0" lastSampleTime="1216306281169" lowWaterMark="0" lowerBound="0" mean="0.0" name="PoolSize" startTime="1216284644889" unit="N/A" upperBound="0" value="0" /&gt;
    &lt;BoundedRangeStatistic ID="6" highWaterMark="0" integral="0.0" lastSampleTime="1216306281169" lowWaterMark="0" lowerBound="0" mean="0.0" name="FreePoolSize" startTime="1216284644889" unit="N/A" upperBound="0" value="0" /&gt;
    &lt;RangeStatistic ID="7" highWaterMark="0" integral="0.0" lastSampleTime="1216306281169" lowWaterMark="0" mean="0.0" name="WaitingThreadCount" startTime="1216284644889" unit="N/A" value="0" /&gt;
    &lt;RangeStatistic ID="9" highWaterMark="0" integral="0.0" lastSampleTime="1216306281169" lowWaterMark="0" mean="0.0" name="PercentUsed" startTime="1216284644889" unit="N/A" value="0" /&gt;
    &lt;TimeStatistic ID="12" lastSampleTime="1216284644889" max="0" min="0" name="UseTime" startTime="1216284644889" totalTime="0" unit="MILLISECONDE" /&gt;
    &lt;TimeStatistic ID="13" lastSampleTime="1216284644889" max="0" min="0" name="WaitTime" startTime="1216284644889" totalTime="0" unit="MILLISECONDE" /&gt;
    &lt;/Stat&gt;
    &lt;CountStatistic ID="1" count="0" lastSampleTime="1216284644889" name="CreateCount" startTime="1216284644889" unit="N/A" /&gt;
    &lt;CountStatistic ID="2" count="0" lastSampleTime="1216284644889" name="CloseCount" startTime="1216284644889" unit="N/A" /&gt;
    &lt;BoundedRangeStatistic ID="5" highWaterMark="0" integral="0.0" lastSampleTime="1216306281169" lowWaterMark="0" lowerBound="0" mean="0.0" name="PoolSize" startTime="1216284644889" unit="N/A" upperBound="0" value="0" /&gt;
    &lt;BoundedRangeStatistic ID="6" highWaterMark="0" integral="0.0" lastSampleTime="1216306281169" lowWaterMark="0" lowerBound="0" mean="0.0" name="FreePoolSize" startTime="1216284644889" unit="N/A" upperBound="0" value="0" /&gt;
    &lt;RangeStatistic ID="7" highWaterMark="0" integral="0.0" lastSampleTime="1216306281169" lowWaterMark="0" mean="0.0" name="WaitingThreadCount" startTime="1216284644889" unit="N/A" value="0" /&gt;
    &lt;RangeStatistic ID="9" highWaterMark="0" integral="0.0" lastSampleTime="1216306281169" lowWaterMark="0" mean="0.0" name="PercentUsed" startTime="1216284644889" unit="N/A" value="0" /&gt;
    &lt;TimeStatistic ID="12" lastSampleTime="1216284644889" max="0" min="0" name="UseTime" startTime="1216284644889" totalTime="0" unit="MILLISECONDE" /&gt;
    &lt;TimeStatistic ID="13" lastSampleTime="1216284644889" max="0" min="0" name="WaitTime" startTime="1216284644888" totalTime="0" unit="MILLISECONDE" /&gt;
    &lt;/Stat&gt;
    ...
    &lt;/Server&gt;
    &lt;/Node&gt;
    &lt;/PerformanceMonitor&gt;


    [/ QUOTE ]

  9. #9
    Senior Member
    Join Date
    Oct 2004
    Posts
    1,011
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: collect Perfservlet data on Loadrunner ?

    did you try this?
    Query=PerformanceMonitor/Node@name

  10. #10
    Junior Member
    Join Date
    Dec 2007
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: collect Perfservlet data on Loadrunner ?

    Action.c(19): Error: Extra illegal tokens!
    pattern = 'PerformanceMonitor/Node@name'
    Remaining tokens: ( '@' 'name')
    Action.c(19): Error: "lr_xml_get_values" execution failed

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 06:09 PM.

Copyright BetaSoft Inc.