I think rather than have a limit of the number of messages loaded, you should be able 
to estimate the in-memory size of the messages and load to a memory limit.  The size 
should be calculated as the BLOBs are read in.  This probably isn't much more trouble 
than limiting the query by count.

For example, you could specify 10MB, and the persistence manager could then load up 
10MB worth of BLOB data.  This might mean 10,000 messages or just 1, for example.

In conjunction with this feature, would it work to have the MessageCache remove the 
lowest priority/message ID messages, rather than soften/page them?  I don't know if 
this is something you did or not.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838505#3838505

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838505


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to