for the last few days, i am facing high memory usage up to 90%.
Memory usage get's high, even if i don't have many visitors online. I have to restart httpd to get the memory to normal. some times, server loads, get's high aswell.
In error logs (only unusual things i see):
Code:
[Sat Jan 6 10:37:04 2007] [error] mod_gzip: TRANSMIT_ERROR:ISMEM:104
[Sat Jan 6 10:37:25 2007] [error] mod_gzip: TRANSMIT_ERROR:ISMEM:104
I have a linux server that is only hosting one site , and although the httpd and mysql are working well , then the server load is high and when I restart the server the server load is high till the swap accelerates to 100% and then it uses the memory alot.
I got 5 wordpress and 5 statics website on this server and 100 visitors by 24H00 each day.
Question 1 : Why the memory is so low and the swap so high ? Question 2 : Why i don't find high usage process in top command ? Question 3 How can i resolve this problem ?
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 purchased a VPS at wiredtree to upload a site that is in the works so that it would be "ready" once it was launched (had it sitting on a shared server before). So I have this domain on there, as well as a small wordpress blog. In total I'm get a very miniscule trickle of visitors to these websites (as they are not officially launched), around 100 visits per day, many of which are only 1 pageview visits.
My problem is, my server is already idling over its memory limit of 256mb. This is causing major slowdowns, and processes like cpanel are constantly be killed and I can't login.
Does anyone have any idea what is causing my high memory usage? I just can't image that the visitors I am getting are doing much, as for the majority of the day I have absolutely no one viewing my domains, yet my memory usage is still over the limit.
Wiredtree support says its up to me to optimize my msql/php scripts etc for low mem usage, but I don't see how this will help when there is no one using them in the first place.
I'm currently running vBulletin & two wordpress powered blogs on my box. Number of simultaneous users is about 200~250 and about 15~20 logged in users.
The memory usage is constantly in the range of 1.8 GB - 2.00 GB. Considering that total physical RAM my box has is 2 GB, the memory usage, I believe is exceptionally high.
The same site was running very well on shared hosting environment and also on VPS [with just 512 MB RAM] very fine.
What should I do to bring the memory consumption to minimum (required to run the site well?)
We are currently running plesk 11.5 and over the last few months, the apache memory usage has been very high. On investigation we have gone through the logs and we can't find a cause.
I can issue a service httpd restart and the memory drops for about 30 minutes and then we see the apache memory grow to almost 1.5 - 2GB. Why this keeps happening?
I have a site that is eating up my server resources and need to know what the best solution for this is. I'm thinking of getting another server just for mysql but do not know what specs the server should be to handle the current traffic/database load and have the site run smoothly without slowing down to a snail's pace.
An alternative is to get another server just for the videos being served and leave the database and html on the current server. This is where I'm stuck and don't know what route to take with this.
I've attached screenshots of top and bandwidth usage per day. Hopefully with this information you could tell me if I need another server or if there are any things I can do to the current server to help things move faster.
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........
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 VPS host is (for now) still using LxAdmin, but is no longer allowing login to HyperVM for reboots and access to system info. Please, tell me exactly how to use SSH to check the current memory usage on my VPS.
Quote:
Viewing your current resource usage
Log in via SSH, I normally use the Putty client for this.
Commands:
top: your current server load & resource usage. ps aux: all your processes & which ones are using the most memory/cpu free -m: allocated memory, usage & free memory
Is the command line really *easy* once you get used to it?
a few times, my host contacted me and said that my account is suspended due to high usage of server resources.
I have 3 sites using SMF (a forum script.) I have around 8500 visitors and 3 million page views per month in total.
can this be a reason of high usage?
if it's what's the meaning of terabyte traffic limit ? which you can never use
I asked to my host if they could let me know what's causing high server resources usage. here is the answer:
We do not know which domain or script caused this high usage, it is your responsibility to investigate. I would suggest that you go through your raw access logs to see the most requested pages and then investigate those further. After you find the pages responsible, please optimize them so you are not using so many server resources.
so if a host wants simply to restrict traffic limit, they have a pre-reason under hand.high server usage! yes but how will I know that? how will I trust that it's true?
when I ask why my sites are down, they can easily tell me that it's because of high server usage!
cpu speed/type single or dual cpus): Intel Xeon 2x3.6 how much memory installed: 2048MB hard drive type/configuration: 2x160GB SATA linux distributor or windows version: CentOS 4.5 x86_64 apache/IIS version: apache 1.3.37 PHP version: php 4.4.7 MySQL version: 4.1.22-standard
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 19017 teknoloj 16 0 0 0 0 Z 27 0.0 0:00.93 php <defunct> 17751 mysql 15 0 241m 55m 3148 S 25 2.8 0:53.73 mysqld 19025 root 18 0 16204 6104 1392 D 6 0.3 0:00.17 cpcpan_check_in 18968 sohbetgo 16 0 44596 7540 3556 S 5 0.4 0:00.44 php 18552 nobody 15 0 32636 4208 1204 S 2 0.2 0:00.28 httpd 18808 resimsit 17 0 46944 9960 3616 R 1 0.5 0:00.23 php 18896 resimsit 16 0 46944 9984 3616 D 1 0.5 0:00.08 php 18921 resimsit 17 0 46404 9444 3572 R 1 0.5 0:00.09 php 18819 nobody 17 0 32644 4176 1192 S 1 0.2 0:00.06 httpd 18868 haylazt 16 0 0 0 0 Z 1 0.0 0:00.48 php <defunct> 18871 nobody 15 0 32504 4056 1148 S 1 0.2 0:00.06 httpd 18892 root 16 0 6416 1180 756 R 1 0.1 0:00.24 top 18978 nobody 16 0 32504 4028 1132 S 1 0.2 0:00.02 httpd 11 root 5 -10 0 0 0 S 0 0.0 0:24.56 events/1 2638 root 0 -20 0 0 0 S 0 0.0 0:16.96 loop0 2981 named 18 0 88016 2328 1152 S 0 0.1 8:44.12 named 3592 mailman 16 0 50316 2320 1828 S 0 0.1 0:00.78 python2.4
MySQL 4.1.22-standard uptime 0 0:39:9 Sat Jun 30 21:33:29 2007
__ Key __________________________________________________ _______________ Buffer used 19.34M of 80.00M %Used: 24.17 Current 33.70M %Usage: 42.12 Write hit 32.57% Read hit 98.45%
__ Tables __________________________________________________ ____________ Open 486 of 1800 %Cache: 27.00 Opened 702 0.3/s
__ Connections __________________________________________________ _______ Max used 12 of 500 %Max: 2.40 Total 4.33k 1.8/s
__ Created Temp __________________________________________________ ______ Disk table 26 0.0/s Table 2.23k 1.0/s File 428 0.2/s
6-7 vbulletin sites-vbseo and other scripts online avarage; 120 registered user ve 500+ unregistered user cookie timeout : 7200 unique hit : 15000-20000
KeepAlive ON MaxKeepAliveRequests 100 KeepAliveTimeout 2 MinSpareServers 10 MaxSpareServers 15 StartServers 10 MaxClients 180 Maxrequestsperchild value 1000
[root@server ~]# uname -a
Linux server.xxxxx 2.6.9-55.ELsmp #1 SMP Wed May 2 14:04:42 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
[root@server ~]# ulimit -aH
core file size (blocks, -c) 1000000 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited pending signals (-i) 1024 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 4096 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 14335 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
[root@server ~]# cat /proc/cpuinfo
processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Xeon(TM) CPU 3.60GHz stepping : 10 cpu MHz : 3600.322 cache size : 2048 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 1 fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cid cx16 xtpr bogomips : 7207.08 clflush size : 64 cache_alignment : 128 address sizes : 36 bits physical, 48 bits virtual power management:
processor : 1 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Xeon(TM) CPU 3.60GHz stepping : 10 cpu MHz : 3600.322 cache size : 2048 KB physical id : 3 siblings : 2 core id : 3 cpu cores : 1 fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cid cx16 xtpr bogomips : 7199.29 clflush size : 64 cache_alignment : 128 address sizes : 36 bits physical, 48 bits virtual power management:
processor : 2 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Xeon(TM) CPU 3.60GHz stepping : 10 cpu MHz : 3600.322 cache size : 2048 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 1 fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cid cx16 xtpr bogomips : 7509.03 clflush size : 64 cache_alignment : 128 address sizes : 36 bits physical, 48 bits virtual power management:
processor : 3 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Xeon(TM) CPU 3.60GHz stepping : 10 cpu MHz : 3600.322 cache size : 2048 KB physical id : 3 siblings : 2 core id : 3 cpu cores : 1 fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl est tm2 cid cx16 xtpr bogomips : 7199.26 clflush size : 64 cache_alignment : 128 address sizes : 36 bits physical, 48 bits virtual power management:
For the past few days, one of the server is causing a bandwidth utilization surge for the entire rack on almost daily basis. It happen for a few minutes and it went off then it will be the same thing again the next day. When the surge is happening, most of the servers on the same segment will be inaccessible for the few minutes.
The bandwidth utilization graph for my rack is recording an abnormal surge from (6mbps --> 90mbps) for the few minutes. My MRTG is showing 2 of the Plesk servers giving the problem but the NOC guys said it the Cpanel that causing the problem.
I tried logging in to both servers but could not find what's the cause for this.
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?
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?