Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9238555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:47:24+00:00 2026-06-18T07:47:24+00:00

I am trying to deploy my Grails 2.1.1 application to cloudfoundry.com. On my local

  • 0

I am trying to deploy my Grails 2.1.1 application to cloudfoundry.com. On my local computer the application runs without problems. When removing the Quartz plugin dependency from the BuildConfig.groovy I’am able to start the application on cloudfoundry successfully.

Dependency:

compile ":quartz:1.0-RC5"

The grails cf-logs prints the following error:

Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" java.lang.OutOfMemoryError: PermGen space

Below see my Job:

package de.tum.wi.fm.game
import org.quartz.JobExecutionContext

class StartGameJob {
    def execute(JobExecutionContext context) {
        def gameRoundId = context.mergedJobDataMap.get('gameRoundId')

        if(gameRoundId) {
            GameRound gameRound = GameRound.get(gameRoundId)
            if(gameRound) {
                Game game = gameRound?.game
                game.currentGameRound = gameRound
                game.save(flush: true)
            }
        }
    }
}

The trigger is placed in a service:

def jobParams = [gameRoundId:gameRound.id]
Date gameRoundEndDate = gameRound.endDate.toDate()
ChangeRoundJob.schedule(gameRoundEndDate, jobParams)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T07:47:25+00:00Added an answer on June 18, 2026 at 7:47 am

    The OutOfMemoryError exception determines that the JVM hasn’t enough memory assigned. You need to increase the memory of cloudfoundry instance and consequently increase memory of the JVM.

    Try to execute following commands when deploying your application:

    grails -Dgrails.env=production cf-push --memory=2048 --no-start
    grails -Dgrails.env=production cf-env-add JAVA_OPTS -Xmx1024m -XX:MaxPermSize=512m
    grails -Dgrails.env=production cf-start
    

    The first command will push (deploy) the application into the cloudfoundry instance and doesn’t start it.

    The second will set JVM environment variables, sufficient memory settings.

    Third command starts the application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

while trying to deploy a Grails application into tomcat6 I ran into some problems:
I'm trying to deploy an MVC4 web application to Azure. It has a dependency
I'm trying to deploy a Grails application on Openshift. I'm deploying the app using
Hello I am trying to deploy my grails application to my newly installed jetty
I'm trying to use the release 2.0.4 plugin to deploy my war through grails
I am trying to deploy my grails application to Geronimo/Tomcat 7/Glassfish 3.1. None of
I'm trying to write a Grails script to build and deploy (scp) my application
I'm trying to deploy my Grails-app (1.3.7) on Heroku. I downloaded the Heroku-plugin, added
I am trying to deploy my JPA application on 2 separate instances within the
I am trying to deploy a playframework application to Heroku. After deploying, I trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.