0

Is JMeter designed to only record web browser traffic, or can it record http requests made by installed programs as well?

I set up JMeter as per these instructions and I do not see the web traffic of a particular application installed on my computer. I've set up the proxy settings in my system settings.

4
  • Tony, have you verified that your application is using the proxy settings? For example, does your application fail if you try to run it when JMeter is not running?
    – user246
    Sep 24, 2013 at 2:08
  • I just tried application when JMeter and the application works, which upon further research is because the application communicates binary data with the server via some other port, which I assume is not going to be picked up by JMeter. Sep 24, 2013 at 13:33
  • You can use HTTP over any port, and you can send binary data over HTTP. JMeter supports protocols other than HTTP, e.g. FTP, but it does not automatically support arbitrary protocols. If the binary data uses a protocol JMeter does not support, you will need to extend JMeter. I do not have any experience with that.
    – user246
    Sep 24, 2013 at 14:39
  • i am also facing this same problem, any way i got solution from your answer thanks
    – user6447
    Dec 2, 2013 at 12:02

1 Answer 1

3

With Jmeter you can record both HTTP/HTTPS traffic, also there is Jmeter Chrome extension which can record traffic without configuring JMeter.

To record web traffic in Jmeter:

  • add Recording Controller into Test Plan
  • add HTTP Proxy Server into WorkBench
  • click Start button.
  • open browser network settings
  • change proxy settings to localhost:8080
  • remove localhost and 127.0.0.1 from "No proxy for" field.

To record any application IO:

  • Set proxy (in Linux)

    export http_proxy=http://localhost:8080
    
  • Or set proxy localhost:8080 if it's possible to change proxy settings in application.

  • Start JMeter Proxy Server

  • Use your application

Note! Do not use JMeter as the proxy for any other request types - FTP, etc. - as the JMeter proxy cannot handle them.

4
  • Bob - if this is the configuration to record non-browser HTTP/HTTPS traffic, could you make that a bit clearer in the answer for those of us who aren't as familiar with JMeter?
    – Kate Paulk
    Sep 24, 2013 at 11:36
  • Thank you for your answer but I think these are the instructions for recording browser HTTP/HTTPS traffic. Sep 24, 2013 at 13:34
  • @KatePaulk follow links if it's hard to understand. tony I added instruction related to recroding applications. Actually there is no any difference between recording browser or any application.
    – Bob Meliev
    Sep 25, 2013 at 6:01
  • @BobMeliev, thank you for the extra information.
    – Kate Paulk
    Sep 25, 2013 at 11:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.