How to speed up grails test execution

前端 未结 7 1394
孤独总比滥情好
孤独总比滥情好 2020-12-12 21:31

While developing a Grails 1.0.5 app I\'m appalled at how slow the grails test-app command is. Even though the actual tests take just ~10 seconds, the whole exec

相关标签:
7条回答
  • 2020-12-12 22:24

    Increasing the java memory/JVM options can definitely speed things up. The amount of memory you can give depends on your equipment.

    If you are running grails from the command line, set the GRAILS_OPTS environment variable. Add something like this to ~/.bash_profile

    export GRAILS_OPTS="-Xms3000M -Xmx3000M -XX:PermSize=256m -XX:MaxPermSize=512m"
    

    If you use GGTS(Eclipse) you'll need to add this to the VM arguments of the run configuration. GGTS vm args

    There are also a few JVM settings that can be modified to increase the speed:

    -XX:+UseCodeCacheFlushing 
    -XX:MaxInlineLevel=15  
    -noverify  (turns off class validation) 
    
    0 讨论(0)
提交回复
热议问题