Increase the maximum JVM heapsize at startup. Use the “-mx” option if using the standard JVM from Sun. Don’t keep references to the “content” of messages not being used. In certain cases, you could try streaming the message content (using getInputStream()) as raw bytes, use and then discard the used data chunks.
Increase the maximum JVM heapsize at startup. Use the “-mx” option if using the standard JVM from Sun. Don’t keep references to the “content” of messages not being used. In certain cases, you could try streaming the message content (using getInputStream()) as raw bytes, use and then discard the used data chunks.