Linux server swap memory problem
Posted on 2008-10-08
I have a problem with my webserver. Basically as you will see my drive statistics displayed below, as well as the swap. Now I'm having a major problem with web traffic spikes a certain time of the day and the server goes into oblivion and Tomcat and Appache must be rebooted. I logged in and ran the top command a few times over a course of a few days and my physical memory is below 100MB and my swap memory says it has 2GB but it is always at 144KB. Now it also says that it is on /dev/cciss/c0d0p3 which if I run the df -h command the drive/partition doesn't appear to exist.
So I'm a little bit confused if they are partitions or individual drives, and if there is something else going on here. To explain a bit better I changed the director up to root, and then to /dev/cciss/ and then ran an LS command. It listed c0d0p1 through c0d0p7 but when I tried to change directory to any of them it reported that it was not a directory! What the heck!
Regardless my assumption here is that c0d0p3 doesn't exist and my swap memory is failing to be accessed which is why my web server is crashing! This is a huge problem, and I'm confused by my investigation. I'm not new to linux, but I'm a bit confused when looking at this through SSH. I do not have the ability to look at the system directly, so I can't physically get to the machine.
[root@server ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p6 989M 236M 703M 26% /
/dev/cciss/c0d0p1 99M 12M 83M 12% /boot
none 1.5G 0 1.5G 0% /dev/shm
/dev/cciss/c0d0p5 989M 18M 921M 2% /tmp
/dev/cciss/c0d0p2 2.9G 916M 1.9G 33% /usr
/dev/cciss/c0d0p7 127G 6.1G 115G 6% /var
[root@server ~]# swapon -s
Filename Type Size Used Priority
/dev/cciss/c0d0p3 partition 2032212 144 -1