All about unix linux freebsd and FAQ for Packetlove.com Web hosting , Mail hosting , VoIP + IP PBX server > Loadtest gatling.io knowledge

gatling.sh แสดง error JVM code size limits

(1/1)

golfreeze:
17:53:22.466 [ERROR] i.g.c.ZincCompiler$ - \bin\gatling-charts-highcharts-bundle-2.1.4\user-files\simulations\orange\ScenarioFibre
.scala:7: Could not write class orange/ScenarioFibre because it exceeds JVM code size limits. Method scala/concurrent/duration/package$DurationInt's code too large!
17:53:22.467 [ERROR] i.g.c.ZincCompiler$ - class ScenarioFibre extends Simulation {
17:53:22.468 [ERROR] i.g.c.ZincCompiler$ -       ^
17:53:22.474 [ERROR] i.g.c.ZincCompiler$ - one error found
17:53:22.475 [DEBUG] i.g.c.ZincCompiler$ - Compilation failed (CompilerInterface)

เกิดจากตัว gatling ไม่สามารถยิงโหลดเทสได้ เนื่องจาก code ที่เขียนกิน memory จนหมด ทำให้ไม่สามารถยิงไปสร้างเป็น result ได้ครับ
วิธีแก้ไขก็คือต้องแก้ไขที่ code แก้ไขในส่วนของ object ไปเป็น singleton object

golfreeze:
หรือถ้าท่านใดแก้ไขไม่ได้ อาจจะใช้เป็นตัว gatling version 2.1.7 ก็ได้ครับ

นำร่อง

[0] ดัชนีข้อความ

Go to full version