DATE: Aug 28, 2014
AUTHOR: Ashish Vijaywargiya
Earlier in our blog series we shared information on application load testing with Apache JMeter and its logical architecture. Recently we had a chance to setup a performance testing infrastructure for an Apache OFBiz project. The goal was to put OFBiz under a heavy load to prove it was able to scale properly, and to do some capacity planning. Here, we are sharing a step by step guide to restore pre-build Amazon Machine Images to load test OFBiz.
I. Steps to search for and select Amazon Machine Images (AMIs)
II. Steps to restore Amazon Machine Images (AMIs)
III. Steps to connect with the newly launched instances
IV. Steps to start, stop, and check the status of the ofbiz instance
V. Steps to execute the JMeter scripts
3. Select ‘US East (N. Virginia)’ area from the right top corner of the screen.
4. Select IMAGES -> AMIs from the left navbar of the screen
5. Select the search filter for ‘Public Images’ and search the specific images with the keywords mentioned below :
Once the above steps have been performed, we have a list of images available that can be selected and restored for performing further tests. The steps to restore the images are defined below. The respective values, type and port details of images for instance, can be referenced in the table below (Table-1).
III. Steps to connect to the newly launched instances using the SSH command.
Login into the ofbiz server via ssh and then perform the following operations.
a) Start instance: svc -u /service/loadtest.ofbiz.us
b) Stop instance: svc -d /service/loadtest.ofbiz.us
c) Check instance status: svstat /service/loadtest.ofbiz.us
We have used a single machine with two JMeter instances to make up the two users “jmeter1” and “jmeter2”. Each user will have separate JMeter and jdk setups available for their use.
Once you have prepared and tested everything, using one JMeter instance and one User configuration, you can add more JMeter instances on the same machine and run a series of test cases to stress your application. This is how to load test Apache OFBiz on AWS.
Do you have any OFBiz performance issues? Looking for an OFBiz system from HotWax Media? Contact us!
Thanks for your time!