OpenVZ Forum


Home » General » Discussions » Memory leak Urgent
Memory leak Urgent [message #1938] Thu, 09 March 2006 06:19 Go to next message
jbond007 is currently offline  jbond007
Messages: 78
Registered: January 2006
Location: Miami
Member
the vps leak memory have 3 gb ram and rum 3 vps

RAM Total Used Free
2.97 GB 2.48 GB 496.24 MB

how clean the buffer or ram or another solution
my vps run debian
my host run centos 4.2
Thank you

whitout reboot the system !

[Updated on: Thu, 09 March 2006 06:20]

Report message to a moderator

Re: Memory leak Urgent [message #1939 is a reply to message #1938] Thu, 09 March 2006 08:04 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Sorry I don't really understand what you mean. Could you be more specific?

Please note that RAM is also used for buffers and cache, so there is nothing wrong with the fact that most RAM is used -- Linux is wise in that regard and use (otherwise) free RAM for cache.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Memory leak Urgent [message #1943 is a reply to message #1939] Thu, 09 March 2006 15:46 Go to previous messageGo to next message
jbond007 is currently offline  jbond007
Messages: 78
Registered: January 2006
Location: Miami
Member
dear kir
have only 3 vps debian fresh install and my host tell me that i use 1.5 gb ram

how can clean the cache
Re: Memory leak Urgent [message #1945 is a reply to message #1938] Thu, 09 March 2006 16:10 Go to previous messageGo to next message
bjmg is currently offline  bjmg
Messages: 32
Registered: December 2005
Location: Puettlingen, Germany
Member

Please read a book/the documentation about the linux memory management.
please also try to look into the output of the command "free". It looks like
             total       used       free     buffers     cached
Mem:       2057604    2037524      20080       23640    1045648
-/+ buffers/cache:     968236    1089368
Swap:      2996112       2684    2993428

As you can see I have 2 GB of memory and only 26MB free BUT - and that is important - I also have 23 MB of buffer space and about 1GB of cache space. So in reality I have about 1 GB of free memory because the cache and buffer space is allocated dynamically.
I only have 1 GB of free memory because that is my workstation and I just use a large java application.
You can change that behaviour if you know what your are doing with sysctl.

Bernhard
Re: Memory leak Urgent [message #1947 is a reply to message #1943] Thu, 09 March 2006 16:32 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

To start with, there is no sense to free that memory used by cache -- it will be freed as soon as it will be needed. It's just Linux doesn't waste resources -- but rather uses them wisely.

To continue with, this is not a problem, and this is in no way OpenVZ-related.

To end with, here are some more info on topic:
http://gentoo-wiki.com/FAQ_Linux_Memory_Management
http://sourcefrog.net/weblog/software/linux-kernel/free-mem. html


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Memory leak Urgent [message #1949 is a reply to message #1947] Thu, 09 March 2006 17:45 Go to previous messageGo to next message
jbond007 is currently offline  jbond007
Messages: 78
Registered: January 2006
Location: Miami
Member
kir you think this will not issue? Crying or Very Sad
have 3 gb after create vps user and i type free cache go up
1 user total 700 mb in cache
is not way to release the cache ?
the solution is reboot !
but i think is not good idea
any one has same problem ?
Thank you
Re: Memory leak Urgent [message #1950 is a reply to message #1947] Thu, 09 March 2006 17:54 Go to previous messageGo to next message
jbond007 is currently offline  jbond007
Messages: 78
Registered: January 2006
Location: Miami
Member
kir you think this will not issue?
have 3 gb after create vps user and i type free cache go up
1 user total 700 mb in cache
is not way to release the cache ?
the solution is reboot !
but i think is not good idea
any one has same problem ?
Thank you
Re: Memory leak Urgent [message #1951 is a reply to message #1949] Thu, 09 March 2006 18:06 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Again, in plain English:

this is not a problem

If you think it is -- please explain why you think so.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Memory leak Urgent [message #4829 is a reply to message #1938] Thu, 27 July 2006 12:40 Go to previous messageGo to next message
alt0v14 is currently offline  alt0v14
Messages: 52
Registered: July 2006
Location: Ukraine Simferopol
Member
jbond007 wrote on Thu, 09 March 2006 01:19

the vps leak memory have 3 gb ram and rum 3 vps

RAM Total Used Free
2.97 GB 2.48 GB 496.24 MB

how clean the buffer or ram or another solution
my vps run debian
my host run centos 4.2
Thank you

whitout reboot the system !


dude, youre really stupid and annoying, please leave developers alone and try read some books.
Re: Memory leak Urgent [message #8989 is a reply to message #4829] Tue, 12 December 2006 14:20 Go to previous message
jbond007 is currently offline  jbond007
Messages: 78
Registered: January 2006
Location: Miami
Member
you right Idiot fu*** you !
Previous Topic: Running different distros as guests, how's that work?
Next Topic: Blogged about my experience with OpenVZ
Goto Forum:
  


Current Time: Sat Nov 16 17:00:45 GMT 2024

Total time taken to generate the page: 0.03093 seconds