Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Normal usage for a Apache2 server?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Normal usage for a Apache2 server?

ThomWebThomWeb Member

Hello, i got 600MB+ ram usage by running a normal apache2 server with MySQL.
Never seen this before, is it normal?

Thanks already

Comments

  • IkoulaIkoula Member, Host Rep

    Hello, i am not an expert but it depends on your trafic.

    It can be explained by the number of connections.
    if you have many visitors you have many connections and for each connections you have a small quantity of ram used.

    You can use the #netstat -ano command to see the connections.

  • There is no traffic, it's idleling wordpress...

  • Apache is ram hogger. Enough said.

  • nepsneps Member

    @ThomWeb said:
    Hello, i got 600MB+ ram usage by running a normal apache2 server with MySQL.
    Never seen this before, is it normal?

    Thanks already

    This question is akin to asking "I have 750GB used on my 1TB drive. Is this normal?"

  • sinsin Member

    @ThomWeb said:
    Hello, i got 600MB+ ram usage by running a normal apache2 server with MySQL.
    Never seen this before, is it normal?

    Thanks already

    linuxatemyram.com

  • IkoulaIkoula Member, Host Rep

    Still you should do a netstat.

  • perhaps someone's partying with your server. running a thorough check won't hurt.

  • No, it's even on a fresh Vultr server running Apache2 and MySQL.

  • @ThomWeb said:
    No, it's even on a fresh Vultr server running Apache2 and MySQL.

    No partying? who is using the RAM Apache or MYSQL or half each?

  • simple answer : normal

  • Check MinSpareServers (or MinSpareThreads).

  • ThomWebThomWeb Member
    edited April 2016

    Apache 2 logs: mmap() failed: [12] Cannot allocate memory
    Then the webserver crashes, every time i do something normal on my Wordpress admin side.

    Never had this before, and just switched to Vultr. Poor RAM? :")

  • raindog308raindog308 Administrator, Veteran

    ThomWeb said: just switched to Vultr. Poor RAM?

    I hear they run their RAM in RAID 0...

    Thanked by 2Amitz netomx
  • :')

  • ThomWebThomWeb Member
    edited April 2016

    I've tested on Digitalocean too. Same problems, i'm using the newest MySQL 5.7 that must be the problem! Thanks alot, it's ready to close!

    // EDIT: MySQL 5.7 has a memory leak atm.

  • ThomWeb said: // EDIT: MySQL 5.7 has a memory leak atm.

    I don't think so.

    Disable performance schema, and verify the size of the innodb buffer pool size if you have innodb enabled.

  • @ThomWeb said:
    Apache 2 logs: mmap() failed: [12] Cannot allocate memory
    Then the webserver crashes, every time i do something normal on my Wordpress admin side.

    Never had this before, and just switched to Vultr. Poor RAM? :")

    I think it's related limiting by OS setting. You can see with 'ulimit -a'.

  • I have few wordpress sites on ArubaCloud Eur 1/month plan and RAM usage is nearly 160 MB and around 50 unique visitors a day. Guess what? its nginx.

    Get rid of Apache and move to nginx.

  • Yes, using nginx is a smart move but apache shouldn't use that much of ram unless you have misconfigured your server.

  • Just use NGINX. No headaches, just awesomeness.

  • edanedan Member
    edited April 2016

    I have small forum using xenforo (Apache) with around 30K-50K visitors/day (traffic depend on thread popularity) and it only eat 1270MB of RAM (Discussions: 20.275, Messages: 198.082, Member: 9.242).

    # free -m
                 total       used       free     shared    buffers     cached
    Mem:          7870       1269       6600         46         72        324
    -/+ buffers/cache:        872       6997
    Swap:         4095          0       4095
    

    So nothing wrong with the apache. I just use:

    CentOS 6
    Apache 2.2
    PHP 5.6
    MySQL 5.5
    Memcached
    PHP-Opcache
    
Sign In or Register to comment.