Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I recently purchased an Ubuntu VPS. However my memory is almost completely consumed by mysql and bind9.

Is there any way to use another DNS Server instead of bind9 that consumes less RAM?

Or perchance there is a configuration to lower its memory usage?

share|improve this question
    
Specify how much memory please and what your appliance is –  Lucas Kauffman Feb 27 '12 at 9:48
    
How low IS your RAM? You know, a small small VPS - 32mb or 64mb - is not really there to run anything else than a small DNS or some other similar small app. –  TomTom Feb 27 '12 at 9:49
    
its using about 200M, and for my case it is RAM wasting. –  wtayyeb Feb 27 '12 at 9:51
    
@TomTom, currently my vps have 512M of Ram. –  wtayyeb Feb 27 '12 at 9:53
    
How much is used by bind, how much by mysql? mysql may want some tuning, but unless your app is tiny, 512mb is small... but then, tell us what uses how much. –  TomTom Feb 27 '12 at 9:55

1 Answer 1

SSH will only use RAM when that RAM is not needed for any more important purpose. If you're not actually connecting to it, it should be swapped out as soon as there is any better use for memory. You're trying to solve a problem that's already solved by the operating system's memory management system.

The operating system understands that free RAM is free, that is, that there is no cost associated with using it. It makes no attempt to minimize RAM usage, nor does it generally make any sense for it to do so. Don't worry, the OS is smart enough to use your RAM for the most important purpose at any particular time. If it's letting SSH use the RAM, that's because that is what is best.

share|improve this answer
    
thanks for the try but when I lunch BIND, Mysql and Nginx on the VPS, its stops responding to anything else! because there is no RAM remaining to response, ether to SSH. –  wtayyeb Feb 27 '12 at 14:45
    
Sounds like you don't have enough swap. You need to be able to get the stuff that's not being used out of RAM. –  David Schwartz Feb 27 '12 at 20:05
    
yes I have no swap. also i dont know how to create a swap on this vps. I am reading this and this but cant do the trick! –  wtayyeb Feb 27 '12 at 20:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.