MaikJaek / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

Memory leak when adding flying-saucer-pdf dependency in the pom.xml #253

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

I'm seeing a spike in memory when I use the following dependency in the pom.xml 
along with jetty maven plugin.

The issue can be reproduced as follows:

1. Create a 'maven web app project'
2. Add the following into the pom.xml

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.xhtmlrenderer</groupId>
      <artifactId>flying-saucer-pdf</artifactId>
      <version>9.0.7</version>
      <scope>compile</scope>
    </dependency>

  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.eclipse.jetty</groupId>
        <artifactId>jetty-maven-plugin</artifactId>
        <version>9.2.6.v20141205</version>
      </plugin>
    </plugins>
  </build>

3. Run mvn jetty:run
4. It takes a  lot of time to boot the app  and you can see memory consumption 
spikes.
5. But it comes down once the application is started successfully.

What is the expected output? What do you see instead?
Memory should not spike, as we are just adding a dependency of 
flying-saucer-pdf in the pom.xml

There are no issues if we remove the flying-saucer-pdf dependency.

What version of the product are you using? On what operating system?
flying-saucer 9.0.7
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
Ubuntu 14.04 64 bit.

Please provide any additional information below.

Original issue reported on code.google.com by soji...@gmail.com on 5 Jan 2015 at 3:56