IDEA 8, OutOfMemoryError


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>(
at java.awt.image.Raster.createPackedRaster(
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(
at sun.awt.image.ImageRepresentation.createBufferedImage(
at sun.awt.image.ImageRepresentation.setPixels(
at apple.awt.OSXImageRepresentation.setPixels(
at sun.awt.image.ImageDecoder.setPixels(
at sun.awt.image.JPEGImageDecoder.sendPixels(
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,


1 comment

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


Please sign in to leave a comment.