First if i append a big message to mstor it will report outofmemory error
i review the source find you read all message to memory,it's inefficiency.
Second
MStorFolder.java 473
messages[i] = null;
mbox.appendMessage(out.toByteArray());
// create metadata..
if (mStore.isMetaEnabled()) {
MetaMessage meta = getMeta().getMessage(messages[i]);//it's a bug
if you enable meta it's always error
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It might be helpful if you could provide an example of the message that gives you an OutOfMemoryError, or at least let me know how big the message is so I can reproduce this error.
Also, could you elaborate on what you mean by "if you enable meta it's always error"? Is there a NullPointerException or some other exception being thrown?
regards,
ben
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First if i append a big message to mstor it will report outofmemory error
i review the source find you read all message to memory,it's inefficiency.
Second
MStorFolder.java 473
messages[i] = null;
mbox.appendMessage(out.toByteArray());
// create metadata..
if (mStore.isMetaEnabled()) {
MetaMessage meta = getMeta().getMessage(messages[i]);//it's a bug
if you enable meta it's always error
Hi Jimmy,
It might be helpful if you could provide an example of the message that gives you an OutOfMemoryError, or at least let me know how big the message is so I can reproduce this error.
Also, could you elaborate on what you mean by "if you enable meta it's always error"? Is there a NullPointerException or some other exception being thrown?
regards,
ben