33
gitpush
7y

!rant
I'm just amazed what 512MB of RAM can do :O
That's htop from my VPS I feel sorry for the CPU though.

It is running three docker containers:
1. Dotnet Core
2. MySQL
3. OpenVPN

Comments
  • 2
    If MySQL is using the ram you can trade some performance for memory usage.
  • 2
    Be sure to oom correctly
    Vultr right?
  • 2
    Hmmm... I found a sweet deal for 1.5$/month 512mb/20GB/100GB bandwidth. At first I thought I would pass but now I wonder...
  • 0
    @ilikeglue Actually MySQL is using around 200MB (less) and dotnet core around 150MB openVPN is max 2MB
    What do you think can be done to reduce MySQL mem usage?

    @Linux OOM as in Out of memory?
    Anything you recommend? Yes i'm using Vultr 2.5$ server for my testings
  • 1
    @cyberlord64 1.5$ :O I pay 2.5 for that server :P

    it is a great server for testing. Which service are you using? I'm on Vultr
  • 2
  • 1
    @Linux thanks for that link!
  • 1
    @endor
    No worries :)
  • 0
    @Linux thanks man if I may ask, why rebooting instead of just killing the highest memory consuming process?
  • 2
    @gitpush
    You really want to kill mysql? Most of the times the processes is not restarting. Doing a reboot on a systemd based system does only take 3-4 seconds ^^
  • 1
    @Linux I see, thank you so much for explaining, I'm still completely new to Linux server stuff :\
  • 3
  • 1
    @gitpush well all you can do is to decrease the memory buffers it has. Also maybe Maria db would perform better if your os doesn't install that by default then install that. But if you make it use less memory then it'll be slower probably.
    https://dev.mysql.com/doc/refman/...
  • 0
    @ilikeglue thanks man, I wonder what scenarios where memory usage is more important that performance, well other than my case it is a test env I only care about performance when I start load tests.
  • 2
    @gitpush time4vps. They are located in Lithuania. I used their more powerful KVM packages for a year which did offer control of the kernel, but were more expensive. Around 17$ quarterly paid, 2gb ram,40gb HDD,1TB traffic. pretty decent specs for the price, very friendly staff, rock solid service. This new offer is on openvz though and I think the shared kernel is too old to run docker. I never heard of vultr though... Are they any good?
  • 1
    @cyberlord64 I started using them since July and never had an issue. They once got their service down for 30 minutes but whenever I'm in doubt or when I reported their service is down I got an answer in max 15mins.

    From the scale of 1 to 10 I give them 9, all their service is great but they are not expanding, they don't have storage servers anymore and have no ETA about it as for a VPS it is just amazing and easy to setup
  • 1
    @gitpush nice. More cheap VPS boxes for the masses!!!
  • 0
    @cyberlord64 be aware you can only make two sandbox instances :p

    Vultr prices in general are cheap IMO for the service you get it is fair to pay what we are paying
  • 2
    I just try to imagine what a windows machine would do with 512mb of ram and these applications running... X)
  • 1
    Why would you use a dotnet core for a linux server
  • 2
    @harrizsb because no windows would run with 512mb ram these days :(
  • 1
    @harrizsb I am working on a service and I chose C# to do it, and since i don't want to pay big amounts for hosting I went with .net core, but I might got with Kotlin the next time now that I'm getting used to it

    @Rohr ya just forget about windows running on those rams XD
  • 1
    @gitpush yah, sometimes I do stuff on a Linux and just ask myself "what would the windows guy do?" :D
  • 1
    @Rohr really, to be fair I sometimes do find either MySQL or Dotnet core dockers shutdown due to low memory but that is a rare case that happens once every two weeks.

    I Imagine having Windows on the server I'm sure it wont even boot :\
  • 1
    @gitpush yeah sure that happens. I think no system is free of that. I also ran into some oom situations. But the kernel never died.

    True ... I am sure a windows 10 2012 2016 is definitely unable to boot with 512mb. I could imagine that the installation will already fail ^^
  • 1
    @Rohr haha true true lol
Add Comment