When the user retrieves an offline messages and database have a lot
of them (really huge bunch),
then the server’'s connection thread eats up all of heap memory,
and crashes with “Out Of Memory” exception.
Part of messages (around 11.000) finally have been sent to recipient,
after that an all of offline messages assigned to that recipient,
were cruelly deleted from database.
In other words, some of messages will be never delivered.
I guess, the xml builder is the source of these troubles when try’'s to eat more
than it can.
Any other suggestion? Can it be fixed?
PS: At peak, this thread loaded my Dual Xeon 2.8GHz up to 50%