Giter Club home page Giter Club logo

mongometer's Introduction

To quickstart, just check everything is hanging together.

Copy across the jars
mongometer.jar lives in out/artifacts
Ensure you have mongometer.jar and the mongo java driver jar in /usr/lib/jmeter/2.8/lib/ext
It's a java7, 64-bit linux build (just in case you have any issues)

Start up mongodb
/usr/lib/mongodb/2.0.6/bin/mongod --dbpath /data/db --logpath /data/db/mongod.log

Start up a shell
$cd /usr/lib/mongodb/2.0.6/bin/
$./mongo

Set the logging level in jmeter.properties
#log_level.jan=DEBUG
log_level.jan.mongometer.config=DEBUG
#log_level.jan.mongometer.mongo=DEBUG
#log_level.jan.mongometer.sampler=DEBUG


Inside /usr/lib/jmeter/2.8/lib/ext/ApacheJMeter_core.jar
Edit this
/org/apache/jmeter/resources/messages.properties
Change Line 682
from
property_tool_tip={0}\: {1}
to
property_tool_tip=<html><b>{0}</b><br><br>{1}</html>

Start up jmeter
/usr/lib/jmeter/2.8/bin/jmeter.sh

Add a ThreadGroup
Add MongoDB Sampler to the ThreadGroup
Add View Result Tree Listener to ThreadGroup

Server Address List
127.0.0.1

Database
jmeter

Example Script
Insert
db.jmeter.insert({"jan":"the great"})

Count
function() {return db.jmeter.find().count();}

Find
function() {return db.jmeter.find().toArray();}

Hit Go

In the shell
>use jmeter
>db.jmeter.find()

mongometer's People

Contributors

janpaulettles avatar

Watchers

James Cloos avatar Jitendra Jain avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.