How to increase Perm Size for kie-maven-plugin?

Solution Unverified - Updated -

Issue

  • I get PermGen space OutOfMemoryError while building a kjar with kie-maven-plugin. How can I increase Perm size?
[INFO] --- kie-maven-plugin:6.5.0.Final-redhat-2:build (default-build) @ Drools64Ex001_basic_kjar ---
[INFO] Adding KieModule from resource: FileResource[file=/home/tkobayas/workspaces/workspace900_02131242/Drools64Ex001_basic_kjar/src/main/resources]
[INFO] KieModule was added: FileKieModule[releaseId=com.sample:Drools64Ex001_basic:1.0.0-SNAPSHOT,file=/home/tkobayas/workspaces/workspace900_02131242/Drools64Ex001_basic_kjar/src/main/resources]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:21 min
[INFO] Finished at: 2018-06-29T16:43:05+09:00
[INFO] Final Memory: 56M/4372M
[INFO] ------------------------------------------------------------------------
[ERROR] PermGen space -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError

Environment

  • Red Hat JBoss BRMS
  • Red Hat JBoss BPM Suite
    • 6
  • JDK
    • 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.