Golfreeze.packetlove.com: Life style of Golfreeze Canon400D Family kammtan.com Jazz Freebsd Unix Linux System Admin guitar Music

All about unix linux freebsd and FAQ for Packetlove.com Web hosting , Mail hosting , VoIP + IP PBX server => Loadtest gatling.io knowledge => Topic started by: golfreeze on ธันวาคม 14, 2015, 04:10:23 PM

Title: gatling.sh แสดง error JVM code size limits
Post by: golfreeze on ธันวาคม 14, 2015, 04:10:23 PM
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
Title: Re: gatling.sh แสดง error JVM code size limits
Post by: golfreeze on มิถุนายน 29, 2016, 07:03:44 PM
หรือถ้าท่านใดแก้ไขไม่ได้ อาจจะใช้เป็นตัว gatling version 2.1.7 ก็ได้ครับ