top of page

Example Jmeter workload for Postgres and Oracle

Writer: kyle Hailey
kyle Hailey
Feb 27, 2017
1 min read

Updated: Jun 16, 2025

pgload.jmx is JMX file you can load into Jmeter and run a substantial load on a Postgres database. Should work just as well on Oracle if you change the test SQL from “Select 1″ to “select 1 from dual”

Install jmeter on our machine . On my mac, I did

  1. brew install jmeter

You will need the Postgres driver. I used

  1. The example jmx uses postgresql-9.4-jdbc4.jar but you can get the latest jar file from  https://jdbc.postgresql.org

  2. Put it in the classpath in jmeter


jmeter1

To use this file, save it as pgload.jmx and then open it up with Jmeter. Change the database URL with host, port, database name, and fill in your username and password.

The database URL looks like jdbc:postgresql://machine.com:5432/database

where “machine.com” is the machine running PostgreSQL  and “database” is the name of the database you are using in that instance and “5432” is the port to connect over.


Screen Shot 2017-02-27 at 2.56.19 PM

You have to make TWO connection string changes. One is as shown above for “Setup Connection” and the other is 2 rows below “JDBC Connection Configuration” where you make the same changes.

Then just hit the green triangle to start the load.

The load will create a table named authors, a sequence called serial and an index called author_id if these don’t already exist.

It will then run inserts, deletes, updates and selects on this table.

 
 
 

2 Comments


Guest
Oct 21

Guidance on my aadhaar download should focus on accurate details, privacy, and simple navigation. Practical guidance should explain the limits of each service and direct readers to official sources for confirmation. Reliable information helps people navigate services with greater confidence.

Like

Guest
Oct 21

This article makes UP Land Record information easier to understand. I appreciate the simple language because readers should not need technical knowledge to learn about property records and the online facilities available for accessing relevant information.

Like

Kyle Hailey

  • Facebook
  • Twitter
  • LinkedIn
  • Instagram

San Franisco, Ca 94131

415-341-3430  (please text initially before calling)

bottom of page