# 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="/files/U62WYq5R3Nibw114dxUW" alt="" width="134"><figcaption><p>JMeter</p></figcaption></figure>

***

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

As part of its [API security testing](/documentation/api-security-testing/security-testing-overview.md) 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](/documentation/api-security-testing/prerequisites-for-running-pynt-scans.md) are met.
2. Follow the instructions to install Pynt container [here](/documentation/api-security-testing/how-to-install-pynt-cli.md).
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="/files/QgJ4PHcQY9FPNUE0nlt4" 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pynt.io/documentation/security-testing-integrations/pynt-with-testing-frameworks/pynt-for-jmeter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
