Logging is happening at TRACE level on Gatling 3.9.0 although it is set as "WARN"

Hi,
I have recently started using gatling-3.9.0.
In logback.xml the log level is set as – .
However I am seeing Log is happening at TRACE level when I am running the test from a Linux platform (Redhat 8.4 with OpenJDK 11.0.10) as a server.
In my local Windows 10 system with OpenJDK17 the log is happening fine.

My older versions of Gatling ( 3.7.2 , 3.8.3 ) it is working as expected.

Is set as what?! Valid values are error, warn, info, debug and trace.
Either your logback.xml file is broken, or it’s missing from the classpath. Anyway, it’s not a Gatling issue/regression but something you’ve broken on your side.

You can check for yourself that the official demo projects work as expected.

Official demo project is working as expected.

Not sure if some deprecation issue or not. I will check my script and update accordingly.
First few part from the log is coming as :

GATLING_HOME is set to /root/archan/gatling-3.9.0
17:36:14.043 [TRACE] i.g.a.Gatling$ - Starting
17:36:14.047 [INFO ] i.g.c.c.GatlingConfiguration$ - Gatling will try to load 'gatling.conf' config file as ClassLoader resource.
17:36:14.172 [TRACE] i.g.a.Gatling$ - Configuration loaded
17:36:14.172 [TRACE] i.g.a.Gatling$ - ActorSystem instantiated
17:36:14.395 [INFO ] a.e.s.Slf4jLogger - Slf4jLogger started
17:36:14.574 [DEBUG] i.n.u.i.l.InternalLoggerFactory - Using SLF4J as the default logging framework
17:36:14.586 [DEBUG] i.n.u.i.PlatformDependent0 - -Dio.netty.noUnsafe: false
17:36:14.586 [DEBUG] i.n.u.i.PlatformDependent0 - Java version: 11
17:36:14.587 [DEBUG] i.n.u.i.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
17:36:14.587 [DEBUG] i.n.u.i.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
17:36:14.587 [DEBUG] i.n.u.i.PlatformDependent0 - sun.misc.Unsafe.storeFence: available
17:36:14.588 [DEBUG] i.n.u.i.PlatformDependent0 - java.nio.Buffer.address: available
17:36:14.590 [DEBUG] i.n.u.i.PlatformDependent0 - direct buffer constructor: unavailable
java.lang.UnsupportedOperationException: Reflective setAccessible(true) disabled
	at io.netty.util.internal.ReflectionUtil.trySetAccessible(ReflectionUtil.java:31)
	at io.netty.util.internal.PlatformDependent0$5.run(PlatformDependent0.java:288)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at io.netty.util.internal.PlatformDependent0.<clinit>(PlatformDependent0.java:282)
	at io.netty.util.internal.PlatformDependent.isAndroid(PlatformDependent.java:333)
	at io.netty.util.internal.PlatformDependent.<clinit>(PlatformDependent.java:88)
	at io.netty.util.internal.ClassInitializerUtil.tryLoadClasses(ClassInitializerUtil.java:32)
	at io.netty.channel.epoll.Native.<clinit>(Native.java:72)
	at io.netty.channel.epoll.Epoll.<clinit>(Epoll.java:40)
	at io.gatling.netty.util.Transports.newEventLoopGroup(Transports.java:47)
	at io.gatling.app.Gatling$.start(Gatling.scala:85)
	at io.gatling.app.Gatling$.fromArgs(Gatling.scala:51)
	at io.gatling.app.Gatling$.main(Gatling.scala:39)
	at io.gatling.app.Gatling.main(Gatling.scala)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at io.gatling.plugin.util.ForkMain.runMain(ForkMain.java:67)
	at io.gatling.plugin.util.ForkMain.main(ForkMain.java:35)
17:36:14.590 [DEBUG] i.n.u.i.PlatformDependent0 - java.nio.Bits.unaligned: available, true
17:36:14.591 [DEBUG] i.n.u.i.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable
java.lang.IllegalAccessException: class io.netty.util.internal.PlatformDependent0$7 cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @53976f5c
	at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361)
	at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:591)

if you need some help, please provide a reproducer as instructed here: How to Ask a Question

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.