OpenVZ Forum


Home » General » Support » problem with memory on new vps
problem with memory on new vps [message #9922] Tue, 30 January 2007 10:16 Go to next message
pppy is currently offline  pppy
Messages: 4
Registered: January 2007
Junior Member
I get some trouble with my new VPS.

server use
# uname -a
Linux 2.6.8-022stab078.10-enterprise #1 SMP Wed Jun 21 12:20:51 MSD 2006 i686 i686 i386 GNU/Linux

vps is centOS with apache, mysqld, php and vsftpd

We have 5 vps on this server and they works ok. But my new vps crashes every day with memory.
It run ok after restart by #vzctl stop 104


That i get when server crashes:

on vps ssh login: (some times i can't login by ssh on vps)
--------------------------------
Last login: Mon Jan 29 11:07:39 2007
id: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory
-bash: [: =: unary operator expected
/bin/hostname: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory
dircolors: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory
--------------------------------


on main server
--------------------------------
#/usr/sbin/vzctl exec 104 service sshd status
bash: error while loading shared libraries: libtermcap.so.2: failed to map segment from shared object: Cannot allocate memory
--------------------------------


I made search on forum and found only this thread http://forum.openvz.org/index.php?t=tree&goto=8153&& amp;srch=libtermcap#msg_8153
but I don't have mod_secure in apache

pls help.
Re: problem with memory on new vps [message #9923 is a reply to message #9922] Tue, 30 January 2007 10:18 Go to previous messageGo to next message
pppy is currently offline  pppy
Messages: 4
Registered: January 2007
Junior Member
btw dmesg is empty
I didn't find something interesting in /var/log/messages
Re: problem with memory on new vps [message #9924 is a reply to message #9922] Tue, 30 January 2007 10:31 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
in HN:

cat /proc/user_beancounters


Paste results here if you are not sure how to interpret them.


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: problem with memory on new vps [message #9925 is a reply to message #9924] Tue, 30 January 2007 11:14 Go to previous messageGo to next message
pppy is currently offline  pppy
Messages: 4
Registered: January 2007
Junior Member
rickb wrote on Tue, 30 January 2007 05:31

in HN:

cat /proc/user_beancounters


Paste results here if you are not sure how to interpret them.


# cat /proc/user_beancounters
Version: 2.5
       uid  resource           held    maxheld    barrier      limit    failcnt
         0: kmemsize       15425678   27306837 2147483647 2147483647          0
            lockedpages           0          0 2147483647 2147483647          0
            privvmpages       44958     141933 2147483647 2147483647          0
            shmpages          17280      41600 2147483647 2147483647          0
            dummy                 0          0 2147483647 2147483647          0
            numproc             125        171 2147483647 2147483647          0
            physpages         12369      36506 2147483647 2147483647          0
            vmguarpages           0          0 2147483647 2147483647          0
            oomguarpages      15669      39639 2147483647 2147483647          0
            numtcpsock           91       4091 2147483647 2147483647          0
            numflock              5         15 2147483647 2147483647          0
            numpty                1          3 2147483647 2147483647          0
            numsiginfo            0          4 2147483647 2147483647          0
            tcpsndbuf      11435616  475908164 2147483647 2147483647          0
            tcprcvbuf         38484    4309308 2147483647 2147483647          0
            othersockbuf      20052    5740724 2147483647 2147483647          0
            dgramrcvbuf           0      81244 2147483647 2147483647          0
            numothersock         25         53 2147483647 2147483647          0
            dcachesize      1520023    2061879 2147483647 2147483647          0
            numfile             500       2248 2147483647 2147483647          0
            dummy                 0          0 2147483647 2147483647          0
            dummy                 0          0 2147483647 2147483647          0
            dummy                 0          0 2147483647 2147483647          0
            numiptent            15         16 2147483647 2147483647          0
       100: kmemsize        5281440   11010564   24000000   32000000          0
            lockedpages           0          0         32         32          0
            privvmpages       92998     128308     200000     260000      24943
            shmpages             39         39       8192       8192          0
            dummy                 0          0          0          0          0
            numproc              79        203        400        400          0
            physpages         28153      42014          0 2147483647          0
            vmguarpages           0          0      31000 2147483647          0
            oomguarpages      59620      71803      50000      50000          0
            numtcpsock           19         88        300        300          0
            numflock             29         34        100        110          0
            numpty                0          0         16         16          0
            numsiginfo            0          9        256        256          0
            tcpsndbuf         26404    1171444    8000000   12000000          0
            tcprcvbuf          4276     974928    6000000   10000000          0
            othersockbuf      17824      61152     132096     336896        651
            dgramrcvbuf           0      51312     132096     132096          0
            numothersock         19        110        200        200        107
            dcachesize       269780     465011    1048576    1097728          0
            numfile             766       2132       4096       4096          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            10         10        128        128          0
       101: kmemsize       12869837   33692925   48000000   64000000          0
            lockedpages           0          0         32         32          0
            privvmpages      150998     300619    1000000    2000000          0
            shmpages            650       1802       8192       8192          0
            dummy                 0          0          0          0          0
            numproc             174        421        600        600        888
            physpages         73730     151708          0 2147483647          0
            vmguarpages           0          0     300000 2147483647          0
            oomguarpages      78363     154101    1000000 2147483647          0
            numtcpsock          188        739       1000       1100          0
            numflock             34        130        200        210    2456779
            numpty                0          1         16         16          0
            numsiginfo            1        241        256        256       1294
            tcpsndbuf       4113556   32247628   32000000   48000000     236404
            tcprcvbuf         25656    1877164    6000000   10000000          0
            othersockbuf      13368     205432    1000000    4000000          0
            dgramrcvbuf           0      59864     132096     132096        242
            numothersock         10         55        200        200          3
            dcachesize       663828     870036    4000000    8000000          0
            numfile            2103       4038      16000      16000      60073
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            10         10        128        128          0
       102: kmemsize        2382012   16003918   16000000   32000000      45549
            lockedpages           0          0         32         32          0
            privvmpages       23780     112051     100000     120000       4792
            shmpages             14        670       8192       8192          0
            dummy                 0          0          0          0          0
            numproc              29        211        400        400          0
            physpages         12397      39189          0 2147483647          0
            vmguarpages           0          0      31000 2147483647          0
            oomguarpages      13694      40218      50000 2147483647          0
            numtcpsock            8        214        300        300     248942
            numflock              3         19        100        110          0
            numpty                0          2         16         16          0
            numsiginfo            0         34        256        256          0
            tcpsndbuf        163848    8071768    8000000   10000000     115158
            tcprcvbuf             0     808164    8000000   10000000          0
            othersockbuf       2228      22280     132096     336896          0
            dgramrcvbuf           0      12828     132096     132096          0
            numothersock          5         14        200        200          0
            dcachesize        96503     230091    1048576    1097728          0
            numfile             221        509       4096       4096          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            10         10        128        128          0
       103: kmemsize        2804799    5401309   16000000   32000000          0
            lockedpages           0          0         32         32          0
            privvmpages       34664      56081    1000000    2000000          0
            shmpages            167       2215       8192       8192          0
            dummy                 0          0          0          0          0
            numproc              29         65         65         65      12261
            physpages         10255      26653          0 2147483647          0
            vmguarpages           0          0       6144 2147483647          0
            oomguarpages      13585      36639    1000000 2147483647          0
            numtcpsock            9         80         80         80     532525
            numflock              3         31        100        110          0
            numpty                0          2         16         16          0
            numsiginfo            0         13        256        256          0
            tcpsndbuf         14600    1202304    8000000   10000000          0
            tcprcvbuf             0     290768    8000000   10000000          0
            othersockbuf       2228      22280     132096     336896        452
            dgramrcvbuf           0      29932    1000000    2000000          0
            numothersock          5         32         80         80          0
            dcachesize       107338     230748    1048576    1097728          0
            numfile             261       1369      16000      16000          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            10         10        128        128          0
...

Re: problem with memory on new vps [message #9940 is a reply to message #9922] Wed, 31 January 2007 08:30 Go to previous messageGo to next message
pppy is currently offline  pppy
Messages: 4
Registered: January 2007
Junior Member
the same shit again today..

thst is #cat /proc/user_beancounters before restart VPS

problem with 104 vps.
please help

# cat /proc/user_beancounters
Version: 2.5
       uid  resource           held    maxheld    barrier      limit    failcnt
         0: kmemsize       18014008   27306837 2147483647 2147483647          0
            lockedpages           0          0 2147483647 2147483647          0
            privvmpages       47745     141933 2147483647 2147483647          0
            shmpages          17280      41600 2147483647 2147483647          0
            dummy                 0          0 2147483647 2147483647          0
            numproc             127        171 2147483647 2147483647          0
            physpages         14034      36506 2147483647 2147483647          0
            vmguarpages           0          0 2147483647 2147483647          0
            oomguarpages      17308      39639 2147483647 2147483647          0
            numtcpsock         1165       4091 2147483647 2147483647          0
            numflock              5         15 2147483647 2147483647          0
            numpty                1          3 2147483647 2147483647          0
            numsiginfo            0          4 2147483647 2147483647          0
            tcpsndbuf     230550832  475908164 2147483647 2147483647          0
            tcprcvbuf       1775232    4309308 2147483647 2147483647          0
            othersockbuf      15596    5740724 2147483647 2147483647          0
            dgramrcvbuf           0      81244 2147483647 2147483647          0
            numothersock         25         54 2147483647 2147483647          0
            dcachesize      1782915    2061879 2147483647 2147483647          0
            numfile            1290       2248 2147483647 2147483647          0
            dummy                 0          0 2147483647 2147483647          0
            dummy                 0          0 2147483647 2147483647          0
            dummy                 0          0 2147483647 2147483647          0
            numiptent            15         16 2147483647 2147483647          0
       100: kmemsize        5069844   11010564   24000000   32000000          0
            lockedpages           0          0         32         32          0
            privvmpages       92727     128308     200000     260000      24943
            shmpages             39         39       8192       8192          0
            dummy                 0          0          0          0          0
            numproc              74        203        400        400          0
            physpages         21845      42014          0 2147483647          0
            vmguarpages           0          0      31000 2147483647          0
            oomguarpages      55389      73691      50000      50000          0
            numtcpsock           19         88        300        300          0
            numflock             29         34        100        110          0
            numpty                0          0         16         16          0
            numsiginfo            0          9        256        256          0
            tcpsndbuf         24536    1171444    8000000   12000000          0
            tcprcvbuf             0     974928    6000000   10000000          0
            othersockbuf      21844      61152     132096     336896        651
            dgramrcvbuf           0      51312     132096     132096          0
            numothersock         16        110        200        200        107
            dcachesize       260596     465011    1048576    1097728          0
            numfile             724       2132       4096       4096          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            10         10        128        128          0
       101: kmemsize       13507986   33692925   48000000   64000000          0
            lockedpages           0          0         32         32          0
            privvmpages      136512     300619    1000000    2000000          0
            shmpages            650       1802       8192       8192          0
            dummy                 0          0          0          0          0
            numproc             179        421        600        600        888
            physpages         61564     151708          0 2147483647          0
            vmguarpages           0          0     300000 2147483647          0
            oomguarpages      64418     154101    1000000 2147483647          0
            numtcpsock          130        739       1000       1100          0
            numflock              3        130        200        210    2456779
            numpty                0          1         16         16          0
            numsiginfo            1        241        256        256       1294
            tcpsndbuf       5795976   32247628   32000000   48000000     236404
            tcprcvbuf         34208    1877164    6000000   10000000          0
            othersockbuf      13368     205432    1000000    4000000          0
            dgramrcvbuf           0      59864     132096     132096        242
            numothersock         10         55        200        200          3
            dcachesize       591001     870036    4000000    8000000          0
            numfile            1911       4038      16000      16000      60073
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            10         10        128        128          0
       102: kmemsize        2599444   16003918   16000000   32000000      45549
            lockedpages           0          0         32         32          0
            privvmpages       27231     112051     100000     120000       4792
            shmpages             14        670       8192       8192          0
            dummy                 0          0          0          0          0
            numproc              30        211        400        400          0
            physpages         16779      39189          0 2147483647          0
            vmguarpages           0          0      31000 2147483647          0
            oomguarpages      17808      40218      50000 2147483647          0
            numtcpsock           12        214        300        300     248942
            numflock              3         19        100        110          0
            numpty                0          2         16         16          0
            numsiginfo            0         34        256        256          0
            tcpsndbuf        219036    8071768    8000000   10000000     115158
            tcprcvbuf             0     808164    8000000   10000000          0
            othersockbuf       2228      22280     132096     336896          0
            dgramrcvbuf           0      12828     132096     132096          0
            numothersock          5         14        200        200          0
            dcachesize       113723     230091    1048576    1097728          0
            numfile             234        509       4096       4096          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            10         10        128        128          0
       103: kmemsize        2831489    5427158   16000000   32000000          0
            lockedpages           0          0         32         32          0
            privvmpages       40160      60790    1000000    2000000          0
            shmpages            167       2215       8192       8192          0
            dummy                 0          0          0          0          0
            numproc              29         65         65         65      12609
            physpages         13504      27757          0 2147483647          0
            vmguarpages           0          0       6144 2147483647          0
            oomguarpages      20897      36639    1000000 2147483647          0
            numtcpsock            4         80         80         80     536636
            numflock              3         31        100        110          0
            numpty                0          2         16         16          0
            numsiginfo            0         13        256        256          0
            tcpsndbuf             0    1202304    8000000   10000000          0
            tcprcvbuf             0     290768    8000000   10000000          0
            othersockbuf       2228      22280     132096     336896        452
            dgramrcvbuf           0      29932    1000000    2000000          0
            numothersock          5         32         80         80          0
            dcachesize       107338     230748    1048576    1097728          0
            numfile             261       1369      16000      16000          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent            10         10        128        128          0
       104: kmemsize    
...

Re: problem with memory on new vps [message #9943 is a reply to message #9940] Wed, 31 January 2007 09:21 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

You have a great resource shortage in all VEs!
Increase limits/barriers for parameters, which have failcounters in /proc/user_beancounters.
You can get more information about the subject at wiki:
http://wiki.openvz.org/Resource_shortage

HTH,
Vasily
Previous Topic: *SOLVED* 4GB problem
Next Topic: *SOLVED* server crash
Goto Forum:
  


Current Time: Sat Oct 12 16:35:32 GMT 2024

Total time taken to generate the page: 0.06429 seconds