---
title: "How to Increase memory of tomcat7 maven plugin?"  
description: "How to Increase memory of tomcat7 maven plugin?"  
author: "Manoj Bhatt"  
published: 2014-10-16  
updated: 2014-10-16  
canonical: https://www.mindstick.com/forum/2392/how-to-increase-memory-of-tomcat7-maven-plugin  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# How to Increase memory of tomcat7 maven plugin?

I want to start an [embedded](https://www.mindstick.com/articles/332094/what-is-embedded-software-engineering) tomcat7 [instance](https://www.mindstick.com/forum/155658/testing-connection-to-cloud-sql-instance-with-a-mysql-client-from-vm-instance) directly from maven using the tomcat7-maven-plugin. This is [working fine](https://answers.mindstick.com/qa/95550/why-is-the-safari-browser-not-working-fine), but the Tomcat started doesn't seem to have enough memory. I suspect that I would need to set.

-XX:MaxPermSize=256m

but I can't figure out how to do it.

The [documentation](https://answers.mindstick.com/qa/30462/what-is-documentation) says one should use the "systemProperties" element in the "[configuration](https://www.mindstick.com/articles/13112/setting-up-the-perfect-configuration-for-your-work-computer)" section of the plugin. However, the options are specified as XML [elements](https://www.mindstick.com/forum/1440/wpf-button-with-multiple-text-elements) and would need to look like that:

```
<configuration>  <systemProperties>    <XX:MaxPermSize>256m</XX:MaxPermSize>  </systemProperties></configuration>
```

But that's of course not possible as it breaks the XML (XX is interpreted as a [namespace](https://www.mindstick.com/articles/12552/namespace)).

Of course I could get around this problem by setting [environment](https://yourviews.mindstick.com/view/308/need-to-create-a-supportive-work-environment-for-women) [variable](https://www.mindstick.com/articles/1807/objective-c-data-types-variables-object-creation)

MAVEN_OPTS=-XX:MaxPermSize=256m

but I would prefer to only [increase](https://www.mindstick.com/articles/12959/are-you-struggling-to-increase-the-profit-of-your-liquor-store) it for the embedded Tomcat. Any ideas how to do that?\

## Replies

### Reply by Anonymous User

You can set the properties in this way\

```
<configuration>  <systemProperties>    <JAVA_OPTS>-Xms256m -Xmx512m -XX:MaxPermSize=256m</JAVA_OPTS>  </systemProperties></configuration>
```


---

Original Source: https://www.mindstick.com/forum/2392/how-to-increase-memory-of-tomcat7-maven-plugin

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
