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.

asked Sep 23, 2013 at 20:16
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? Commented 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. Commented 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. Commented Sep 24, 2013 at 14:39
  • i am also facing this same problem, any way i got solution from your answer thanks Commented 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.

answered Sep 24, 2013 at 5:47
3
  • 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? Commented Sep 24, 2013 at 11:36
  • Thank you for your answer but I think these are the instructions for recording browser HTTP/HTTPS traffic. Commented 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. Commented Sep 25, 2013 at 6:01

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.