I've been unable to limit the size of a process to keep it from hosing a system. I've tried the following methods:
- RLimitMEM for just Apache (although I'd like this to apply to any process in the system)
- ulimit
- PAM limits.conf (/etc/security/limits.conf)
In theory, either ulimit or limits.conf should do the trick, but when I start up Apache and run a test script to build up some memory, it doesn't get killed off. Is there any way to do what I want? I'll even take kernel modification as an option. We're running CentOS 4.4, but I don't have a problem with swapping out for another kernel.
I have a VPS with 256MB ram. i want to limit mysql memory access. suppose i want that mysql should not use more than 128MB ram. is this possible? if yes how?
i've been researching this but can't seem to find a decent solution.
basically trying to limit the cpu usage of a single domain, or limit accesses per hour if that's possible?
i tried adding an entry in /etc/security/limits.conf which restricts numproc to 2 and then down to 1, but it doens't seem to make any impact on the load. load of the server drops from about 1.5-2 down to 0.02 when this single site is suspended, and i can't have it run wild.
ideally would like a message that says something along the lines of server is too busy... trying again in 5 seconds or something along those lines?
I just got a new server Dual E5520 with 6GB RAM, SAS 15k rpm raid10. It's running well. However, the memory usage is just around 2.5GB, even when I have more traffic. Here is the kernel info
Quote:
# uname -a Linux server2.[url]2.6.18-128.1.10.el5 #1 SMP Thu May 7 10:35:59 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
Any idea that we can put more content into memory?
So, my basic question is, which of them I donīt need? SOme of them I know what is it but still have some questions...
1-cpsrvd-ssl , i know this means someone(me) is connected to cpanel, but even if I log out the process stills there, is that normal ?
2-authProg , sometimes there are a lot of those process running, what is that? is that normal ?
3-exim, 3 process running, is that normal ? exim is better than sendmail ?
4-After those questions, which process am I able to drop(and how?) - I only need email forwarding(that is already working), smtp, mysql(already working too), and tomcat server.
I have been looking everywhere for a program that can monitor a process's CPU usage and if it exceeds a certain percentage for a given amount of time, kill the process.
Everywhere I look, it's either doesn't kill automatically, or is for Linux. Can anyone recommend me a program that can do this for Windows 2003?
It seems that a user may get more percentage of memory purchased for real use. I've got a xen VPS which has access to all 8 CPU cores. Guess this is a good thing to be able to burst CPU resources
But this requires lots of kthread running to be able to access all CPU resources, which in turn consumes quite some memory, a valuable, limited resource on a small VPS instance.
The output above is grathered when almost no other services are running except sshd.
While XEN VPS surely consumes more memory than OVZ VPS, I would suggest the Xen VPS can be built in such a way less memory is required to just do the housekeeping.
Of course, that would imply careful provisioning, maybe less "overselling" for the sake of lack of a term. The bottom line is how we can reduce the memory usage, while ensure individual VPS instance can still have fair share of CPU if needed.
Is there anyway in the VPS kernel config which can disable access to certain CPU core, thus reducing the number of kthreads and etc?
I do not know if i have problems with my vps but "top" output looks strange for me. It looks like apache processes have huge VIRT parameter and all processes have huge SWAP param.
My VPS 712 guaranteed and 1024 burstable. I'm running 10 virt hosts with very small traffic. Totally not more than 500 visits/day. Most of sites are static and only two are PHP.
how much adding php to apache will increase memory usage on a VPS? This would be php5.
I need it to use phpMyAdmin to manage my MySQL database (actual site is running off tomcat but jspmyadmin won't work for some reason).
Or can someone recommend a database design tool (I've used toad data modeler before) which I can use on my home pc to generate SQL statements for execution on the server (and please don't say notepad).
I am trying to run tomcat on my linux server and I am getting memory allocation error. When I see check memory usage it is full, but when I check the cpu usage it show as this:
Am using Hypervm,my all vms are not using more than 512 MB memory but when i click on server as localhost the there is show maximum memory usage I have total 8 GB it always show 5-6 GB usage and never drop down, How can I fix this matters?
I was just wondering about DA memory load. Like CPANEL load around 300mb and LXADMIN about 20mb. I was going to get VPS with 256 only to host 40-50 church sites with just static html, not dynamic or anything. Greatly appreciated with your input. I'm still learning all of this
I have a VPS with 384 MB RAM, with free about 100-120 MB. I've upgraded to 512 MB (to have some other features...). I notice that the memory usage is always about 250-300 MB. For example, now:
Code: [root@host ~]# free -m total used free shared buffers cached Mem: 512 311 200 0 0 0 -/+ buffers/cache: 311 200 Swap: 0 0 0 But PHP tells "out of memory" in some tasks
The current PHP config is memory limit 192 MB (it was 96 MB, then I tried to increase). [url]
Code: <b>Fatal error</b>: Out of memory (allocated 19660800) (tried to allocate 39 bytes) in <b>##hidden##/includes/joomla.php</b> on line <b>3041</b><br />
I'm currently playing with my dedicated server, it isn't much but for learning purposes it's more than enough.
I have CentOS 5.3 installed on the server.
It's Intel Atom 330 with 2 GB RAM.
Now my question is:
When server is running nothing but basic install memory comsumption is aroun 500-600 MB.
Today I have rsynced 11 GB of data from one of my VPSs to the ded server and the memory comsumption on the server sky rocketed to 2 GB, leaving only 56 Mb free.
Since a short while back my server memory usage is 100%. The amount of visitors decreased so the memory should be lower in consumption than before.
I suspect a newly installed script could have bugs or misuse of the server by hackers. I don't know how to see on the server what script or what part makes the memory use so high. I see Apache is very high but I'm on VPS. Technical data........
My managed dedicated server at 1and 1 has very low load, but quite slow, I was trying to figure out the reason. The top and free command ( I run at midnight without traffic), here is the result. Can anybody tell me if the memory usage is normal, anything suspicious. Look like the memory usage is high even with no traffic, but 1and 1 support say that's because it's reserved for cache.
It tells me that I only have 50 MB of memory left and it drops down to ~20 MB after Apache has been running for a while. Once it runs out of that 20 MB I will start swapping right? I have also run this command and do not see any process taking up anywhere close to what is being reported:
I have a VPS with 512 MB ram. I have 6 sites hosted on my VPS, of which 3 contains only static pages. My site is not very traffic heavy. Infact I moved to my VPS only 3 months back, until then it was running on a shared server with no problem.
But still, I am always running out of RAM. I have upgraded my account to 512 MB ram from 256MB because of this. Can anyone please tell me how I can find out what is the cause of this excessive memory usage? On rebooting my server, the RAM usage goes down to about 250MB.
i order the latest plan of vps in some company, and got 898MB of dedicated memory, but as you can see in memory usage, how come my memory only 23mb(free usage) i just reboot and memory usage only 23mb, thats why my website taking so long to open other page.
is it my mistake?(im running forum,but only 2 users currently online, and not opening other website) or is it the company server that took somany client.
Currently i have a small server with 512 Mb of ram i doing some minor hosting.. sometimes..my free memory is only left with 15 mb..is there a concern down here?
is there anyway i can find out what are using up my memory..? And should i just upgrade to 1Gb instead?
Somtimes my mail queue ..will also take up like 20 to 30 mb of memory as they keep on trying to resend themself
My mysql is using alot of memory although there is not much data into the mysql tables. I tried to control mysql usage by editing my.cnf file but that didnt help.
Which variables should I edit in my.cnf to keep mysql using low memory?
I edited sort_buffer_size, key_buffer_size but that didnt help much. It uses alot of per-thread memory as well.