Server Memory Leaks
Feb 1, 2008
i'm running Suse 10 linux server in my company, and that server is used primary for graphing solutions, and data gathering.
server is fujitsu-siemens primergy rx100 s2 - suse was the only OS that detected disc controllers at that time.
It runs tons of queries to bunch of devices via SNMP and stores data in RRD files and some other data to mysql. It also runs a web server for displaying that data.
queries are short PHP script, that runs in CLI mode by cron
Few months ago my company switched to MPLS routing of our local network, and IMHO that was done very bat so sometimes i get timeouts, or networks run very slow.
other thing is that i server is behaving really weird.
Issue 1 - memory leaks or something like that
After restart it works quite fine for about 10-15 days, but after that when i run top i see that apache is using more and more VIRT memory, it starts with 8 megs per process and ends up with 150-200 megs per process.
things i tried to fix:
recompiled from scratch (php,mysql,httpd,snmp,maybee even libc but i'm not shure about that) all latest stable version, no improvements - when it runs it runs like hell, but after few days it starts to eat memory again.
Issue 2 - strange CPU load
after few days of flawless work, when it starts to eat memory it starts increase load, BUT in period of 08-20h load increases up to 100 and then suddenly drops to 1-2... and then in next morning it starts to rise again
only thing that comes to my mind is that ether:
- some computer is infected wit some virus, so in work hours it kills my machine - but ther is nothing weird in netstat
- doe tho lousy MPLS routing server is getting bunch of timeouts in work hours when we have large amounts of traffic, so the poll queue get larger and larger (cron runs every five minutes)
-everything is messed up - i need to reinstall everything (I'll rather shoot my self in the foot )
so what i'm asking here is HOW to gather data on what exactly is happening on that server, I'm quite experienced in writing shell scripts so it would not be a problem for me to write some custom scripts to analyze traffic, ports, (using iptraf) i just need someone to tell me WHAT and WHERE to look.
P.S. 1
Almost Everything on server is compiled by me, in order to get maximum from hardware. No RPM's
P.S. 2 PHP and Mysql are already well tuned and optimized - query cache works, APC is installed, for first 10 or so days it can handle A LOT of load without a problem.
View 1 Replies
ADVERTISEMENT
Feb 6, 2007
Anyone knows how to fix memory leaks?
View 4 Replies
View Related
Apr 25, 2007
In my /tmp folder I found a file bind.tar.gz and an unpacked directory called bind which contains a bot script.
I've tried figuring out where it came from, but after scanning some logs I didn't find the source.... Could anyone tell me what steps to take to find how it got there and from what user, so I can have them close the leak?
View 11 Replies
View Related
Jun 12, 2009
I have a VPS. And have had an issue both when it was 1Gig and now I recently downgraded it to 768m, because I am moving some sites to a dedicated.
However, the part I am having trouble grasping is that when I look at graphs from Munin, it will typically always show 200-400MB free memory (and free -m and top agrees with munin), but Munin shows 'committed' memory that is above the total Ram on the VPS and once the 'committed' ram exceeds the VPS limit, processes start failing.
So, why is 'committed' memory exceeding the RAM on my VPS, when Munin, free -m and top all show there is free memory available?
Code:
root@server [~]# free -m
total used free shared buffers cached
Mem: 768 449 318 0 0 0
-/+ buffers/cache: 449 318
Swap: 0 0 0
Here's a graph that munin produces that shows the 'committed' memory exceeding the total memory.
[url]
View 3 Replies
View Related
Sep 27, 2009
We have an IBM X336 with dual Xeon 3.4s. This machine natively takes PC2-3200-ECC-Unbuffered - 240-Pin DDR2 SDRAM.
Has anyone had any experience with ECC ran on if it will clock down?
For instance can I install PC2-5300 same memory type (240-Pin DDR2 SDRAM) will it work? (I would test it but I dont have any ).
I know it works in desktops but never have had a reason to do it in servers.
[For whatever reason the PC2-3200 is more expensive than the PC2-5300.]
View 2 Replies
View Related
Apr 8, 2009
I've run into an issue lately with a few servers that I support and I'm curious if anyone has any suggestions on how to approach the issue?
Scenario:
The server will stop responding to new network connections, I can ping it, but nothing more. When the DC looks at the server, they find the error " Out of Memory " on the console.
What is a good approach to troubleshooting these?
Here is what I do, if I'm off base, I'm here to learn and will read
find / -name "core.*" -ls | egrep core.[0-9]
**try and find software failure
df -h
**validate disk usage
** check /var/log/messages /var/log/dmesg
If I can't find anything obvious in those places, I start digging through the access_logs and error_log to try and find a giant influx of requests that could have hit the server too quickly to process thus filling the memory up.
In this case, I adjust the rlimits.
*shrug* This is not fixing the issue on a few servers and I'm curious how other people approach this problem? Could this be hardware?
View 2 Replies
View Related
Jun 10, 2009
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........
View 4 Replies
View Related
Jun 15, 2009
Is that much - 32 GB Premium Server Memory?
Simplehelix.com offers that in their plans and I wonder if it's enough for high-intensive web sites.
View 7 Replies
View Related
May 28, 2008
I have a server and run Cpanel for my company. On my panel where it shows how much resources i use. It shows i am using.
40.0% Memory
Is there a way i can extend that to around 60%, so it will be faster. (it still is fast, just to go that extra level)
View 9 Replies
View Related
Sep 9, 2008
Server Load 3.03 (2 cpus)
Memory Used 89.5 %
saw then from cPanel, Service Status
how to spot what caused this problem from cPanel?
View 8 Replies
View Related
Mar 6, 2007
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
View 3 Replies
View Related
May 29, 2007
We have a HP Proliant DL 360 Server, it was running with 2gb RAM, this consisted of 4 x 512mb sticks. We upgraded by adding another 4gb, this was 2 x 2gb sticks, so we removed 2 of the 512mb sticks and replaced with 2 x 2gb stickes, effectively giving us 5gb of RAM. When I rebooted the machine at the server centre it immediately displayed 5 gb of RAM as it run thru boot up, it then displayed a screen saying it had found the RAM (it looked like a BIOS type, although I'm no expert) I think if my memory serves me right it then confirmed the memory was OK and continued booting into Windows 2003. However when we viewed the maching remotely it is only showing 4gb of RAM. Does anyone have any idea why this might be? where would are missing RAM be? I guess its the 2 x 512 not displaying. Its awkward to access the server easily, it means making an appointment etc, I wondered if there is anything we can do remotely to configure the RAM.
View 1 Replies
View Related
Oct 26, 2007
I'm running a Fedora box and am getting these kinds of messages in /var/log/messages:
Oct 26 13:41:20 tx kernel: Unable to handle kernel NULL pointer dereference at virtual address 0000000c
I have a feeling this is a memory error and am looking for a way to confirm this.
I found a package called memtest86+ (via yum) but have never used it. Have any of you used this program in the past and if so what are the steps? Does the server have to be shut down? Are there other programs out there to accomplish what I am trying to do?
View 2 Replies
View Related
Oct 27, 2007
today i was asked if my server support ruby on the rail. The person said that the rail needs at least 256Mb of free RAM to run it. Is it true?
I checked my server memory by using TOP command and saw that it has less than 10MB of free RAM. My question: Where does it go? I got only 30 sites running and mostly are static site and No proxy.
what eats up memory? What ways can i use to free up my memory?
View 10 Replies
View Related
Oct 7, 2007
I've recently purchased a new dedicated box and am noticing via phpsyinfo that memory is pretty much always around 87% (It was at 97% used today for a good hour and quite often its at 90+%)
This system has a 1GB of ram, and runs DirectAdmin. There are only 4 sites on the server and none of them are busy sites currently.
I've read around and studied a few of the threads here on WHT regarding high memory usage but I am at abit of a loss on the cause here and what I can do.
I found a few commands to run to help try and establish the cause - After running ps aux I noticed:
Quote:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
apache 28612 0.1 2.8 68940 29276 ? SN 19:44 0:11 /usr/sbin/httpd
apache 28613 0.0 3.0 69636 31408 ? SN 19:44 0:10 /usr/sbin/httpd
apache 28614 0.1 2.7 67220 28276 ? SN 19:44 0:11 /usr/sbin/httpd
apache 28615 0.0 2.6 67268 26800 ? SN 19:44 0:08 /usr/sbin/httpd
apache 28616 0.0 3.1 68784 31744 ? SN 19:44 0:11 /usr/sbin/httpd
apache 28617 0.0 2.9 67508 29888 ? SN 19:44 0:10 /usr/sbin/httpd
apache 28618 0.0 2.7 68344 28236 ? SN 19:44 0:10 /usr/sbin/httpd
apache 28619 0.1 3.0 68776 31568 ? SN 19:44 0:12 /usr/sbin/httpd
apache 28620 0.1 2.3 65544 23768 ? SN 19:44 0:11 /usr/sbin/httpd
apache 28621 0.0 2.9 67712 29704 ? SN 19:44 0:10 /usr/sbin/httpd
apache 28622 0.0 2.7 65392 28232 ? SN 19:44 0:10 /usr/sbin/httpd
apache 28623 0.0 2.6 63888 27508 ? SN 19:44 0:10 /usr/sbin/httpd
apache 28624 0.0 2.8 69416 29288 ? SN 19:44 0:10 /usr/sbin/httpd
apache 28625 0.0 2.7 67720 27908 ? SN 19:44 0:09 /usr/sbin/httpd
apache 28626 0.0 2.3 63736 24036 ? SN 19:44 0:09 /usr/sbin/httpd
apache 28627 0.0 2.8 68388 29316 ? SN 19:44 0:10 /usr/sbin/httpd
apache 28628 0.0 2.7 66820 27704 ? SN 19:44 0:08 /usr/sbin/httpd
apache 28629 0.0 2.8 68916 28688 ? SN 19:44 0:10 /usr/sbin/httpd
apache 28630 0.0 2.1 64332 22272 ? SN 19:44 0:09 /usr/sbin/httpd
apache 28631 0.0 2.7 66696 27756 ? SN 19:44 0:10 /usr/sbin/httpd
I ran it again shortly after and:
Quote:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28612 0.1 2.8 68940 29276 ? SN 19:44 0:12 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28613 0.0 3.0 69636 31452 ? SN 19:44 0:10 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28614 0.1 2.7 67220 28276 ? SN 19:44 0:12 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28615 0.0 2.6 67268 26800 ? SN 19:44 0:09 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28616 0.0 3.1 68784 31744 ? SN 19:44 0:11 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28617 0.0 2.9 67508 29888 ? SN 19:44 0:11 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28618 0.0 2.7 68344 28236 ? SN 19:44 0:11 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28619 0.1 3.0 68776 31584 ? SN 19:44 0:12 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28620 0.0 2.3 65544 23768 ? SN 19:44 0:11 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28621 0.0 2.9 67712 30176 ? SN 19:44 0:11 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28622 0.0 2.7 65392 28232 ? SN 19:44 0:10 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28623 0.0 2.6 63888 27508 ? SN 19:44 0:11 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28624 0.0 2.8 69416 29288 ? SN 19:44 0:10 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28625 0.0 2.7 67720 27908 ? SN 19:44 0:10 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28626 0.0 2.3 63888 24040 ? SN 19:44 0:10 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28627 0.0 2.8 68388 29316 ? SN 19:44 0:10 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28628 0.0 2.7 67056 27808 ? SN 19:44 0:08 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28629 0.0 2.8 68916 29072 ? SN 19:44 0:11 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28630 0.0 2.1 64332 22352 ? SN 19:44 0:10 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
apache 28631 0.0 2.7 66696 27756 ? SN 19:44 0:11 /usr/sbin/httpd -DHAVE_LOG_REFERER -DHAVE_EVASIVE -DHAVE_INFO -DHAVE_DIR -DHAVE_CERN_META -D
nobody 31350 0.0 0.1 8204 1316 ? Ss 17:42 0:00 /usr/local/directadmin/directadmin d
mail 31385 0.0 0.1 8332 1056 ? Ss 17:42 0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
root 31619 0.0 0.0 2668 860 ? Ss Oct06 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
named 31659 0.0 0.3 37152 3308 ? Ssl Oct06 0:01 named -u named
root 32179 0.0 0.0 2008 200 ? S 20:06 0:00 vm-pop3d -d 10 -t 600
ps aux | awk '{print $4" "$11}' | sort | uniq -c | awk '{print $2" "$1" "$3}' | sort -nr
Quote:
5.5 1 /usr/local/sbin/clamd
3.1 1 /usr/sbin/httpd
3.0 2 /usr/sbin/httpd
2.9 2 /usr/sbin/httpd
2.8 4 /usr/sbin/httpd
2.7 6 /usr/sbin/httpd
2.6 2 /usr/sbin/httpd
2.3 2 /usr/sbin/httpd
2.1 1 /usr/sbin/httpd
2.0 1 /usr/bin/python
1.6 10 /usr/sbin/mysqld
1.5 1 /usr/sbin/httpd
0.8 1 /usr/sbin/restorecond
0.3 1 python
0.3 1 named
0.3 1 hald
0.2 1 sshd:
0.2 1 ssh
0.2 1 cupsd
0.1 3 -bash
0.1 1 /usr/sbin/exim
0.1 1 /usr/local/directadmin/directadmin
0.1 1 /usr/local/bin/freshclam
0.1 1 su
0.1 1 sshd:
0.1 1 SCREEN
0.1 1 /sbin/udevd
0.1 1 pcscd
0.1 1 login
0.1 1 hald-runner
0.1 1 dbus-daemon
0.1 1 crond
0.1 1 /bin/sh
0.1 1 /bin/bash
0.1 1 avahi-daemon:
0.1 1 automount
%MEM 1 COMMAND
0.0 5 /usr/local/directadmin/directadmin
0.0 5 /sbin/mingetty
0.0 2 [pdflush]
0.0 2 [kjournald]
0.0 2 awk
0.0 1 xinetd
0.0 1 [watchdog/0]
0.0 1 /usr/sbin/sshd
0.0 1 /usr/sbin/smartd
0.0 1 /usr/sbin/sdpd
0.0 1 /usr/sbin/hcid
0.0 1 /usr/sbin/atd
0.0 1 /usr/sbin/acpid
0.0 1 /usr/local/directadmin/da-popb4smtp
0.0 1 /usr/bin/hidd
0.0 1 uniq
0.0 1 syslogd
0.0 1 sort
0.0 1 [scsi_eh_1]
0.0 1 [scsi_eh_0]
0.0 1 rpc.statd
0.0 1 rpc.idmapd
0.0 1 ps
0.0 1 proftpd:
0.0 1 portmap
0.0 1 [migration/0]
0.0 1 mcstransd
0.0 1 [kthread]
0.0 1 [kswapd0]
0.0 1 [ksoftirqd/0]
0.0 1 [ksnapd]
0.0 1 [kseriod]
0.0 1 [krfcommd]
0.0 1 [kpsmoused]
0.0 1 [kmirrord]
0.0 1 klogd
0.0 1 [khubd]
0.0 1 [khelper]
0.0 1 [kedac]
0.0 1 [kblockd/0]
0.0 1 [kauditd]
0.0 1 [kacpid]
0.0 1 init
0.0 1 [hda_codec]
0.0 1 hald-addon-keyboard:
0.0 1 hald-addon-acpi:
0.0 1 gpm
0.0 1 [events/0]
0.0 1 [cqueue/0]
0.0 1 -bash
0.0 1 avahi-daemon:
0.0 1 auditd
0.0 1 [ata_aux]
0.0 1 [ata/0]
0.0 1 [aio/0]
0.0 11 vm-pop3d
Top
Quote:
584 root 25 0 72048 58m 884 S 63.5 5.9 0:12.48 clamd
1 root 15 0 2036 604 516 S 0.0 0.1 0:00.92 init
2 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
4 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
5 root 10 -5 0 0 0 S 0.0 0.0 0:00.03 events/0
6 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khelper
7 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
10 root 10 -5 0 0 0 S 0.0 0.0 0:00.03 kblockd/0
11 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid
132 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/0
135 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
137 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
201 root 15 0 0 0 0 S 0.0 0.0 0:01.24 pdflush
202 root 10 -5 0 0 0 S 0.0 0.0 0:05.33 kswapd0
203 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
353 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kpsmoused
376 root 16 -5 0 0 0 S 0.0 0.0 0:00.00 ata/0
377 root 16 -5 0 0 0 S 0.0 0.0 0:00.00 ata_aux
380 root 14 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
381 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
388 root 13 -5 0 0 0 S 0.0 0.0 0:00.00 kmirrord
393 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ksnapd
396 root 10 -5 0 0 0 S 0.0 0.0 0:05.28 kjournald
408 root 23 0 2008 200 96 S 0.0 0.0 0:00.00 vm-pop3d
428 root 10 -5 0 0 0 S 0.0 0.0 0:00.12 kauditd
462 root 15 -4 2660 1128 368 S 0.0 0.1 0:00.50 udevd
582 clamav 27 12 2848 1256 972 S 0.0 0.1 0:00.15 freshclam
713 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kedac
1146 root 18 0 2008 200 96 S 0.0 0.0 0:00.00 vm-pop3d
1182 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 hda_codec
1329 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kjournald
1846 root 15 0 2008 200 96 S 0.0 0.0 0:00.00 vm-pop3d
2051 root 17 0 9716 8356 564 S 0.0 0.8 0:00.03 restorecond
2067 root 12 -3 12084 696 484 S 0.0 0.1 0:06.37 auditd
2069 root 12 -3 9500 3844 2228 S 0.0 0.4 0:03.61 python
2087 root 16 0 1692 592 496 S 0.0 0.1 0:00.60 syslogd
2090 root 15 0 1640 400 332 S 0.0 0.0 0:00.00 klogd
2126 root 15 0 2128 500 392 S 0.0 0.0 0:06.19 mcstransd
2148 rpc 24 0 1776 552 456 S 0.0 0.1 0:00.00 portmap
2173 root 25 0 1784 724 624 S 0.0 0.1 0:00.00 rpc.statd
2214 root 15 0 4936 560 280 S 0.0 0.1 0:00.00 rpc.idmapd
2241 dbus 25 0 12948 1172 896 S 0.0 0.1 0:00.00 dbus-daemon
2257 root 25 0 2120 756 652 S 0.0 0.1 0:00.00 hcid
2263 root 25 0 1712 504 432 S 0.0 0.0 0:00.00 sdpd
2283 root 9 -10 0 0 0 S 0.0 0.0 0:00.00 krfcommd
2330 root 25 0 12692 1312 588 S 0.0 0.1 0:00.07 pcscd
2353 root 25 0 1880 452 368 S 0.0 0.0 0:00.00 hidd
2372 root 25 0 11384 1112 860 S 0.0 0.1 0:00.00 automount
2395 root 18 0 1640 532 448 S 0.0 0.1 0:00.00 acpid
2410 root 15 0 9604 2064 1456 S 0.0 0.2 0:00.01 cupsd
2518 root 21 0 1868 472 392 S 0.0 0.0 0:00.24 gpm
2533 root 20 0 5224 1188 644 S 0.0 0.1 0:02.45 crond
I don't really understand the results above, I can obviously see the ps aux shows some high percentage of memory used by some processes -
View 4 Replies
View Related
Jul 16, 2009
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?
View 11 Replies
View Related
Jan 25, 2007
I have a server that I have had for a little while now that was runnning perfectly fine. All of the sudden it started just using up a ton of the memory and started using up swap. This has caused the server to slow down and e-mail to stop working. I would upgrade to more memory but I suspect it is someone on the server doing something they shouldn't be. My only reasoning for this is due to the fact that this problem just suddenly arised. I cannot for the life of me determine where this ram usage is coming from.
Here are a few of the errors I have recently got just while logging in..
RIGHT after logging in...
id: cannot find name for group ID 0
id: cannot find name for user ID 0
[root@www root]# top
top: Unknown terminal "xterm" in $TERM
[root@www root]# killall -9 spamd
bash: /usr/bin/killall: Too many open files in system
I have added 2 screen shots as well. First one (top1) is what happens once I can get the command "top" to actually run (normally takes quite a few tries). Second attachement (top2) is after I sorted by mem usage...
View 4 Replies
View Related
Dec 4, 2008
I have a VPS , I recently upgraded because the server kept crashing due to lack of memory. I actually upgraded about two hours ago and the damn thing crashed again!
I went into virtuozzo and it said I had 12 mb of memory left.
So I restarted the container, the site loads faster than ever, and says I have 16% of memory left
So when I restart the container it resets?
View 10 Replies
View Related
Nov 29, 2007
My server is hosted within a Virtuozzo VPS Server, and it runs very slow. Sometimes, when I type commands via shell, it takes 1-2 seconds to be echoed.
I've just checked free memory ('free -m') and it seems to be ok:
Code:
free -m
total used free shared buffers cached
Mem: 8104 7642 461 0 220 3979
-/+ buffers/cache: 3443 4661
Swap: 4094 0 4094
If I check "ps -ef" I don't see any weird process and with "top" the most memory-wasting process is 'mysqld' (0.8%).
Which extra parameters might I check?
View 4 Replies
View Related
Jun 16, 2009
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?
View 3 Replies
View Related
Dec 3, 2007
My RAM is 2G.
The cache memory of my server is eating, After 2 weeks, the cache memory is below 1G, then the server crashed.
After I reboot the machine, the cache memory back to normal. But it starts to eating again.
I have attached the graph.
I am using lighttpd, php, mysql
View 5 Replies
View Related
Jan 6, 2007
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
# top:
Code:
top - 10:42:19 up 10:35, 1 user, load average: 22.95, 10.67, 9.79
Tasks: 318 total, 1 running, 317 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.7% us, 1.3% sy, 0.0% ni, 0.0% id, 61.9% wa, 36.1% hi, 0.0% si
Mem: 2009652k total, 1220736k used, 788916k free, 28756k buffers
Swap: 6224564k total, 135212k used, 6089352k free, 389768k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6365 root 0 -20 0 0 0 D 40 0.0 3:01.33 loop0
4553 root 16 0 3112 1108 760 R 1 0.1 0:00.30 top
327 root 15 0 0 0 0 S 0 0.0 6:33.15 kjournald
3743 nobody 15 0 18592 7260 2320 S 0 0.4 0:00.21 httpd
3833 nobody 15 0 21664 10m 2780 D 0 0.5 0:00.94 httpd
3838 nobody 15 0 20472 9400 2664 S 0 0.5 0:00.18 httpd
3858 nobody 15 0 18876 7616 2388 S 0 0.4 0:00.82 httpd
3919 nobody 16 0 21492 10m 2432 D 0 0.5 0:00.82 httpd
3931 nobody 15 0 18976 8016 2716 D 0 0.4 0:00.45 httpd
4439 nobody 15 0 18892 7612 2368 S 0 0.4 0:00.16 httpd
4913 root 18 0 2512 292 244 D 0 0.0 0:00.24 sync
1 root 16 0 2484 488 456 S 0 0.0 0:06.16 init
2 root RT 0 0 0 0 S 0 0.0 0:00.11 migration/0
3 root 34 19 0 0 0 S 0 0.0 0:06.66 ksoftirqd/0
4 root RT 0 0 0 0 S 0 0.0 0:00.16 migration/1
5 root 34 19 0 0 0 S 0 0.0 0:00.71 ksoftirqd/1
6 root 5 -10 0 0 0 S 0 0.0 0:14.59 events/0
7 root 5 -10 0 0 0 S 0 0.0 0:42.07 events/1
this looks suspisous to me:
6365 root 0 -20 0 0 0 D 40 0.0 3:01.33 loop0
as it's taking alot of memory. i don't see this before.
View 6 Replies
View Related
Jul 2, 2007
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
my.cnf
[mysqld]
safe-show-database
skip-innodb
max_connections = 500
key_buffer = 80M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1800
thread_cache_size = 384
wait_timeout = 25
connect_timeout = 10
tmp_table_size = 128M
max_heap_table_size = 128M
max_allowed_packet = 64M
max_connect_errors = 10
read_rnd_buffer_size = 524288
bulk_insert_buffer_size = 8M
query_cache_limit = 4M
query_cache_size = 96M
query_cache_type = 1
query_prealloc_size = 16384
query_alloc_block_size = 32768
ft_min_word_len=3
ft_max_word_len=25
[mysqld_safe]
open_files_limit = 8192
[mysqldump]
quick
max_allowed_packet = 16M
[myisamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M
ft_min_word_len=3
ft_max_word_len=25
[mysqlhotcopy]
interactive-timeout
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%
__ Questions __________________________________________________ _________
Total 63.26k 26.9/s
Slow 2 0.0/s %Total: 0.00 %DMS: 0.01
DMS 32.14k 13.7/s 50.80
__ Table Locks __________________________________________________ _______
Waited 40 0.0/s %Total: 0.08
Immediate 50.58k 21.5/s
__ 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:
View 4 Replies
View Related
Nov 19, 2007
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.
View 5 Replies
View Related
Mar 26, 2015
Why servers are being run out of memory by the 'sort' command even when the logs are small? Here's what is currently on a site:
-rw-r--r-- 2 root root 22392143 Mar 26 11:40 access_log
-rw-r--r-- 2 root root 68018869 Mar 26 10:50 access_log.processed.1
-rw-r--r-- 3 root root 67671664 Mar 26 09:50 access_log.processed.2
-rw-r--r-- 1 root root 69908 Mar 26 10:50 access_log.stat
[Code] .....
View 1 Replies
View Related
May 12, 2015
it's starting to kill child processes and eventually stops/hangs.
#plesk version
Product version: 12.0.18 Update #45
Update date: 2015/05/08 03:13
Build date: 2015/01/26 15:00
Build target: CentOS 7
Revision: 334346
Architecture: 64-bit
Wrapper version: 1.2
#free -m
total used free shared buff/cache available
Mem: 3782 647 2281 45 854 2875
Swap: 2047 0 2047
View 1 Replies
View Related
Jun 17, 2008
I recently moved my site from a shared hosting plan at $5 a month to a VPS at JaguarPC. I took advantage of one of the offers here at Web Host Talk. My setup has cPanel with 320MB of RAM. I have another site running the same software (Joomla, vBulletin) with cPanel and only 256MB of RAM at KnownHost.
I've had zero problems with Knownhost and the site is snappy. The site hosted at JaguarPC continues to have all kinds of problems. Running a number of sites, I don't always get to check in on my sites unless I know of a problem. I'm sorry I didn't pay more attention to this site, because it was having all types of PHP memory issues. When I first contacted JaguarPC, they said they boosted the memory in Apache. The issues remained, so I contacted them again. They recommended more RAM. Now, I checked on my KnownHost site and that's running on 256MB. I figured that maybe JaguarPC didn't allocate enough RAM when they set up the VPS. They confirmed 320MB. Not wanting to change hosts, I asked them to poke around a bit more, considering what I know about KnownHost and my success there.
I received this response:
have checked and you are running named service on your server. named caches dns data and this can also consume a lot of memory, sometimes over a 100 MB may be consumed by this service.
In addition to cPanel and named which are most memory consuming applications running on your server, there are other applications like apache web server and the php scripts running on the server also consume some memory.
It is highly recommended that you upgrade the RAM on your VPS significantly to avoid such problems which may cause disruption of service. You can find a list of RAM and other VPS addons in the following link.
Instead of helping me resolve the problem, they simply keep asking me to get more RAM.
For SEO purposes, I like to keep my sites on different hosts. Can anyone recommend a VPS?
I was certainly unaware that "named service" had such an impact on my VPS. If that's the case, is there any harm in not having this? SEO or otherwise?
View 14 Replies
View Related
Jun 22, 2015
PleskLog File
104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Mon Jun 22 15:33:11 2015] [error] [client 176.10.112.11] Premature end of script headers: import_cop.php
and Apache Log
[Mon Jun 22 11:06:57 2015] [error] server reached MaxClients setting, consider raising the MaxClients setting
[Mon Jun 22 15:46:17 2015] [error] (12)Cannot allocate memory: fork: Unable to fork new process
PHP Warning: Module 'zip' already loaded in Unknown on line 0
How can I fix this problem? The Script is 100% i/O because it has worked onder PHP 5.2 and its comp. whit 5.4.
View 12 Replies
View Related
Apr 4, 2009
I just ordered a server from serverbeach that should have come with 2 GB but I see that this one comes with 8 GB
Unfortunately, I seem to be missing 7 GB of ram.
Installed Physical Memory: 8 GB
Total Physical Memory: 1 GB
Windows 2008 Server Web 32-bit
Now, being a 32-bit system, I should see 3-4 GB of ram right?
Any idea why only 1 GB is available for the OS?
[url]
View 14 Replies
View Related