Coder Social home page Coder Social logo

Comments (5)

bmuschko avatar bmuschko commented on June 13, 2024

I am not aware of any way that let's you tweak the memory settings for the embedded implementation. As the embedded Tomcat runs within the same JVM as Gradle does, you will need to change the PermGen settings there e.g.

GRADLE_OPTS="-XX:MaxPermSize=128M"

With "there" I mean the environment variables in your Gradle shell scripts under <GRADLE_HOME>/bin.

Closing the ticket for now. Please let me know if you need more info.

from gradle-tomcat-plugin.

necronet avatar necronet commented on June 13, 2024

is there a way to set this with gradle.properties ??

from gradle-tomcat-plugin.

bmuschko avatar bmuschko commented on June 13, 2024

Try out org.gradle.jvmargs as described in Chapter 20. The Build Environment of the Gradle documentation. However, this might only work if you run Gradle as daemon process. It's worth a shot.

from gradle-tomcat-plugin.

wdavilaneto avatar wdavilaneto commented on June 13, 2024

Hi bmuschko! .. I believe this memory shortage deserves an investigation. Please, let me explain why.

I've generated a very simple project with tomcat plugin on both Gradle ( this) and for Maven. It has same Dependencies, classes, architecture on both builds (gradle and pom). With maven plugin no extra memory is needed. On Gradle, well it's not just a matter of memory, it takes SEVERAL , i mean a lots of time to start (After raising memory).

Please, let me now if you need the example code, or mail me for any further information.

Kind regards
wdavilaneto

from gradle-tomcat-plugin.

bmuschko avatar bmuschko commented on June 13, 2024

If you can provide me with both example projects (preferably on GitHub) - Maven and Gradle - I can have a look at it. Otherwise, it's hard to give you an answer to your question.

from gradle-tomcat-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.