Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2003
    Location
    Europe
    Posts
    122

    EuroVPS and compiling Apache

    I recently got VPS 850C from eurovps.com with guaranteed 1 GB ram and 2 GB maximum. Since this is my first VPS I'm not yet very familiar with memory and resources limits.

    Anyway, when I try to compile Apache from Cpanel it reports some errors during compile every time. I've tried different options, but I always get at least one red error like this one:
    make: *** [ext/standard/basic_functions.lo] Error 1
    make: *** Waiting for unfinished jobs....

    In Virtuozzo panel System usage goes to Black zone and log reports:
    Black zone privvmpages
    during compiling.

    Apparently system is out of memory and reports errors. So I wonder how could this be on a completely empty and unused VPS that I even can't compile Apache. What would happen once system is in use?

  2. #2
    Join Date
    May 2006
    Location
    Coimbra, Portugal
    Posts
    236
    Hello,
    Can you show us the output of 'cat /proc/user_beancounters' ?

    It will show us your allocations, usage, max usage and errors


  3. #3
    Join Date
    Feb 2003
    Location
    Europe
    Posts
    122
    Here it is

    Code:
    Version: 2.5
           uid  resource           held    maxheld    barrier      limit    failcnt
          6881: kmemsize        5998299    6151234   29593497   32881664          0
                lockedpages           0          0        512        512          0
                privvmpages       88974      89286     117964     131072          1
                shmpages            731        747      43008      43008          0
                dummy                 0          0          0          0          0
                numproc              79         81        480        480          0
                physpages         32748      32750          0 2147483647          0
                vmguarpages           0          0     131072 2147483647          0
                oomguarpages      32748      32750      52224 2147483647          0
                numtcpsock           27         27        720        720          0
                numflock             11         12        338        376          0
                numpty                1          1         32         32          0
                numsiginfo            0          1        512        512          0
                tcpsndbuf        243724     243724    2211840    3686400          0
                tcprcvbuf        264380     264380    2211840    3686400          0
                othersockbuf      24152      29052    1437696    3686400          0
                dgramrcvbuf           0       1212    2560000    2560000          0
                numothersock         26         31        360        360          0
                dcachesize            0          0    6137856    6819840          0
                numfile            2923       2972      18624      18624          0
                dummy                 0          0          0          0          0
                dummy                 0          0          0          0          0
                dummy                 0          0          0          0          0
                numiptent            49         49        512        512          0

  4. #4
    Join Date
    May 2004
    Posts
    142
    I can't say I know much about your problem but take a look at this article http://hostingfu.com/article/compili...low-memory-vps.

    There are some parameters that can be used to tune compile settings with gcc.

    The problem you are facing may be unrelated, but the memory tuning options may be of help

  5. #5
    Join Date
    Feb 2003
    Location
    Europe
    Posts
    122
    Interesting...i'll look into it, thanks

  6. #6
    Join Date
    Feb 2003
    Location
    Europe
    Posts
    122
    This might be useful for troubleshooting as well?

    Code:
    Click to show/hide the controls block.CPU Parameters
    ID 	Current Use 	Soft Limit 	Hard Limit 	Units 	Description 	 
    cpuunits 	n/a 	n/a 	3,000 	pcs 	CPU share the virtual private server will get 	
    cpulimit 	n/a 	n/a 	100 	percents 	CPU limit of the share the virtual private server will get 	
    Click to show/hide the controls block.Disk Quota
    ID 	Current Use 	Soft Limit 	Hard Limit 	Units 	Description 	 
    diskinodes 	110,327 	300,000 	300,000 	inodes 	Number of total disk inodes 	
    diskspace 	2,159,664 	31,457,280 	31,457,280 	1K-blocks 	Disk space in 1 kilobyte blocks which can be used 	
    quotatime 	n/a 	n/a 	0 	seconds 	Grace period for disk quota 	
    quotaugidlimit 	57 	n/a 	300 	pcs 	Limit of uids/gids for which disk quota is accounted 	
    Click to show/hide the controls block.Primary UBC Parameters
    ID 	Current Use 	Soft Limit 	Hard Limit 	Units 	Description 	 
    numproc 	79 	n/a 	480 	pcs 	Number of processes and kernel-level threads allowed for VPS 	
    numtcpsock 	27 	n/a 	720 	pcs 	Number of TCP sockets 	
    numothersock 	26 	n/a 	360 	pcs 	Number of non-TCP sockets (local sockets, UDP and other types of sockets) 	
    vmguarpages 	0 	131,072 	2,147,483,647 	4KB pages 	Memory allocation guarantee 	
    avnumproc 	n/a 	n/a 	40 	pcs 	Average estimated number of processes 	
    Click to show/hide the controls block.Secondary UBC Parameters
    ID 	Current Use 	Soft Limit 	Hard Limit 	Units 	Description 	 
    kmemsize 	5,862,016 	29,593,497 	32,881,664 	bytes 	Size of unswappable memory, allocated by the operating system kernel 	
    tcpsndbuf 	252,668 	2,211,840 	3,686,400 	bytes 	Total size of buffers used to send data over TCP network connections 	
    tcprcvbuf 	264,380 	2,211,840 	3,686,400 	bytes 	Total size of buffers used to temporary store the data coming from TCP network connections 	
    othersockbuf 	24,152 	1,437,696 	3,686,400 	bytes 	Total size of buffers used by local connections and send buffers of UDP and other datagram protocols 	
    dgramrcvbuf 	0 	2,560,000 	2,560,000 	bytes 	Total size of buffers used to temporary store the incoming packets of UDP and other datagram protocols 	
    oomguarpages 	32,887 	52,224 	2,147,483,647 	4KB pages 	The guaranteed amount of memory for the case the memory is "over-booked" (out-of-memory kill guarantee) 	
    Click to show/hide the controls block.Auxiliary UBC Parameters
    ID 	Current Use 	Soft Limit 	Hard Limit 	Units 	Description 	 
    privvmpages 	88,635 	117,964 	131,072 	4KB pages 	Memory allocation limit 	
    lockedpages 	0 	512 	512 	4KB pages 	Process pages not allowed to be swapped out (pages locked by mlock(2)) 	
    shmpages 	731 	n/a 	43,008 	4KB pages 	Total size of shared memory (IPC, shared anonymous mappings and 'tmpfs' objects) 	
    numfile 	3,054 	n/a 	18,624 	pcs 	Number of open files 	
    numflock 	11 	338 	376 	pcs 	Number of file locks 	
    numpty 	2 	n/a 	32 	pcs 	Number of pseudo-terminals 	
    numsiginfo 	0 	n/a 	512 	pcs 	Number of 'siginfo' structures 	
    dcachesize 	0 	6,137,856 	6,819,840 	bytes 	Total size of 'dentry' and 'inode' structures locked in memory 	
    numiptent 	61 	n/a 	512 	pcs 	Number of NETFILTER (IP packet filtering) entries

  7. #7
    Join Date
    Feb 2003
    Location
    Europe
    Posts
    122
    They increased memory allowance and apache now compiles. Still soft limit for memory is 256 MB and hard 2 GB. They advertise guaranteed 1 GB RAM and 2 GB max RAM. I've sent a ticket to clear this, but still makes me wonder why didn't I initially get what was advertised...

  8. #8
    >> Still soft limit for memory is 256 MB and hard 2 GB.
    Please check it, it's 256000 4KB pages = 1024MB

Posting Permissions

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