Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

To increase the amount of memory allocated to your groovy scripts, set your JAVA_OPTS environment variable. JAVA_OPTS="-Xmx..."

Avoiding PermGen out of memory

Groovy creates classes dynamically, but the default Java VM does not GC the PermGen. If you are using Java 6 or later, add -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC. UseConcMarkSweepGC is needed to enable CMSClassUnloadingEnabled.


Groovy and the Cloud

Groovy can run anywhere the JVM runs - including many cloud platforms, likewise, continuous integration is just as easy. You can kick the tyres at CloudBees for hosting your groovy app, this quick start will get you going (with the correct settings and permgen):

Image Added

This will setup a CI job (running tests and build, in Jenkins) and deploy the "pet store" app that uses the grails "pet store" demo app (you can use it for free). Prefer to set it up yourself, read here for details.