---
title: "Sample Timeout"
description: "Configure the JMeter Sample Timeout pre processors: properties, defaults, and practical usage notes for building reliable load tests."
url: https://docs.jmeter.ai/components/sample-timeout/
lastUpdated: 2026-10-01
source: docs.jmeter.ai
---

# Sample Timeout

*Part of the **Pre Processors** category. Also documented in context in the [full Component Reference](/user-manual/component-reference/#sample-timeout).*

![Sample Timeout](/images/screenshots/sample_timeout.png)

This Pre-Processor schedules a timer task to interrupt a sample if it takes too long to complete.
The timeout is ignored if it is zero or negative.
For this to work, the sampler must implement Interruptible.
The following samplers are known to do so:

AJP, BeanShell, FTP, HTTP, Soap, AccessLog, MailReader, JMS Subscriber, TCPSampler, TestAction, JavaSampler

The test element is intended for use where individual timeouts such as Connection Timeout or Response Timeout are insufficient,
or where the Sampler does not support timeouts.
The timeout should be set sufficiently long so that it is not triggered in normal tests, but short enough that it interrupts samples
that are stuck.

[By default, JMeter uses a Callable to interrupt the sampler.
This executes in the same thread as the timer, so if the interrupt takes a long while,
it may delay the processing of subsequent timeouts.
This is not expected to be a problem, but if necessary the property `InterruptTimer.useRunnable`
can be set to `true` to use a separate Runnable thread instead of the Callable.]

| Name | Required | Description |
| --- | --- | --- |
| Name | No | Descriptive name for this timer that is shown in the tree. |
| Sample Timeout | Yes | If the sample takes longer to complete, it will be interrupted. |

^

## Related

- [Correlation & Dynamic Values](/topics/correlation-dynamic-values/)
- [Regex Extractor Builder](/tools/regex-tester/)
- [Full Component Reference](/user-manual/component-reference/)
- [Functions and Variables](/user-manual/functions/)
