Quantcast

Tomcat plugin doesn't seem to support all properties listed in its documentation

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Tomcat plugin doesn't seem to support all properties listed in its documentation

bond_
Hi,

As per the documentation I see that the supported properties are:
  • tomcat.deploy.username - The username of the remote tomcat to deploy to
  • tomcat.deploy.password - The password for the remote tomcat to deploy to
  • tomcat.deploy.url - The remote tomcat deploy URL
  • tomcat.scan.enabled (since 2.0.1) - Where Servlet 3.0 annotation classpath scanning is enabled (false by default). Note that enabling this setting will require you to significantly increase your memory settings as the Servlet 3.0 scanning feature consumes a large amount of memory.
  • tomcat.scan.excludes (since 2.0.1) - If class path scanning is enabled, what jars to limit
  • tomcat.nio - Whether to enable the Tomcat New IO connector
  • tomcat.keystorePath - The path to the Tomcat keystore for HTTPS
  • tomcat.keystorePassword - The password for the keystore for HTTPS
  • tomcat.jvmArgs - Any JVM arguments to pass to the isolated Tomcat instance used for run-war
  • tomcat.startupTimeoutSecs - The time to wait for startup for the isolated Tomcat instance
I have included

tomcat.jvmArgs="-server -XX:MaxPermSize=512m -XX:MaxNewSize=256m -XX:NewSize=256m -Xms768m -Xmx1024m -XX:SurvivorRatio=128 -XX:MaxTenuringThreshold=0 -XX:+UseTLAB -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSIncrementalMode -XX:-UseGCOverheadLimit -XX:+ExplicitGCInvokesConcurrent"

But running the application using run-war generates the following command:
/home/<user>/Downloads/jdk1.6.0_35/jre/bin/java -Xmx512m -Dtomcat.keystorePath=[:] -Dtomcat.startupTimeoutSecs=[:] -Dtomcat.jvmArgs=[:] -classpath /home/<user>/.grails/ivy-cache/org.apache.tomcat/tomcat-catalina-ant/jars/tomcat-catalina-ant-7.0.16.jar:/home/<user>/.grails/ivy-cache/org.apache.tomcat.embed/tomcat-embed-core/jars/tomcat-embed-core-7.0.16.jar:/home/<user>/.grails/ivy-cache/org.apache.tomcat.embed/tomcat-embed-jasper/jars/tomcat-embed-jasper-7.0.16.jar:/home/<user>/.grails/ivy-cache/org.apache.tomcat.embed/tomcat-embed-logging-log4j/jars/tomcat-embed-logging-log4j-7.0.16.jar:/home/<user>/.grails/ivy-cache/org.grails/grails-plugin-tomcat/jars/grails-plugin-tomcat-2.0.0.jar org.grails.plugins.tomcat.IsolatedTomcat /home/<user>/.grails/2.0.0/projects/<project>/tomcat /home/<user>/.grails/2.0.0/projects/<project>/war /<project> localhost 9090

I do not find any code which utilises these properties. Bug? or am I missing something?

The problem is I'm facing java.lang.OutOfMemoryError: PermGen space

--
Ravi Teja Lokineni | Software Engineer
SemanticBits India Pvt. Ltd.



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Tomcat plugin doesn't seem to support all properties listed in its documentation

bond_
Found the problem http://jira.grails.org/browse/GRAILS-6346

Updated the docs as per the current scenario: http://grails.org/plugin/tomcat

On Thu, Sep 13, 2012 at 3:04 PM, Raviteja Lokineni <[hidden email]> wrote:
Hi,

As per the documentation I see that the supported properties are:
  • tomcat.deploy.username - The username of the remote tomcat to deploy to
  • tomcat.deploy.password - The password for the remote tomcat to deploy to
  • tomcat.deploy.url - The remote tomcat deploy URL
  • tomcat.scan.enabled (since 2.0.1) - Where Servlet 3.0 annotation classpath scanning is enabled (false by default). Note that enabling this setting will require you to significantly increase your memory settings as the Servlet 3.0 scanning feature consumes a large amount of memory.
  • tomcat.scan.excludes (since 2.0.1) - If class path scanning is enabled, what jars to limit
  • tomcat.nio - Whether to enable the Tomcat New IO connector
  • tomcat.keystorePath - The path to the Tomcat keystore for HTTPS
  • tomcat.keystorePassword - The password for the keystore for HTTPS
  • tomcat.jvmArgs - Any JVM arguments to pass to the isolated Tomcat instance used for run-war
  • tomcat.startupTimeoutSecs - The time to wait for startup for the isolated Tomcat instance
I have included

tomcat.jvmArgs="-server -XX:MaxPermSize=512m -XX:MaxNewSize=256m -XX:NewSize=256m -Xms768m -Xmx1024m -XX:SurvivorRatio=128 -XX:MaxTenuringThreshold=0 -XX:+UseTLAB -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSIncrementalMode -XX:-UseGCOverheadLimit -XX:+ExplicitGCInvokesConcurrent"

But running the application using run-war generates the following command:
/home/<user>/Downloads/jdk1.6.0_35/jre/bin/java -Xmx512m -Dtomcat.keystorePath=[:] -Dtomcat.startupTimeoutSecs=[:] -Dtomcat.jvmArgs=[:] -classpath /home/<user>/.grails/ivy-cache/org.apache.tomcat/tomcat-catalina-ant/jars/tomcat-catalina-ant-7.0.16.jar:/home/<user>/.grails/ivy-cache/org.apache.tomcat.embed/tomcat-embed-core/jars/tomcat-embed-core-7.0.16.jar:/home/<user>/.grails/ivy-cache/org.apache.tomcat.embed/tomcat-embed-jasper/jars/tomcat-embed-jasper-7.0.16.jar:/home/<user>/.grails/ivy-cache/org.apache.tomcat.embed/tomcat-embed-logging-log4j/jars/tomcat-embed-logging-log4j-7.0.16.jar:/home/<user>/.grails/ivy-cache/org.grails/grails-plugin-tomcat/jars/grails-plugin-tomcat-2.0.0.jar org.grails.plugins.tomcat.IsolatedTomcat /home/<user>/.grails/2.0.0/projects/<project>/tomcat /home/<user>/.grails/2.0.0/projects/<project>/war /<project> localhost 9090

I do not find any code which utilises these properties. Bug? or am I missing something?

The problem is I'm facing java.lang.OutOfMemoryError: PermGen space

--
Ravi Teja Lokineni | Software Engineer
SemanticBits India Pvt. Ltd.






--
Ravi Teja Lokineni | Software Engineer
SemanticBits India Pvt. Ltd.



Loading...