Hi guys,
Thanks for your support and suggestions it is helping.
@jsalmero to answer your questions we did not add any new plugins than what we previously had on our previous server. Hard to know how much memory each plugins are using. How could we know that? We had an instance with only 1 gigs of ram that we upgraded to 2 gigs but it didn't help.
For your other question, we only have 4 redmine projects.
Earlier this week, we took the suggestion of @davidg to add some Swap space. We hesitated and wanted to avoid this since we have SSD drives on our instance and swap can be damageable for ssd drives in the long run. Any thoughts on this? Our instance has 2 Gigs of Ram and we now added also 4 gigs of Swap. It is now stable and we see that its consuming the swap.
We have monitored more closely the memory and at the moment this is what we have:
total used free shared buff/cache available
Mem: 1998 658 214 19 1125 1096
Swap: 3953 1854 2098
A few days ago we had:
free -m
total used free shared buff/cache available
Mem: 1998 1283 258 23 456 484
Swap: 3953 1000 2952
I now want to make sure that there is no "memory leak" in anything related to the stack (passenger/plugins etc).What is bothering me is that I also did some tests earlier where I was removing pretty much all plugins and we could still see the issue happening from time to time (high spike, load of the server going high etc). One other thing noticed is that in several occasions, mysql was shutting down itself alone (could see it by doing a ctlscript status). It could be normal but could you confirm? Anything in redmine that would shutdown the associated mysql instance?
Thanks for your help,