Translating a HTTP Request to Raw Request - getting an error.

1,311 views
Skip to first unread message

samuel...@gmail.com

unread,
May 29, 2012, 5:24:31 PM5/29/12
to jmeter-...@googlegroups.com
Hi,

I've been directed to try your plugin for some CPU issues I'm having.

I've got a HTTP Request that works slowly and would like to convert it to a Raw Request.

I've taken a look at a request using fiddler and then rearranged some bits of a request sent by a previous test run - so this is what I'm sending:

Accept: */*
Accept-Language: en-us
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; chromeframe/19.0.1084.46; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MS-RTC EA 2; InfoPath.3; MS-RTC LM 8)
Host: host
Content-Length: 437
Connection: Keep-Alive
Pragma: no-cache

session_id=Ji3Wz7BkM-cy-LAB4IQWYln&page_id=pid_2719&AjaxAction=AjaxAction&ams_action=249&ExpandedSections=%7B%27Header%27%3A%7B%27view%27%3A%27tabview%27%2C%27current%27%3A0%7D%7D&request=%7B%22action%22%3A300%2C%22arguments%22%3A%7B%22tabid%22%3A%22Header%22%2C%22divid%22%3A%22ActgDisb%2CVendor%2CBusinessType%2CCommodity%2CCommTermsAndConditions%2CAccounting%2CPosting%2CSubVendor%2CTermsandConditions%2CSpecialInstructions%2CAwardDetails%2CSupportingDocuments%2CMessagePanel%22%2C%22includeAction%22%3Atrue%2C%22data_source%22%3A%22T1PO_DOC_HDR%22%7D%7D

It looks like it's working because the document is being created in the system.  However, I'm seeing response data of:

An unexpected error has occurred: null

Also seeing this sampler result:

Thread Name: PO Copy 1-1
Sample Start: 2012-05-29 14:11:09 MST
Load time: 10515
Latency: 19
Size in bytes: 38
Headers size in bytes: 0
Body size in bytes: 38
Sample Count: 1
Error Count: 0
Response code: 200
Response message: OK

I would usually get this back:

Response too large to be displayed. Size: 440410 > Max: 204800, Start of message:
{"header":{"action":"300","arguments":{"tabid":"Header","divid":"ActgDisb,Vendor,BusinessType,Commodity,CommTermsAndConditions,Accounting,Posting,SubVendor,TermsandConditions,SpecialInstructions,AwardDetails,SupportingDocuments,MessagePanel","includeAction":true,"data_source":"T1PO_DOC_HDR"}},"fault":{},"body":{"action..............ETC.

Any insights on what is going wrong - or is this expected behavior?  Thanks for the plugin!

Andrey Pohilko

unread,
May 30, 2012, 1:38:31 AM5/30/12
to jmeter-...@googlegroups.com
Please, post here related contents of jmeter.log file, I expect error details to be in it...

среда, 30 мая 2012 г., 1:24:31 UTC+4 пользователь samuel...@gmail.com написал:

samuel...@gmail.com

unread,
May 30, 2012, 11:14:46 AM5/30/12
to jmeter-...@googlegroups.com
Andrey,

Here is all I see for my last run - nothing interesting to me...

2012/05/30 08:11:53 INFO  - jmeter.threads.JMeterThread: Thread finished: PO Copy 1-1 
2012/05/30 08:11:53 INFO  - jmeter.engine.StandardJMeterEngine: Ending thread PO Copy 1-1 
2012/05/30 08:11:53 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 
2012/05/30 08:11:53 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*) 
2012/05/30 08:11:53 INFO  - jmeter.engine.StandardJMeterEngine: Test has ended on host null 
2012/05/30 08:12:01 INFO  - jmeter.engine.StandardJMeterEngine: Running the test! 
2012/05/30 08:12:01 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*) 
2012/05/30 08:12:01 INFO  - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group PO Copy. 
2012/05/30 08:12:01 INFO  - jmeter.engine.StandardJMeterEngine: Thread will continue on error 
2012/05/30 08:12:01 INFO  - jmeter.engine.StandardJMeterEngine: All threads have been started 
2012/05/30 08:12:01 INFO  - jmeter.threads.JMeterThread: Thread started: PO Copy 1-1 
2012/05/30 08:12:20 INFO  - jmeter.threads.JMeterThread: Thread finished: PO Copy 1-1 
2012/05/30 08:12:20 INFO  - jmeter.engine.StandardJMeterEngine: Ending thread PO Copy 1-1 
2012/05/30 08:12:20 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 
2012/05/30 08:12:20 INFO  - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*) 
2012/05/30 08:12:20 INFO  - jmeter.engine.StandardJMeterEngine: Test has ended on host null 

Andrey Pohilko

unread,
May 30, 2012, 11:28:17 AM5/30/12
to jmeter-...@googlegroups.com
Huh... Could you compose short reproducing test plan and send it to me? I'll check and debug with it.

среда, 30 мая 2012 г., 19:14:46 UTC+4 пользователь samuel...@gmail.com написал:

philippe...@gmail.com

unread,
Dec 25, 2012, 2:24:46 PM12/25/12
to jmeter-...@googlegroups.com
Hello,
@Samuel,

The message that is displayed tells that you are using View Result Tree during your load test. Jmeter sets a limit that can be changed on the size of pages displayed in this component by adding to user.properties file:

-  view.results.tree.max_size which defaults to 200 ko

BUT during a load test never ever use this component as it requires a lot of resources (memory and cpu). This component must only be used during scripting phase.

You can read this article that gives tips on JMeter configuration and tuning:

 -  http://www.ubik-ingenierie.com/ubikwiki/index.php?title=JMeter_Performance_and_Tuning_Tips#JMeter_Performance_and_Tuning_Tips

Also read this:

-    http://jmeter.apache.org/usermanual/component_reference.html
Reply all
Reply to author
Forward
0 new messages