1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[CentOS + VirtualMin] Optimize my server

Discussion in 'Hire a Freelancer' started by TayaX, Oct 7, 2015.

  1. TayaX

    TayaX Jr. VIP Jr. VIP

    Joined:
    Dec 13, 2010
    Messages:
    3,458
    Likes Received:
    1,931
    Occupation:
    Skype : TayaxBHW
    Location:
    France
    Home Page:
    Hey guys,

    I run a dedicated with about 20 wordpress sites on it. It has 32g of RAM, a not so bad processor. I also have my email server on it, just a few emails a day on 2 domains.

    Still, I followed a clean config but it seems that sometimes the CPU just overload, the DNS are slow etc etc.

    I would need someone to look into it and optimize anything that can be optimize so that it can run smoothly. Had to reboot it 1 hour ago because CPU was overloading and no site were accessible. I cannot manage that.

    Anymore infos ask me.
     
  2. lorentzo

    lorentzo Power Member

    Joined:
    Nov 14, 2010
    Messages:
    770
    Likes Received:
    263
    Gender:
    Male
    Well give us some specs...some more specs...we cant guess what you have...beside 32 gb ram
     
  3. davids355

    davids355 Jr. VIP Jr. VIP

    Joined:
    Apr 25, 2011
    Messages:
    9,833
    Likes Received:
    7,444
    Home Page:
    What is the CPU? Can you see what is using processor when it locks? I'm guessing maybe it might be SQL or Apache connections not closing off.

    Its not really my area of expertise so will leave for someone else, but if you don't find someone hit me up and I'll try to help if I can...
     
  4. WebHostKing

    WebHostKing Jr. VIP Jr. VIP

    Joined:
    Jul 12, 2014
    Messages:
    246
    Likes Received:
    35
    Gender:
    Male
    It's possible you just need a server upgrade.. maybe your getting too much traffic on the websites, and the server you have is too slow to handle it. Whats the CPU?
     
  5. TayaX

    TayaX Jr. VIP Jr. VIP

    Joined:
    Dec 13, 2010
    Messages:
    3,458
    Likes Received:
    1,931
    Occupation:
    Skype : TayaxBHW
    Location:
    France
    Home Page:
    Sorry for the lack of details. It's past my bedtime and I kind of wrote this post in a hurry.


    I created a webserver under proxmox. This is my Host
    [​IMG]

    This is my VPS
    [​IMG]

    This is what it looks like right now:
    [​IMG]


    2 weeks ago i've spent 2 days reading about DNS in order to configure it well, only to end up hiring someone to help me set it up for me.
    It looks like there is room for optimization, and learning about it would be great but considering it's running my 20 wordpress on it, it's kind of a stress on my shoulder rather than an interest for me now.
     
  6. TayaX

    TayaX Jr. VIP Jr. VIP

    Joined:
    Dec 13, 2010
    Messages:
    3,458
    Likes Received:
    1,931
    Occupation:
    Skype : TayaxBHW
    Location:
    France
    Home Page:
    Still looking for someone to check and make some fine tuning. I got an average wait time of 0.4s on all of my site with the pingdom tool. Looking forward decreasing this at first.
     
  7. snoopdogg1

    snoopdogg1 Junior Member

    Joined:
    Aug 7, 2013
    Messages:
    110
    Likes Received:
    39
    Occupation:
    Rapper and Pimp
    Location:
    London, UK
    OK am I just reading this wrong or have you got 20 gig hard drive with 32 gigs of ram? who is your host, I had a similar issue with the set up not being partitioned correctly. Turned out they set it up this way to make you upgrade early. I switched host and all has been gravy. If it is the partition you can work around this. could you log into to root (i use putty) and do run comand ( #df -h ), take out the () let me know what it says
     
    • Thanks Thanks x 1
    Last edited: Oct 20, 2015
  8. kunnu

    kunnu Regular Member

    Joined:
    Jun 28, 2015
    Messages:
    217
    Likes Received:
    34
    Home Page:
    I think you need to look at your server logs. This days peoples attack on wp-login page and xmlpcr/prc.php.

    Ban access to both files using .htaccess and then recheck your site speed.
     
    • Thanks Thanks x 1
  9. TayaX

    TayaX Jr. VIP Jr. VIP

    Joined:
    Dec 13, 2010
    Messages:
    3,458
    Likes Received:
    1,931
    Occupation:
    Skype : TayaxBHW
    Location:
    France
    Home Page:
    I actually have 2To.

    Code:
    [[email protected] ~]# command df -h
    Filesystem               Size  Used Avail Use% Mounted on
    /dev/mapper/centos-root   50G  9.0G   41G  18% /
    devtmpfs                 7.1G     0  7.1G   0% /dev
    tmpfs                    7.1G     0  7.1G   0% /dev/shm
    tmpfs                    7.1G  737M  6.4G  11% /run
    tmpfs                    7.1G     0  7.1G   0% /sys/fs/cgroup
    /dev/mapper/centos-home  942G  181G  762G  20% /home
    /dev/sda1                497M  162M  336M  33% /boot
    
    I will do that yes.
     
  10. subnetweb

    subnetweb BANNED BANNED

    Joined:
    Feb 17, 2015
    Messages:
    490
    Likes Received:
    92
    Gender:
    Female
    Man you have problem with MySQL service you must reinstall it.I had before similar problems and must optimize your tables.
    Must see also do your servers is DDOSed and what is your DNS configuration.
    For DNS i will suggest you to use Cloudflare using your dedicated server IPs.
    Must give access to the server and to chek out all thing and make several tests.
    As you go I will suggest you in such condition to make back up to all your web site.
    Some times some Worpress plugins, as I understand you use blogs make the work more worst than ever and must chek them also.
     
    • Thanks Thanks x 1
  11. handmadebots

    handmadebots Senior Member

    Joined:
    Nov 8, 2012
    Messages:
    960
    Likes Received:
    216
    Home Page:
    Looking at the processes screenshot, it's clear that the mysql server is taking 90% of your CPU.
    As davids355 said, the mysql connections are most likely not being closed. Could be a plugin. Check /etc/httpd/logs/error_log and /var/log/mysqld.log you might find something useful.
     
    • Thanks Thanks x 1