[OpenJDK 2D-Dev] sun.java2D.pisces big memory usage (waste ?) (original) (raw)

Laurent Bourgès bourges.laurent at gmail.com
Fri Mar 22 10:56:19 UTC 2013


Dear all,

I recently profiled my swing application (Aspro2: http://www.jmmc.fr/aspro) using the netbeans profiler (OpenJDK8 / linux x64) and in contrary to Oracle JDK, it consumes a lot of memory in sun.java2D.pisces code as int[] or float[] arrays:

Here are few profiler screenshots: http://jmmc.fr/~bourgesl/share/pisces2D/

Aspro2 screenshot illustrating the plot that consumes a lot of memory: http://jmmc.fr/~bourgesl/share/pisces2D/Capture-Aspro2.png

My application uses jfreechart that calls graphics2D.draw(shape) where shape is always a rectangle / line with antialiasing enabled.

Several questions:

Does somebody work on that topic ? has some ideas to optimize that code (pisces) ?

Regards, Laurent -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20130322/a112d713/attachment.html>



More information about the 2d-dev mailing list