Wednesday, July 25, 2012

Tip #15: Hacking the response data size limit

View Results Tree is very useful listener especially when you are debugging your test plan. You can review the response data and ensure that your test plan works good. But sometimes you you can see a message in the beginning of the response data like "Response too large to be displayed. Size: 313674 > Max: 204800, Start of message:".

JMeter - Response too large to be displayed

And unfortunately you are not able to see the whole response data. By default JMeter shows only first 200 Kb of response data. To resolve this problem you should edit the file jmeter.properties and uncomment the line:
view.results.tree.max_size=0
 This will disable response data size check at all.

Uncommented view.results.tree.max_size=0

After you have saved jmeter.properties you will never see this message again.

The problem with the response data size limit has been resolved.

8 comments:

  1. I need help from you. I want to group the results like Login,Homepage,Search in a report all the requests rpc requests when i use transaction controller and capture the results.The report is not in order

    it looks like this

    Login ...
    ---info
    ----info
    Homepage
    ----request
    ----request

    like this ...

    I want to hide the request under login and homepage for report generation is that possible..

    ReplyDelete
    Replies
    1. I'm not sure that I understand your question correctly.
      I do not know how to hide requests from report but for grouping the requests you should check "Generate parent sample" option of the Transaction Controller view.

      Delete
    2. You can set jmeter.save.saveservice.subresults to false this will hide subrequest metrics from HTML report

      Delete
  2. Hey Victor,

    I want to find how many users web server can handle using JMeter reports or .jlt file.. is it possible.

    Any tips to find that.

    Thanks in advance,
    Neerajkumar

    ReplyDelete
    Replies
    1. In general you can run JMeter multiple times with various number of threads and then after the analysis of the results you can get the approximate number.

      Delete
  3. Hello Victor,

    I trying to find some kind of way to display HTML response data (from View Results Tree) in a browser. At the moment I just copy and paste the code into the notepad to see my response page, but it's beginning to drive me crazy.

    Is there a way to do that in Jmeter or some kind of plugin that would allow me to do that?

    Thanks in advance

    PS: Sorry for posting in this post, since it's not directly related to the story. I couldn't find a better way to reach you.

    Sincerely,
    Тимур

    ReplyDelete
    Replies
    1. First, you can view HTML response data directly in JMeter ("View Results Tree" listener -> "Response data" tab -> select "HTML" item in a drop-down list below the listbox at the left (there is "Text" item selected by default). Second, you can use "Save Responses to a file" listener.

      Delete
  4. Join the world’s largest community of ethical hackers and start hacking today! Be challenged and earn rewarding bounties. Learn more! https://www.hackerone.com/for-hackers/how-to-start-hacking

    ReplyDelete