Type |
Task
|
Priority |
Major
|
Assignee | |
RedmineID |
473
|
Version |
tigase-server-5.1.0
|
Issue Votes (0)
Watchers (0)
Type |
Task
|
Priority |
Major
|
Assignee | |
RedmineID |
473
|
Version |
tigase-server-5.1.0
|
tigase.server.amp.MsgRepository has a method: storeMessage(...) which stored messages. Right now it stores unlimited number of messages in DB.
This is bad, as it is also called by OfflineMessages plugin and can cause DB overfill and/or OOM on the server in case such a user goes online and there is too many packets waiting for that user.
We need to limit number of packets stored for any given pair: from, to. If counting packets in DB for the pair form - to is too slow and may impact performance then it is acceptable to limit number of packets stored counted for to field only.
If possible make it configurable with default max set to 100.