Create a normal JMeter test with a ThreadGroup. Add a JMS Point to Point component, as shown below… Add the following configurations, which I couldn’t show in a single window (not enough space). In Apache 2.11, ActiveMQ libraries must already…
Author: Steve
Using Spring AMQP to post messages to RabbitMQ
The ActiveMQ jar’s come with the AMQP 1.0 protocol, which doesn’t work against a RabbitMQ AMQP version 0.9.1 broker. As such, we use a spring jar to get this to work, thanks to this link. Very simple example of this.…
Camel route to consume external web service
I thought this was pretty difficult to find a very simple working example. The following works as an example of a polling consumer integration pattern… This will do a GET of the URL listed every 30 seconds, and write the…
Simple awk script to print blocked threads
Yet another variation on this theme. This is good because it will allow you to quickly go to the problem thread. #!/bin/awk -f { if ($0 ~ “- locked” || $0 ~ “- waiting to lock”) { s[i++]=$0 } }…
Simulating SocketTimeoutException
A SocketTimeoutException occurs when a socket object instance has been configured to throw the exception if it receives no data in the prescribed number of milliseconds. The default is 0, which disables the timeout. Reasons you may want to use…
ActiveMQ using a single connection for multiple consumers
We had a need to test this, as a WebMethods installation that uses what they call Triggers had the configuration noted in the title of the post. Not much other detail, just an example for someone who may wander by…
Recency Frequency Monetary (RFM) customer valuation in SQL
RFM is certainly not perfect. We identified a company purchasing our product at huge discounts (sales, etc.). As such, they show up as a good customer, but only from the standpoint of the top line. The key is to check…
Using Pentaho business model in a report
After starting the Pentaho Metadata Editor (MDE), the first thing we should do is configure the model to fetch security information from Active Directory (AD). This of course assumes that you have configured the Pentaho Server to fetch users from…
Retrieving message header in Outlook
This seems to vary across versions, so this is a placeholder for Outlook 15. Click File… Click the Properties button …and the message header is at the bottom…
Predict full CMS collection
((heap * cms fraction) – current heap used (young and tenured)) / growth rate = prediction Sample data from GC log… : 4499906K->310178K(4718592K), 0.2461130 secs] 10382742K->6214227K(12058624K), 0.2469460 secs] [Times: user=2.77 sys=0.03, real=0.25 secs] 2016-10-25T09:41:02.431-0400: 48708.056: [GC 48708.056: [ParNew48708.198: [SoftReference, 0…