Author Topic: gatling.sh แสดง error JVM code size limits  (Read 5002 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
gatling.sh แสดง error JVM code size limits
« 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

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: gatling.sh แสดง error JVM code size limits
« Reply #1 on: มิถุนายน 29, 2016, 07:03:44 PM »
หรือถ้าท่านใดแก้ไขไม่ได้ อาจจะใช้เป็นตัว gatling version 2.1.7 ก็ได้ครับ