2012/12/11 David Miller <possum....@gmail.com>: > I'm using the tomcat-maven plugin to set a value for MaxPermSize but it's > not working. > > You can see in the below plugin my setting for JAVA_OPTS - I've also tried > MAVEN_OPTS and CATALINA_OPTS. > > I can see that it's not working using jvisualvm (can also tell because my > app eventually craps out). > > The only way that I can get an increase in perm gen size is to explicitly > set it like this: > MAVEN_OPTS="-XX:MaxPermSize=1024m" > > Is it possible to use the tomcat-maven plugin to specify MaxPermSize size? Nope that's the only way as running tomcat with the plugin is not done in a jvm forked mode but in the same jvm as maven. > > Thanks! > > <plugin> > <groupId>org.apache.tomcat.maven</groupId> > <artifactId>tomcat7-maven-plugin</artifactId> > <version>2.0</version> > <configuration> > <systemProperties> > <JAVA_OPTS>-XX:MaxPermSize=1024M</JAVA_OPTS> > </systemProperties> > <backgroundProcessorDelay>5</backgroundProcessorDelay> > > <contextFile>${project.build.directory}/${project.build.finalName}/META-INF/context.xml</contextFile> > <path>/xyz</path> > </configuration> > <dependencies> > <dependency> > <groupId>com.sun.faces</groupId> > <artifactId>jsf-api</artifactId> > <version>2.0.9</version> > </dependency> > <dependency> > <groupId>com.sun.faces</groupId> > <artifactId>jsf-impl</artifactId> > <version>2.0.9</version> > </dependency> > <dependencies> > </plugin>
-- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org