Uploaded April 2026 | Updated November 2026, 1 day ago
In this tutorial, learn how to streamline your JMeter AI plugins by implementing a global configuration element. We'll walk through creating an Ollama Config element to manage common properties like base URLs, models, and timeouts, eliminating the need for repetitive configurations in every sampler.
We also dive into a critical performance optimization technique for plugin developers: using META-INF/services to skip unnecessary JAR scanning and speed up JMeter startup times.
What you’ll learn:
Global AI Configuration: How to create a reusable config element similar to HTTP Request Defaults.
Java Implementation: Extending AbstractConfigGui and AbstractTestElement for custom JMeter components.
Thread Safety: Using the volatile keyword in your config holders for multi-threaded performance.
Performance Tuning: Explicitly defining core classes in metadata to optimize plugin loading.
GitHub Repo: github.com/QAInsights/jmeter-plugin-development-series
00:00 Intro and Recap
00:21 The Need for a Global AI Config Element
00:57 Benefits of Ollama Config
01:40 Code Walkthrough: Config GUI Implementation
02:37 Ollama Config Class and Test State Listeners
03:00 Defining Properties and Default Values
03:22 Ollama Config Holder and Thread Safety (volatile)
04:00 Building the Plugin with Maven
04:40 Executing the Test and Performance Check
06:35 Conclusion and GitHub Resources
➡️ Subscribe to my blog qainsights.com
➡️ Join QAInsights Community at https://qain.si/community
➡️ Join QAInsights Academy at https://qain.si/academy
➡️ Buy me a tea 🍵 buymeacoffee.com/qainsights
➡️ Get Certified in CKAD https://qain.si/startk8s
➡️ Get Certified in CKA https://qain.si/cka
➡️ My preferred DNS is NextDNS https://qain.si/nextdns
➡️ Learn Linux https://qain.si/linux
➡️ Get performance testing jobs real quick using Indeed → goo.gl/XAfCcE
➡️ Hostinger Web Hosting → goo.gl/MfwDyU
➡️ My Productivity Tools → goo.gl/2DfC5d
➡️ App Sumo for your business → goo.gl/zj92SA
➡️ Amazon → amzn.to/2L0Jv2n
➡️ TubeBuddy → tubebuddy.com/qainsights
➡️ LoadRunner Playlist youtube.com/playlist?list=PLJ9A48W0kpRIiVf8W7jMvf6Ao-naX3Ari
➡️ My first Udemy course entitled `Performance Testing using DevWeb` has been published https://qain.si/devweb
In this tutorial, learn how to streamline your JMeter AI plugins by implementing a global configuration element. We'll walk through creating an Ollama Config element to manage common properties like base URLs, models, and timeouts, eliminating the need for repetitive configurations in every sampler.
We also dive into a critical performance optimization technique for plugin developers: using META-INF/services to skip unnecessary JAR scanning and speed up JMeter startup times.
What you’ll learn:
Global AI Configuration: How to create a reusable config element similar to HTTP Request Defaults.
Java Implementation: Extending AbstractConfigGui and AbstractTestElement for custom JMeter components.
Thread Safety: Using the volatile keyword in your config holders for multi-threaded performance.
Performance Tuning: Explicitly defining core classes in metadata to optimize plugin loading.
GitHub Repo: github.com/QAInsights/jmeter-plugin-development-series
00:00 Intro and Recap
00:21 The Need for a Global AI Config Element
00:57 Benefits of Ollama Config
01:40 Code Walkthrough: Config GUI Implementation
02:37 Ollama Config Class and Test State Listeners
03:00 Defining Properties and Default Values
03:22 Ollama Config Holder and Thread Safety (volatile)
04:00 Building the Plugin with Maven
04:40 Executing the Test and Performance Check
06:35 Conclusion and GitHub Resources
➡️ Subscribe to my blog qainsights.com
➡️ Join QAInsights Community at https://qain.si/community
➡️ Join QAInsights Academy at https://qain.si/academy
➡️ Buy me a tea 🍵 buymeacoffee.com/qainsights
➡️ Get Certified in CKAD https://qain.si/startk8s
➡️ Get Certified in CKA https://qain.si/cka
➡️ My preferred DNS is NextDNS https://qain.si/nextdns
➡️ Learn Linux https://qain.si/linux
➡️ Get performance testing jobs real quick using Indeed → goo.gl/XAfCcE
➡️ Hostinger Web Hosting → goo.gl/MfwDyU
➡️ My Productivity Tools → goo.gl/2DfC5d
➡️ App Sumo for your business → goo.gl/zj92SA
➡️ Amazon → amzn.to/2L0Jv2n
➡️ TubeBuddy → tubebuddy.com/qainsights
➡️ LoadRunner Playlist youtube.com/playlist?list=PLJ9A48W0kpRIiVf8W7jMvf6Ao-naX3Ari
➡️ My first Udemy course entitled `Performance Testing using DevWeb` has been published https://qain.si/devweb










