I have an older PC with a Intel(R) Pentium(R) 4 CPU 2.53GHz and 2 GB of RAM. I'm iterating through javax.mail.Message
instances and am wondering about upper limits on memory usage.
Assuming "regular" sized messages, how many can be comfortably loaded? Tens, hundreds of thousands? Millions?
Just looking for some ballpark WAG's please.
The heap as so:
run:
DEBUG: nntp: newsrc loading /home/thufir/.newsrc
DEBUG: nntp: newsrc load: 5 groups in 16ms
Aug 05, 2012 3:52:17 AM net.bounceme.dur.usenet.driver.FetchBean <init>
INFO: max 259522560
Aug 05, 2012 3:52:17 AM net.bounceme.dur.usenet.driver.FetchBean <init>
INFO: allocatedMemory 16252928
Aug 05, 2012 3:52:17 AM net.bounceme.dur.usenet.driver.FetchBean <init>
INFO: freeMemory 14160912
Aug 05, 2012 3:52:17 AM net.bounceme.dur.usenet.driver.FetchBean <init>
INFO: totalFreeMemory 257430544
Aug 05, 2012 3:52:17 AM net.bounceme.dur.usenet.driver.FetchBean <init>
INFO: useMemory 2092016
I'm iterating through Message
's which are loaded from a local Leafnode NNTP server using the GNU NNTP library.
The headers for the message are examined, and then, when appropriate, some headers are persisted to the database with JPQL.
This is on Ubuntu 11.10 GNOME classic, by the way.