PhracturedBlue / asterisk_mbox_server

GNU General Public License v3.0
6 stars 5 forks source link

High memory usage #7

Open sjthespian opened 4 years ago

sjthespian commented 4 years ago

If there are a large number of records in the CDR database, the server will use massive amounts of memory and eventually get an OOM kill from systemd. I got it working by stripping most of the records out of my CDR database, but I'm thinking there should be a better way of handling this that doesn't use so much memory (but I haven't had time to look at the code yet).

Initially, due to having a really old server and a lot of spam calls and older SIP connection attempts, there were over 2M records in my CDR database.

PhracturedBlue commented 4 years ago

thanks for the input. I will take a look at it and see if we can optimize something. there isn't really any reason we should store all that data in memory