Fcaing the issue while setup

Hi Team, Facing below issue when i click on recorder.bat file

java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at io.gatling.plugin.util.MainWithArgsInFile.runMain(MainWithArgsInFile.java:53)
        at io.gatling.plugin.util.MainWithArgsInFile.main(MainWithArgsInFile.java:34)
Caused by: java.lang.OutOfMemoryError: unable to create new native thread
        at java.lang.Thread.start0(Native Method)
        at java.lang.Thread.start(Unknown Source)
        at sun.java2d.Disposer.lambda$static$0(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.java2d.Disposer.<clinit>(Unknown Source)
        at sun.awt.windows.WToolkit.<init>(Unknown Source)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at java.lang.Class.newInstance(Unknown Source)
        at java.awt.Toolkit$2.run(Unknown Source)
        at java.awt.Toolkit$2.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Unknown Source)
        at sun.java2d.d3d.D3DGraphicsDevice.<clinit>(Unknown Source)
        at sun.awt.Win32GraphicsEnvironment.makeScreenDevice(Unknown Source)
        at sun.java2d.SunGraphicsEnvironment.getScreenDevices(Unknown Source)
        at sun.awt.Win32GraphicsEnvironment.getDefaultScreenDevice(Unknown Source)
        at java.awt.Window.initGC(Unknown Source)
        at java.awt.Window.init(Unknown Source)
        at java.awt.Window.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at javax.swing.JFrame.<init>(Unknown Source)
        at scala.swing.Frame$$anon$1.<init>(RichWindow.scala:82)
        at scala.swing.Frame.peer$lzycompute(RichWindow.scala:82)
        at scala.swing.Frame.peer(RichWindow.scala:82)
        at scala.swing.Frame.peer(RichWindow.scala:81)
        at scala.swing.UIElement$.scala$swing$UIElement$$cache(UIElement.scala:25)
        at scala.swing.UIElement.$init$(UIElement.scala:83)
        at scala.swing.Window.<init>(Window.scala:28)
        at scala.swing.Frame.<init>(RichWindow.scala:81)
        at scala.swing.MainFrame.<init>(MainFrame.scala:19)
        at io.gatling.recorder.ui.swing.frame.ConfigurationFrame.<init>(ConfigurationFrame.scala:48)
        at io.gatling.recorder.ui.swing.SwingFrontEnd.configurationFrame$lzycompute(SwingFrontEnd.scala:34)
        at io.gatling.recorder.ui.swing.SwingFrontEnd.configurationFrame(SwingFrontEnd.scala:34)
        at io.gatling.recorder.ui.swing.SwingFrontEnd.init(SwingFrontEnd.scala:101)
        at io.gatling.recorder.controller.RecorderController.<init>(RecorderController.scala:48)
        at io.gatling.recorder.GatlingRecorder$.initRecorder(GatlingRecorder.scala:40)
        at io.gatling.recorder.GatlingRecorder$.$anonfun$fromArgs$1(GatlingRecorder.scala:32)
        at scala.Option.map(Option.scala:242)
        at io.gatling.recorder.GatlingRecorder$.fromArgs(GatlingRecorder.scala:32)
        at io.gatling.recorder.GatlingRecorder$.main(GatlingRecorder.scala:28)
        at io.gatling.recorder.GatlingRecorder.main(GatlingRecorder.scala)
        ... 6 more
Exception in thread "main" io.gatling.plugin.util.Fork$ForkException
        at io.gatling.plugin.util.Fork.run(Fork.java:229)
        at io.gatling.bundle.commands.RecorderCommand.run(RecorderCommand.scala:44)
        at io.gatling.bundle.RecorderCLI$.main(RecorderCLI.scala:48)
        at io.gatling.bundle.RecorderCLI.main(RecorderCLI.scala)
Press any key to continue . . .

Hi @gsrinivas456,

  • recorder.bat: I guess you run under Windows
  • OutOfMemoryError means that there is not enough available RAM allocated to the JVM to be able to run the application.

Please provide:

  • Your windows version
  • Gatling bundle version
  • Your RAM (and free RAM at the launch time)
  • The java version
  • The whole log

Cheers!

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