score:1

Accepted answer

i believe you are using m2e plugin. if you are using m2e to execute maven proess, it will start a separate jvm. you need to configure vm argument for that process. refer to screenshot below. you can try with a simple maven project first before apply to your project.

sample pom.xml

<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"
    xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelversion>4.0.0</modelversion>
    <groupid>foo</groupid>
    <artifactid>bar</artifactid>
    <version>0.0.1-snapshot</version>
    <packaging>war</packaging>
    <build>
        <plugins>
            <plugin>
                <groupid>org.apache.tomcat.maven</groupid>
                <artifactid>tomcat7-maven-plugin</artifactid>
            </plugin>
        </plugins>
    </build>
</project>
  1. configure maven goal. make sure select the project workspace and set maven goals correctly. you should use tomcat7:run if you are using tomcat7 plugin maven goal
  2. configure vm arguments. example: -xmx1024m -xms1024m -xx:maxpermsize=512m -xx:permsize=256m enter image description here
  3. check the jvm argument that you set using jvisualvm. select the process and get it from overview tab. sample screenshot as below. enter image description here

Related Query

More Query from same tag