April 1, 2020
Estimated Post Reading Time ~

Importance of Apache Bench tool ?

Apache Bench is useful for quick and dirty tests of AEM. It is especially useful for testing the capacity of your load-balancer/Dispatcher tier.

For Windows, download Apache HTTP Server (64-bit) from Apache Lounge. Apache Bench will be available in the /bin folder. You can use ab.exe, or abs.exe for HTTPS requests.

The following command will send 20,000 GET requests at a concurrent user level of 400:

abs -r -k -n 20000 -c 400 -H “Accept-Encoding: gzip,deflate” https://stage.test.com/content/en.html

Use the 95th percentile value (reported in milliseconds) for decision making.
The following will upload a JPEG image to DAM at /content/dam/adobetest:

abs -A aemuser:password -n 1 -c 1 -u D:\Photos\IMG_9332.jpg -T image/jpeg https://stage.test.com/content/dam/adobetest/IMG_9332.jpg


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.