AEM load testing - Apache JMeter | Community
Skip to main content
prohira
Level 3
Apr 26, 2018 8:47 PM UTC
Solved

AEM load testing - Apache JMeter

I need help in doing load testing using JMeter. I wrote my scripts and it's working fine on my local. Using JMeter, I can login, perform Omni Search and able to test other custom functionalities also on my local AEM instance. When I try to do the same thing on remote instances, JMeter is error'ing out.

First step is to login to remote instance - I am doing a POST call to /libs/granite/core/content/login.html/j_security_check and passing all the parameters but I get a 403 Forbidden error. As part of the POST call, I am passing necessary Request Headers as well such as: Host, User-Agent, Referer. (I actually traced the POST call using Firefox when I normally login to AEM using browser and grabbed all the Request Headers from there).

Just wondering if I need to enable RMI or something on remote instance to connect or am I missing anything?

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Apr 27, 2018 3:49 PM UTC

It's likely the referrer filter blocks your request. "localhost" is on the whitelist by default, but if you reach out to AEM via a different name, you should whitelist that hostname too (or set the referrer header accordingly).

Jörg

1 reply

joerghoh
joerghohAccepted solution
Employee
Apr 27, 2018 3:49 PM UTC

It's likely the referrer filter blocks your request. "localhost" is on the whitelist by default, but if you reach out to AEM via a different name, you should whitelist that hostname too (or set the referrer header accordingly).

Jörg

Translate