Tag Info

New answers tagged

0

If these apps are running inside an apache2 server, you can tune the server. Consider: Limit the MaxRequestWorkers (This limits number of workers using memory). Limit the MaxConnectionsPerChild (This recycles servers so that they don't consume to much memory. This is useful if the applications are leaking memory. If your processes are leaking memory, ...


1

The linux kernel has a so-called OOM Killer built-in. It is the "Out of memory killer". So when your box has exhausted its ram & swap, the kernel will start killing stuff to make the server accessible. You can tweak the priorities of processes, to determine the "likelihood" of a process being killed. Read more at this link, see section "Configuring ...


0

When a default install LAMP server has a problem with memory consumption, it's usually Apache. Since mod_php is not thread safe, Apache is generally running with MPM prefork. That means that for each request server is spawning separate process. Since apache process with mod_php is usually consuming around ~35-50MB, that means that as the number of users ...


0

I don't think this is a memory leak. It could simply be that without large pages your memory usage hit an upper bounds (ceiling) which was why memory usage looks flat. After switching to large pages MySQL may have simply been able to better make use of the available memory. The system isn't hitting swap. I'd say closely monitor and stop flushing tables.


0

Now I have tried with 32GB (2x8GB + 4x4GB) register memory, using only one CPU (E5520). According to specs the limit is 24GB (6x4GB). The system has been running very stable for 4 months now. I still really want to see if 32GB modules gets accepted. :-)


0

The question is arguably off-topic, but there is at least one good answer: Get the Windows Internals book(s) from MS Press and read them, specifically Chapter 10 (6th Edition) These are probably the best overall guide to how Windows works (and the chapter on memory management is quite detailed).


0

Everything what you wrote is true except you are not listing practical reasons for ECC correction. I recommend reading of article below. Now in practical application, systems use memory correction to actually increase performance because some hardware and software is capable of detecting inconsistencies in data and request reprocessing of transaction. ...


0

Are you running apc? If not, I'd install that and see if the situation improves. I'd also look at the php fcgi configurations. Since php is run separately from apache under fcgi, I don't believe your problems are with apache.


0

I suggest one or more of the following: Move that client to a separate VPS. Decrease MaxClients drastically, try e.g. 10 Use nginx instead of Apache, or varnish in front of Apache Use cloudflare


0

Completely agree with Grant,Swap utilization is not always a performance issue but if Database is swapping you will see a performance issue but it all depend on the situation.Next time when your system is swapping can you please run this script to find out which process is swapping http://northernmost.org/blog/find-out-what-is-using-your-swap/ ...


5

You don't mention any performance problems, just that it is using swap. This is completely normal. If there are things in RAM that are being used very infrequently, the kernel will swap them out to make more room for caches that are being used frequently. This can be adjusted with the vm.swappiness kernel parameter, but generally it works well the way it ...


0

I am not sure if I understand your question correctly but first I would like to find out actual memory usage along with actual shared memory.Please use the below mentioned python script https://raw.githubusercontent.com/pixelb/ps_mem/master/ps_mem.py Hopefully this will help or first step towards debugging...


0

vSwap is calculated as the difference between the amount of ram you assign to a container subtracted from the amount of burst memory you assign it. A positive number creates vSwap to account for the differemce. As far as iopts on a physical drive as a result of virtual memory manipulation I don't have any hard data but I'd think the answer is probably no, or ...


1

When upgrading the memory of an existing server you should probably start by confirming what memory modules you have installed now and what extra/new/replacement modules are actually supported by the (main board) vendor and BIOS. To comply with warranty and your hardware support contracts you may be required to buy genuine spare-parts from the vendor, ...


0

As stated in the other answer, check htop for the top running processes. In addition, be sure to upgrade any packages with yum update As old ones could potentially have memory leaks. Also since you said you run a website, you likely run apache. Try switching to nginx (recommend) or lighttpd. Apache is known to eat up resources so a lighter web server ...


4

You have no memory left. You have to either optimize your processes (mysql, apache or nginx) or upgrade to the next virtual server package with more memory. A reboot will not fix your problem as memory will go up again. Do you have any scripts running on your website? Have you made sure they are not memory leaking from code? Install HTOP, it's an ...


19

RAM for servers comes with a few common metrics to specify it's capacity and ability to work in a particular configuration. To help confuse this there are different names for what is essentially the same thing, and the "standard" name changes depending on which type of RAM you're using. Capacity (1GB, 4GB, 32GB, etc) This is easy enough; everyone should ...


1

It depends. You should rely on the in-VM tools like top, vmstat, etc. They are accurate, assuming that your physical resources aren't too overcommitted and you've installed the VMware tools. At the vSphere level, you still have memory ballooning, TPS, compression and swap as fallbacks. The memory management really isn't that bad. Also understand that ...


1

One thing that many people miss, especially when running Tomcat and other Java-based applications on VMware, is the impact that this software has on VMware's memory allocation. So first: Do you have access to the vSphere or vCenter Management for the host/cluster? Do you have the VMware tools installed? I often see unexplained memory issues inside of ...


0

try grep VmPea /proc/*/status|sort -n -k+2 |tail as written by polynomial in the link below serverfault almost no free memory You did read Serverfault Canonical question about Memory usage in linux right? Additionally you might add threads in top via pressing H (at least for me on ubuntu 12.04) For more debug: search for ps_mem.py one Python memory ...


1

As mentioned in above reply..checking updated package is the first debugging step as based on the log trace we can see kernel is doing it job i.e out of memory function is called when all the system memory is occupied including(RAM+Swap) and system will not resume normal operation till memory is freed. Other option you have is to configure kdump along with ...


0

Following Michael's recommendations and tuned down my apache2.conf a maximum on my staging instance. These are not production settings but they address my question. # prefork MPM # StartServers: number of server processes to start # MinSpareServers: minimum number of server processes which are kept spare # MaxSpareServers: maximum number of server ...


0

Running Apache, MySQL and probably PHP in a 256 MB VPS is kind of a tight game. 256 MB RAM is not quite much for running those services, on the contrary, it is very, very little. First thing to do would considering if not getting a better VPS is an option. Then, if getting a better VPS is not an option, one serious word of advice: ditch Apache completely! ...


1

I think the CPU is used just to scan the page tables to find which frames to free. It seems high though, I've got one system with small pages, 400 GB RAM and it doesn't show such dramatic behavior. Hard to say what is the root cause, but I'd like to propose a workaround. Enable a substantial amount of huge pages (via vm.nr_hugepages). This would ...


0

You should check your redis.conf for setting called 'maxmemory'. If you don't want Redis to use more then 100MB of memory, then be sure to set the following in your redis.conf: maxmemory 104857600 After applying change you will have to restart your redis instance.


0

as you can see, the apache process is using 86% of memory: either the script is buggy and using too much memory because of bad design, or you should consider some hw upgrade (add memory). if the memory usage is not increasing with time going, adding memory would fix the issue.


1

A page fault occurs when a running program attempts to access a bit of it's memory that is not in RAM, most likely it is in the swap file on disk. (Obligatory Wikipedia article) Your output of a running command shows that the PHP program is trying to allocate 2138MB (the "VIRT" column) and is only able to keep 1.6GB (the "RES" column) in RAM. (citation) ...


0

If this is the result of regular use, you should check those PHP scripts for memory leak, infinite loops, and such scary issues.


0

you can limit the memory usage of a user (the user which runs the php-cgi processes) with cgroups. for example to limit the memory usage of a user you can do the following: # file: /etc/cgconfig.conf group php { memory { memory.limit_in_bytes = "2G"; } } And then you have to add your php-cgi user to this cgroup-group: # file: ...



Top 50 recent answers are included