Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
there are 25 websites running on our server, Unluckily one site uses too much memory,
normally our server consume Approximate 15% memory but when i switch ON this site, memory uses jump to more then 80%
some time it hangs the server. i still can't find which process in this site actually taking such a huge memory usage.
How can i check which process consume huge amount of memory to resolve this issue ?
following are the some output that i capture from some commands,
What's different about this one website? Does it get considerably more traffic? Does it use PHP / MySQL resources? You may simply have a website that is too "big" for that server.
Red Hat Enterprise Linux Server release 5.6
Memory 8 GB, Swap 2 GB,
CPU Model name : CPU Intel(R) Xeon(R) CPU L5335 @ 2.00GHz
PHP 5.2.17,
Mysql Server version: 5.0.77 Source distribution
Well the mem use is o, in as much as (in *nix) RAM is there to be used, otherwise its wasted money.
Note that its using almost no swap, so I don't think you've got a mem leak, just a large-ish site.
The 42% sys usage is interesting though.
Does this site do a lot of disk writing; what does top look like for the processes?
You can check what the DB is doing using 'show processlist' https://dev.mysql.com/doc/refman/5.1...ocesslist.html
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.