Alternatively, you can specify the size of the tile cache yourself with the tMemor圜apacity() method.Īnother possible cause of excessive memory use is the use of tile sizes which are too large. A setting of -Xmx128m, giving 128 megabytes of (virtual) memory to the JVM is a reasonable starting value. The actual memory requirements depend on many factors such as the sizes of the images being used and how many operations are used to produce an output image. Therefore the JVM should generally be started up with a size larger than this. ![]() By default, the cache size is allowed to store up to 16 megabytes of image data. JAI creates a TileCache object to store computed portions of images. How to allocate more memory to the JVM is discussed below. ![]() Regardless of how much physical and virtual memory is available on your system, the Java runtime will only allocate a fixed amount, which is determined when the Java Virtual Machine (JVM) starts up. ![]() There are several possible reasons for an application to produce an OutOfMemoryError.Ī common reason is a failure to specify enough memory for the Java virtual machine (JVM) at application startup time.
0 Comments
Leave a Reply. |