IDEA 8, OutOfMemoryError

Hi,

I have maven configuration with jetty:run as goal, I'm getting memory errors lately:

Exception in thread "Image Fetcher 0" java.lang.OutOfMemoryError: Java heap space

at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:41)
at java.awt.image.Raster.createPackedRaster(Raster.java:458)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1015)
at sun.awt.image.ImageRepresentation.createBufferedImage(ImageRepresentation.java:223)
at sun.awt.image.ImageRepresentation.setPixels(ImageRepresentation.java:482)
at apple.awt.OSXImageRepresentation.setPixels(OSXImageRepresentation.java:68)
at sun.awt.image.ImageDecoder.setPixels(ImageDecoder.java:120)
at sun.awt.image.JPEGImageDecoder.sendPixels(JPEGImageDecoder.java:97)
at sun.awt.image.JPEGImageDecoder.readImage(Native Method)



 


but if I run this program directly under maven, like:
mvn jetty:run

I do not get the above error,  any idea why? should I assume the application will be ok in a production server ? Thanks,

Angelo

1 comment
Comment actions Permalink

I don't that is an issue of IntelliJ.
Probably the VM settings are different for the command line mvn command (MAVEN_OPTS set?). You can configure the vm settings in the settings in the maven section.

I don't know how large the image data is you're processing in your application but don't trust it for production unless you test it

0

Please sign in to leave a comment.