• DevOps
    Case Study

    How we built a resilient multi-account, multi-cloud solution for a Health Tech service provider!

    READ CASESTUDY
    icon

    24/7 DevOps as a Service

    Round-the-clock DevOps for uninterrupted efficiency.

    icon

    Infrastructure as a Code

    Crafting infrastructure with ingenious code.

    icon

    CI/CD Pipeline

    Automated CI/CD pipeline for seamless deployments.

    icon

    DevSecOps

    Integrated security in continuous DevOps practices.

    icon

    Hire DevOps Engineers

    Level up your team with DevOps visionaries.

    icon

    Consulting Services

    Navigate success with expert DevOps consulting.

  • TechOps
    Case Study

    How we built a scalable Odoo solution for a Travel Tech service provider!

    READ CASESTUDY

    WEB HOSTING SUPPORT

    icon

    HelpDesk Support

    Highly skilled 24/7 HelpDesk Support

    icon

    Product Support

    Boost your product support with our expertise.

    MANAGED SERVICES

    icon

    Server Management

    Don’t let server issues slow you down. Let us manage them for you.

    icon

    Server Monitoring

    Safeguard your server health with our comprehensive monitoring solutions.

    STAFF AUGMENTATION

    icon

    Hire an Admin

    Transform your business operations with our expert administrative support.

    icon

    Hire a Team

    Augment your workforce with highly skilled professionals from our diverse talent pool.

  • CloudOps
    Case Study

    How we helped a Private Deemed University in India, save US $3500/m on hosting charges!

    READ CASESTUDY
    icon

    AWS Well Architected Review

    Round-the-clock for uninterrupted efficiency

    icon

    Optimize

    Efficient CloudOps mastery for seamless cloud management

    icon

    Manage

    Automated CI/CD pipeline for seamless deployments

    icon

    Migrate

    Upgrade the journey, Migrate & Modernize seamlessly

    icon

    Modernize

    Simplify compliance complexities with our dedicated services

    icon

    FinOps as a Service

    FinOps as a Service

  • SecOps
    Case Study

    How we built a scalable Odoo solution for TravelTech service provider!

    READ CASESTUDY
    icon

    VAPT

    Vulnerability Assessment and Penetration Testing

    icon

    Source Code Review

    Ensuring source code security ans safe practices to reduce risks

    icon

    Security Consultation

    On demand services for improving server security

    icon

    System Hardening

    Reduced vulnerability and proactive protection

    icon

    Managed SoC

    Monitors and maintains system security. Quick response on incidents.

    icon

    Compliance as a Service

    Regulatory compliance, reduced risk

  • Insights
    Case Study

    How we helped a Private Deemed University in India, save US $3,500/m on hosting charges!

    READ CASESTUDY
    icon

    Blog

    Explore our latest articles and insights

    icon

    Case Studies

    Read about our client success stories

    icon

    Flipbook

    Explore our latest Flipbook

    icon

    Events

    Join us at upcoming events and conferences

    icon

    Webinars

    Watch our educational webinar series

  • Our Story
  • Contact Us

Interested to collaborate?

Get in touch with us!

Ready to elevate your business with certified cloud expertise? Contact us today to learn how our team can help you leverage cloud technology to drive growth, streamline operations, and enhance security.

  • AWSAWS
  • Azure CloudAzure Cloud
  • Google CloudGoogle Cloud
  • Akamai CloudAkamai Cloud
  • OVHOVH
  • Digital OceanDigital Ocean
  • HetznerHetzner
  • Kubernetes Consultancy Services
  • K8s & Cloud native Solutions
  • 24/7 Infrastructure Monitoring
  • DevOps as a Service
  • Cloud CI/CD Solutions
  • White Labeled MSP Support
  • Our story
  • Life@SupportSages
  • Insights
  • Careers
  • Events
  • Contact Us

Connect with us!


LinkedInFacebookXInstagramYouTube

aws partneraws advanced partner
SupportSages

Copyright © 2008 – 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy
OpenVZ :: Fix “Unable to fork: Cannot allocate memory”

OpenVZ :: Fix “Unable to fork: Cannot allocate memory”

Vipin R.N

  • 6 min read
OpenVZ :: Fix “Unable to fork: Cannot allocate memory”

Generating audio, please wait...

In OpenVZ management sometimes on accessing a Container from the Node, it says “Unable to fork: Cannot allocate memory“. The VPS id is 273 

# vzctl enter 273

Unable to fork: Cannot allocate memory

Lets see whether its an issue with the Node Memory

# free -m

     total used free shared buffers cached

Mem: 7956 6865 1091 0 145 3106

-/+ buffers/cache: 3614 4342

Swap: 4102 877 3224

 

Its not, so lets go to the proc filesystem entry showing resource control information, which is /proc/user_beancounters file. The Container in question is 273, lets check the file for it :

[otw_shortcode_info_box border_type=”bordered” border_color_class=”otw-aqua-border” border_style=”bordered”]# cat /proc/user_beancounters | grep 273

Version: 2.5

uid resource held maxheld barrier limit failcnt

273: kmemsize 4605362 4722434 2147483646 2147483646 0

lockedpages 0 0 999999 999999 0

privvmpages 786416 786419 786432 786432 18

shmpages 128 128 262144 262144 0

dummy 0 0 0 0 0

numproc 47 50 999999 999999 0

physpages 76013 76212 0 2147483647 0

vmguarpages 0 0 262144 2147483647 0

oomguarpages 76013 76212 262144 2147483647 0

numtcpsock 9 16 7999992 7999992 0

numflock 5 6 999999 999999 0

numpty 0 0 500000 500000 0

numsiginfo 0 2 999999 999999 0

Promotional banner

tcpsndbuf 157536 159864 214748160 396774400 0

tcprcvbuf 180504 477096 214748160 396774400 0

othersockbuf 6984 13736 214748160 396774400 0

dgramrcvbuf 0 8472 214748160 396774400 0

numothersock 11 13 7999992 7999992 0

dcachesize 351186 418905 2147483646 2147483646 0

numfile 930 1037 23999976 23999976 0

dummy 0 0 0 0 0

dummy 0 0 0 0 0

dummy 0 0 0 0 0

numiptent 15 15 999999 999999 0[/otw_shortcode_info_box]

Check this line

privvmpages 786416 786419 786432 786432 18

 

It means that the memory allocated to this container is exhausted

In order to edit this parameter, the configuration file of the Node has to be edited which is located at /etc/sysconfig/vz-scripts

[otw_shortcode_info_box border_type=”bordered” border_color_class=”otw-aqua-border” border_style=”bordered”]# vi /etc/sysconfig/vz-scripts/

0.conf 140.conf.destroyed 190.conf 240.conf.destroyed 267.conf ve-263.conf-sample 101.conf 150.conf 200.conf.destroyed 250.conf.destroyed 269.conf.destroyed ve-270.conf-sample 110.conf 160.conf 210.conf 260.conf.bak 270.conf ve-light.conf-sample 120.conf 170.conf 220.conf.destroyed 262.conf 273.conf ve-vps.basic.conf-sample 130.conf 180.conf.destroyed 230.conf 263.conf.destroyed ve-260.conf-sample [/otw_shortcode_info_box]

The Container in question is 273, so the file we’ve to edit is /etc/sysconfig/vz-scripts/273.conf

# vi /etc/sysconfig/vz-scripts/273.conf
# Copyright (C) 2000-2006 SWsoft. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
ONBOOT=”no”
# UBC parameters (in form of barrier:limit)
# Primary parameters
AVNUMPROC=”40:40″
NUMPROC=”999999:999999″
NUMTCPSOCK=”7999992:7999992″
NUMOTHERSOCK=”7999992:7999992″
VMGUARPAGES=”262144:2147483647″
# Secondary parameters
KMEMSIZE=”2147483646:2147483646″
TCPSNDBUF=”214748160:396774400″
TCPRCVBUF=”214748160:396774400″
OTHERSOCKBUF=”214748160:396774400″
DGRAMRCVBUF=”214748160:396774400″
OOMGUARPAGES=”262144:2147483647″
# Auxiliary parameters
LOCKEDPAGES=”999999:999999″
SHMPAGES=”262144:262144″
PRIVVMPAGES=”786432:786432″
NUMFILE=”23999976:23999976″
NUMFLOCK=”999999:999999″
NUMPTY=”500000:500000″
NUMSIGINFO=”999999:999999″
DCACHESIZE=”2147483646:2147483646″
PHYSPAGES=”0:2147483647″
NUMIPTENT=”999999:999999″
# Disk quota parameters (in form of softlimit:hardlimit)

The Parameter to edit is :
PRIVVMPAGES="786432:786432"
Raise the value, save it and restart the container
#vzctl restart 273Restarting container
Stopping container …
Container was stopped
Container is unmounted
Starting container …
Container is mounted
Adding IP address(es): xx.xx.xx.xx
Setting CPU limit: 400
Setting CPU units: 1000
Setting CPUs: 4
Configure meminfo: 786432
Set hostname: server1.com
File resolv.conf was modified
Setting quota ugidlimit: 10000
Container start in progress…

For more assistance on OpenVZ management, you can contact our OpenVZ Support team

  • Linux
  • Troubleshooting
  • VPS
Promotional banner
Promotional banner

“Suspended Page ” defaced in cPanel Server

“Suspended Page ” defaced in cPanel Server
  • cPanel
  • Linux
  • Troubleshooting
logo

APC Cache Activation and disable XCache

APC Cache Activation and disable XCache
  • Apache
  • cPanel
  • Linux
logo

Blacklisted ? Switch your Mail Server IP

Blacklisted ? Switch your Mail Server IP
  • cPanel
  • Linux
  • Webmail
logo

Chapter 12 All about a process running in linux

Chapter 12 All about a process running in linux
  • General
  • Howtos
  • Linux
  • Special Offers
  • Training
  • Troubleshooting
logo

Posts by Vipin R.N

Vipin is a no-nonsense, disciplined guy who ensures that everything is carried out with the highest level of perfection. Apart from his great coding skills, he is quite interested in advanced server administration, issue analysis, documentation and training. In-depth knowledge in international politics, ammunition and automobiles makes this hard core Manchester United fan, one of the most referenced personalities in the entire team.