Dear forumers, I tried to code 1 million users request on homepage but it has run out of memory,
public class orangehrm extends Simulation{
// Add the HttpProtocolBuilder:
HttpProtocolBuilder httpProtocol =
http.baseUrl("https://opensource-demo.orangehrmlive.com/web/index.php/auth/login")
.acceptHeader("application/json")
.contentTypeHeader("application/json");
// Add the ScenarioBuilder:
ScenarioBuilder homepageScenario = scenario("Homepage Street Testing Scenario")
.exec(http("Homepage Request").get("/"));
{
setUp(
homepageScenario.injectOpen(constantUsersPerSec(100000).during(3600))
).protocols(httpProtocol);
}
}
Errors;
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread “gatling-1-6”
[INFO] Running simulation com.rev.stressTesting.orangehrm.
22:31:26,894 |-INFO in ch.qos.logback.classic.LoggerContext[default] - This is logback-classic version 1.5.6
22:31:26,896 |-INFO in ch.qos.logback.classic.util.ContextInitializer@7692d9cc - No custom configurators were discovered as a service.
22:31:26,897 |-INFO in ch.qos.logback.classic.util.ContextInitializer@7692d9cc - Trying to configure with ch.qos.logback.classic.joran.SerializedModelConfigurator
22:31:26,899 |-INFO in ch.qos.logback.classic.util.ContextInitializer@7692d9cc - Constructed configurator of type class ch.qos.logback.classic.joran.SerializedModelConfigurator
22:31:26,911 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.scmo]
22:31:26,912 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.scmo]
22:31:26,933 |-INFO in ch.qos.logback.classic.util.ContextInitializer@7692d9cc - ch.qos.logback.classic.joran.SerializedModelConfigurator.configure() call lasted 13 milliseconds. ExecutionStatus=INVOKE_NEXT_IF_ANY
22:31:26,933 |-INFO in ch.qos.logback.classic.util.ContextInitializer@7692d9cc - Trying to configure with
Gatling version: 3.11.5
Gatling flavor: java
Gatling build tool: maven
Please help me. I’m completely beginner.