# Pynt for JMeter

## **What is JMeter?**

{% hint style="info" %}
💡 [**JMeter**](https://jmeter.apache.org/) is a widely-used open-source tool for load testing and performance measurement of web applications and APIs. It simulates a high number of users interacting with an application, helping developers assess scalability and performance. JMeter supports various protocols, including HTTP, FTP, JDBC, and more, making it a versatile tool for testing the robustness and stability of applications under heavy load conditions.
{% endhint %}

<figure><img src="https://3462681674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZKwBF6q0tAGXlIih38HL%2Fuploads%2FW0fIKePkvIemzRIbcgFR%2Fimage.png?alt=media&#x26;token=dc10920f-3140-4c4f-b51b-562e58c3e79b" alt="" width="134"><figcaption><p>JMeter</p></figcaption></figure>

***

## **Pynt's integration with JMeter**

As part of its [API security testing](https://docs.pynt.io/documentation/api-security-testing) suite, **Pynt** integrates seamlessly with JMeter, enabling automated security testing alongside performance assessments.

If you use JMeter for your API performance tests, you can utilize pynt command to run API Security tests from these performance tests.

***

## **Quick start**

1. First, make sure Pynt's [prerequisites](https://docs.pynt.io/documentation/api-security-testing/prerequisites-for-running-pynt-scans) are met.
2. Follow the instructions to install Pynt container [here](https://docs.pynt.io/documentation/api-security-testing/how-to-install-pynt-cli).
3. To integrate Pynt with JMeter, use the following command:

{% code fullWidth="false" %}

```bash
pynt command --cmd "./jmeter -E http -H 127.0.0.1 -P 6666 -n -t <your jmx file>"
```

{% endcode %}

This command directs JMeter to execute the specified test plan (`test.jmx`) in non-GUI mode and logs the results to `results.jtl`.&#x20;

The `-E http -H 127.0.0.1 -P 6666` parameters tell JMeter to direct its traffic to the proxy started by the pynt command during scanning.

Continue with the below example.

***

## Example&#x20;

1. Download goat.jmx example from [here](https://raw.githubusercontent.com/pynt-io/pynt/main/goat_functional_tests/goat.jmx) or get it:

```bash
wget https://raw.githubusercontent.com/pynt-io/pynt/main/goat_functional_tests/goat.jmx
```

2. Run it with Pynt:&#x20;

```bash
pynt command --cmd "jmeter -E http -H 127.0.0.1 -P 6666 -n -t goat.jmx"
```

<figure><img src="https://3462681674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZKwBF6q0tAGXlIih38HL%2Fuploads%2FyasGTkw18UE0aokABTqE%2Fjmeter.gif?alt=media&#x26;token=16c8322c-caf0-46ac-8945-6221c59c02e5" alt=""><figcaption><p>Pynt for JMeter Example</p></figcaption></figure>

***

{% hint style="info" %}
💡 **Pynt CLI Troubleshooting**: If you're encountering issues with Pynt's CLI, visit the [**Pynt CLI Troubleshooting Guide**](https://docs.pynt.io/documentation/api-security-testing/pynt-scans-troubleshooting/pynt-cli-troubleshooting) for solutions and troubleshooting tips.
{% endhint %}

{% hint style="info" %}
💡 **Still Need Help?** For any questions or troubleshooting, reach out to the [**Pynt Community Support**](https://www.pynt.io/community).
{% endhint %}
