Howdy, Stranger!

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


[OVH VPS] MySQL installation gets killed constantly
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.

[OVH VPS] MySQL installation gets killed constantly

lifehomelifehome Member
edited April 2019 in Help

Logs are here: https://gist.github.com/lifehome/007de36255703db6eff1ad6a3879149e

This is what happened on my Singapore OVH VPS:
1) Reinstalled VPS using ArchLinux template
2) Install Percona-Server (MySQL server, percona branded, tried others but same result)
3) sudo systemctl start mysqld
4) MySQL server will never get alive.
(PS Tried to add a 4G swap but still no luck)

Could anyone give a little hint on what exactly happened here? Except hosting a DokuWiki which doesn't require MySQL, I can't really get use of the VPS as a web server..

Note: I have filed a ticket to them, and OVH said they can migrate me to another hypervisor. I wonder if this relates to the hypervisor?

EDIT: Got to say that before reinstalling my VPS, all services(nginx + php-fpm + Percona-Server) runes fine, I can restart as needed without crashing or get killed.

Comments

  • rm_rm_ IPv6 Advocate, Veteran

    How much RAM do you have there? From the error log it seems like just 1 GB. And your MySQL tries to consume 870MB of it. Since you probably have other stuff running, this fails. Not sure why swap doesn't help, but in any case operating like this while using swap heavily is not a good long-term setup. Reconfigure your MySQL for to lower its RAM requirements.

  • FHRFHR Member, Host Rep

    kernel: Out of memory: Kill process 493 (mysqld) score 975 or sacrifice child
    This is pretty self explanatory.

    Thanked by 1Janevski
  • @FHR said:
    kernel: Out of memory: Kill process 493 (mysqld) score 975 or sacrifice child
    This is pretty self explanatory.

    I believe the real question the OP is asking here is why adding a swap doesn't help this situation?

  • FastmakoFastmako Member, Host Rep

    @lifehome - The answer is simple: you need more RAM. This is one of those situations where bigger (more) is better.

  • AlwaysSkintAlwaysSkint Member
    edited April 2019

    tuning-primer.sh
    Or, for the lazy, add more RAM.
    (I've ran mySQL/Apache on 1GB RAM for years, until cPanel bloatware pushed up the bar)

  • JordJord Moderator, Host Rep

    I would say it needs more RAM, but I could be wrong!

  • OVH's smallest vps is 2gb. How is a 1gb one happening here?

  • rm_rm_ IPv6 Advocate, Veteran
  • angstromangstrom Moderator

    Just wondering:

    Apr 02 22:04:02 localhost kernel: Free swap  = 0kB
    Apr 02 22:04:02 localhost kernel: Total swap = 4194300kB
    

    Shouldn't the value for "Free swap" be higher?

  • @angstrom said:
    Just wondering:

    Apr 02 22:04:02 localhost kernel: Free swap  = 0kB
    Apr 02 22:04:02 localhost kernel: Total swap = 4194300kB
    

    Shouldn't the value for "Free swap" be higher?

    4194300kB = a little over ~4.1gb swap. thats a relatively large amount

  • angstromangstrom Moderator

    @krenken said:

    @angstrom said:
    Just wondering:

    Apr 02 22:04:02 localhost kernel: Free swap  = 0kB
    Apr 02 22:04:02 localhost kernel: Total swap = 4194300kB
    

    Shouldn't the value for "Free swap" be higher?

    4194300kB = a little over ~4.1gb swap. thats a relatively large amount

    Indeed. But why is the free swap at 0kB?

Sign In or Register to comment.