Memory
Memory
Centos 6.7
We have been running since January no problem then some services started to stop
So did a clean install on a VPS with over 2 gig of memory and 2 cpu
Now it's worse than ever after importing the user accounts
1676 m used memory all the time no connections!
Then clamd stops and others stop as it uses all the memory up even with a swap file
Just gets worse can anyone give a detailed standard (default) setup to reduce the memory cost please
Mike
We have been running since January no problem then some services started to stop
So did a clean install on a VPS with over 2 gig of memory and 2 cpu
Now it's worse than ever after importing the user accounts
1676 m used memory all the time no connections!
Then clamd stops and others stop as it uses all the memory up even with a swap file
Just gets worse can anyone give a detailed standard (default) setup to reduce the memory cost please
Mike
Re: Memory
try these. or make your own combo https://vestacp.com/#install, but I covered most fast setups here.
I recommend not installing the heavy users spamassasin and clamav and stick with the basics and add if needed. For spam i recommend greylisting and or another RBL i use https://www.webiron.com/rbl.html to mitigate spam a little more, very good list of heavy hitters.
DNS SERVERS ONLY (CLUSTERING)
NGINX + PHPFPM
APACHE
APACHE + NGINX
APACHE + NGINX + PHPFPM
After install of your chosen, install csf firewall, look out for the missing perl modules if you see a blank page under csf tab in vestacp.
Each will have a different footprint of usage by OS, Debian 7 with Nginx+phpfpm has the smallest from what I have experienced I use Debian for my DNS clusters, centos is a bit higher usage but caches a lot so for small machines i would use centos 7 or Debian 8 both have mariaDB support built in chopping your mysqld overhead by 2ooMB +
If you continue to get poor results, then blame it on the vps, and move to better vps provider.
That's all I can suggest. believe it or not sometimes a 1 GB vps will out perform a 4 GB only due to who you lease it with, some hosts oversell a server beyond its capacity and all it takes is a few resource hogs and your done.
Best of luck.
I recommend not installing the heavy users spamassasin and clamav and stick with the basics and add if needed. For spam i recommend greylisting and or another RBL i use https://www.webiron.com/rbl.html to mitigate spam a little more, very good list of heavy hitters.
DNS SERVERS ONLY (CLUSTERING)
Code: Select all
bash vst-install.sh --nginx yes --phpfpm yes --apache no --vsftpd no --proftpd no --exim yes --dovecot no --spamassassin no --clamav no --named yes --iptables no --fail2ban no --mysql no --postgresql no --remi yes --quota no
Code: Select all
bash vst-install.sh --nginx yes --phpfpm yes --apache no --vsftpd yes --proftpd no --exim yes --dovecot yes --spamassassin no --clamav no --named yes --iptables no --fail2ban no --mysql yes --postgresql no --remi yes --quota no
Code: Select all
bash vst-install.sh --nginx no --apache yes --phpfpm no --vsftpd yes --proftpd no --exim yes --dovecot yes --spamassassin no --clamav no --named yes --iptables no --fail2ban no --mysql yes --postgresql no --remi yes --quota no
Code: Select all
bash vst-install.sh --nginx yes --apache yes --phpfpm no --vsftpd yes --proftpd no --exim yes --dovecot yes --spamassassin no --clamav no --named yes --iptables no --fail2ban no --mysql yes --postgresql no --remi yes --quota no
APACHE + NGINX + PHPFPM
Code: Select all
bash vst-install.sh --nginx yes --apache yes --phpfpm yes --vsftpd yes --proftpd no --exim yes --dovecot yes --spamassassin no --clamav no --named yes --iptables no --fail2ban no --mysql yes --postgresql no --remi yes --quota no
Each will have a different footprint of usage by OS, Debian 7 with Nginx+phpfpm has the smallest from what I have experienced I use Debian for my DNS clusters, centos is a bit higher usage but caches a lot so for small machines i would use centos 7 or Debian 8 both have mariaDB support built in chopping your mysqld overhead by 2ooMB +
If you continue to get poor results, then blame it on the vps, and move to better vps provider.
That's all I can suggest. believe it or not sometimes a 1 GB vps will out perform a 4 GB only due to who you lease it with, some hosts oversell a server beyond its capacity and all it takes is a few resource hogs and your done.
Best of luck.
Re: Memory
Mike, main mamory eaters mysql / clamav / spamassasin / apacheoobydoo wrote: We have been running since January no problem then some services started to stop
So did a clean install on a VPS with over 2 gig of memory and 2 cpu
Now it's worse than ever after importing the user accounts
Try to ajust mysql settings first.
Low memory config examples:
viewtopic.php?t=4564#p9514
viewtopic.php?t=10052#p36258
viewtopic.php?t=6252#p19077