Results 1 to 7 of 7
  1. #1

    OpenVZ crashes when RAM runs out?

    Hi ppl i got 2 VPS.

    VPS-1: 768MB RAM & 1500MB SWAP XEN
    VPS-2: 1024RAM & 2000MB Burstable OpenVZ


    Pros:
    vps1: nice ping, nice uptime, friendly controlpanel, etc;
    vps2: same as vps1, more HD and cheaper;

    Con:
    vps2: Cant use demanding programs like handbrake 4 video encoding coz program crash(sometimes the OS)

    I wanna know if there is any solution to prevent a crash on my aplication(maybe disabling swap? its posible?)

    BTW:Im planning on using handbrake just time to time no all the day.

  2. #2
    Join Date
    Oct 2013
    Posts
    12
    Yeah i think it is . As far as i know, RAM stand's for Random Access Memory

    An application uses ram at run-time If the application you are running is so big then there are chances for openvz to be crashed. I would suggest you to upgrade your ram and see if the problem persists

  3. #3
    Join Date
    Sep 2006
    Location
    Montevideo
    Posts
    82
    AFAIK video encoding programs what uses most is CPU time,
    that kind of usage can go against some policy sometimes,
    as the same with crypto-currency mining software.

    If you use openvz, you should check your /proc/user_beancounters
    (you can leave it running with a tmux + watch cat /proc/user_beancounters)
    so you can see what is really the limit that you are exceeding,
    sometimes is not ram, but kernel memory.

    Remember that if you want complete control, you should go
    to a dedicated box, that has a lot of power, which is after all what
    you seem to be needing for heavy video encoding.

    Good Luck !
    Multiple Locations, Services & Solutions for your Needs since 2005 !!
    www.increhost.com | sales[@]increhost.net | WeServers!
    █ GTalk: increhost[@] | Skype: increhost | MSN: sales[@]increhost.net

  4. #4
    Why disabling swap? Swap is used when RAM runs out. If there is not enough RAM and SWAP doesn't exist, your entire system would reboot automatically, after a kernel panic, when RAM gets full. I don't think your software is crashing because this. There should be a problem with the software/OS. OS crash (kernel panic) with errors like "Out of memory" would indicate that RAM runs out and also swap is not enough.

  5. #5
    Join Date
    Jul 2009
    Location
    The backplane
    Posts
    1,790
    Quote Originally Posted by anromenez View Post
    I wanna know if there is any solution to prevent a crash on my aplication
    Just about every problem has a solution. If you have determined for certain that your problem is a shortage of RAM, I imagine the solution would be to add more - or shut down extraneous programs if that will free up enough. Or, perhaps the program that is crashing can be tweaked to use less RAM.
    Last edited by Microlinux; 11-05-2013 at 05:01 PM.

  6. #6
    Thanks all 4 your responses



    Quote Originally Posted by Increhost View Post
    AFAIK video encoding programs what uses most is CPU time,
    that kind of usage can go against some policy sometimes..
    btw: My cpu usage can affect other ppl in the same Xen VPS?

  7. #7
    Join Date
    Sep 2006
    Location
    Montevideo
    Posts
    82
    Yes, despite that Xen and KVM has more isolation than OpenVZ,
    your CPU consume could affect the node, and consume a lot of
    CPU time that will be also required from another node clientes.

    Good Luck !
    Multiple Locations, Services & Solutions for your Needs since 2005 !!
    www.increhost.com | sales[@]increhost.net | WeServers!
    █ GTalk: increhost[@] | Skype: increhost | MSN: sales[@]increhost.net

Similar Threads

  1. OpenVZ server crashes frequently
    By kevine77 in forum Web Hosting
    Replies: 9
    Last Post: 10-05-2012, 12:29 AM
  2. Replies: 0
    Last Post: 05-27-2010, 04:31 AM
  3. Replies: 0
    Last Post: 05-18-2010, 04:30 AM
  4. Replies: 0
    Last Post: 05-06-2010, 07:11 AM
  5. Replies: 7
    Last Post: 08-06-2001, 02:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •