Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Redhat / Fedora Linux Help > Config Help! Swap File Maxed

Forgot Password?
 Redhat / Fedora Linux Help   Help and discussion related to Redhat and Fedora Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 11-30-2005   #1 (permalink)
Just Joined!
 
Join Date: Nov 2005
Posts: 14
Config Help! Swap File Maxed

Hi,

First let me say I am somewhat a newbie and apprecaite any help you can be.

My server sometimes slows way down and I check the cpanel and the swap is maxed out, how to I make it bigger or fix this?

here is the cpanel screenshot.

http://www.trackpads.com/temp/SP32-20051130-191419.jpg

Thanks in advance for any help,

-Jason
trackpads is offline  


Reply With Quote
Old 11-30-2005   #2 (permalink)
Linux User
 
Stefann's Avatar
 
Join Date: Nov 2004
Location: Boise, ID
Posts: 340
Send a message via ICQ to Stefann Send a message via AIM to Stefann Send a message via MSN to Stefann
Re: Config Help! Swap File Maxed

Quote:
Originally Posted by trackpads
Hi,

First let me say I am somewhat a newbie and apprecaite any help you can be.

My server sometimes slows way down and I check the cpanel and the swap is maxed out, how to I make it bigger or fix this?

here is the cpanel screenshot.

http://www.trackpads.com/temp/SP32-20051130-191419.jpg

Thanks in advance for any help,

-Jason
First of all, how much RAM do you have, and what is the size of your swap partition.
__________________
Nothing is worse than ten penguins fighting over which is better, vi or emacs.
Registered Linux User #404402
Finally I'm back on LF after a long while.
Stefann is offline   Reply With Quote
Old 11-30-2005   #3 (permalink)
Just Joined!
 
Join Date: Nov 2005
Posts: 14
Which partition is the swap file? Is it the tmp one?

I am sure I have 1gb of ram, dual xeon.

Thanks again!!

-Jason
trackpads is offline   Reply With Quote
Old 11-30-2005   #4 (permalink)
Just Joined!
 
Join Date: Nov 2005
Posts: 14
trackpads is offline   Reply With Quote
Old 11-30-2005   #5 (permalink)
Linux User
 
Stefann's Avatar
 
Join Date: Nov 2004
Location: Boise, ID
Posts: 340
Send a message via ICQ to Stefann Send a message via AIM to Stefann Send a message via MSN to Stefann
No, swap partitions are not actually mounted, tmp is just temporary storage like the Windows TEMP directroy, your swap partition is like the Windows pagfile, a place to store stuff that can't fit into RAM but will be swapped to and from ram as needed, not exactly and acurate description but you can look it up, you can check the size using fdisk -l /dev/sda. I am getting /dev/sda as it looks like all of your partitions are on it so I'm guessing so is your swap. Paste the listing fdisk gives you in code tags so I can look at it.
__________________
Nothing is worse than ten penguins fighting over which is better, vi or emacs.
Registered Linux User #404402
Finally I'm back on LF after a long while.
Stefann is offline   Reply With Quote
Old 11-30-2005   #6 (permalink)
Just Joined!
 
Join Date: Nov 2005
Posts: 14
trackpads is offline   Reply With Quote
Old 11-30-2005   #7 (permalink)
Linux User
 
Stefann's Avatar
 
Join Date: Nov 2004
Location: Boise, ID
Posts: 340
Send a message via ICQ to Stefann Send a message via AIM to Stefann Send a message via MSN to Stefann
Not exactly accurate but it looks like the swap file is about 2GB in size, which is about twice your ram as it should be, I'm not sure why it's filling up so fast, what services do you run on your machine, a ps -aux listing would be nice, but please instead of taking a screen shot copy the text and put it in code tags, it makes our lives so much easier.
__________________
Nothing is worse than ten penguins fighting over which is better, vi or emacs.
Registered Linux User #404402
Finally I'm back on LF after a long while.
Stefann is offline   Reply With Quote
Old 11-30-2005   #8 (permalink)
Just Joined!
 
Join Date: Nov 2005
Posts: 14
I am sorry, I thought that would be easier, my apologies!!

Here is the ps aux:

Code:
root@cavalry [~]# ps -aux
USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  1528  120 ?        S    Sep30   1:07 init
root         2  0.0  0.0     0    0 ?        SW   Sep30   0:00 [migration/0]
root         3  0.0  0.0     0    0 ?        SW   Sep30   0:00 [migration/1]
root         4  0.0  0.0     0    0 ?        SW   Sep30   0:00 [migration/2]
root         5  0.0  0.0     0    0 ?        SW   Sep30   0:00 [migration/3]
root         6  0.0  0.0     0    0 ?        SW   Sep30   0:00 [keventd]
root         7  0.0  0.0     0    0 ?        SWN  Sep30   0:00 [ksoftirqd/0]
root         8  0.0  0.0     0    0 ?        SWN  Sep30   0:00 [ksoftirqd/1]
root         9  0.0  0.0     0    0 ?        SWN  Sep30   0:00 [ksoftirqd/2]
root        10  0.0  0.0     0    0 ?        SWN  Sep30   0:00 [ksoftirqd/3]
root        13  0.0  0.0     0    0 ?        SW   Sep30   0:00 [bdflush]
root        11  0.0  0.0     0    0 ?        SW   Sep30  24:20 [kswapd]
root        12  0.0  0.0     0    0 ?        SW   Sep30  20:48 [kscand]
root        14  0.0  0.0     0    0 ?        SW   Sep30   3:09 [kupdated]
root        15  0.0  0.0     0    0 ?        SW   Sep30   0:00 [mdrecoveryd]
root        21  0.0  0.0     0    0 ?        SW   Sep30   0:00 [scsi_eh_0]
root        25  0.0  0.0     0    0 ?        SW   Sep30   0:00 [scsi_eh_1]
root        26  0.0  0.0     0    0 ?        SW   Sep30   0:00 [scsi_eh_2]
root        29  0.0  0.0     0    0 ?        SW   Sep30   2:41 [kjournald]
root        84  0.0  0.0     0    0 ?        SW   Sep30   0:00 [khubd]
root       561  0.0  0.0     0    0 ?        SW   Sep30   0:00 [kjournald]
root       562  0.0  0.0     0    0 ?        SW   Sep30   6:23 [kjournald]
root       563  0.0  0.0     0    0 ?        SW   Sep30   0:26 [kjournald]
root       564  0.0  0.0     0    0 ?        SW   Sep30   6:21 [kjournald]
root       565  0.0  0.0     0    0 ?        SW   Sep30   9:40 [kjournald]
root      3467  0.0  0.0  1596  280 ?        S    Sep30   1:08 syslogd -m 0
root      3471  0.0  0.0  1540  124 ?        S    Sep30   0:00 klogd -x
root      3482  0.0  0.0  1528  240 ?        S    Sep30   4:21 irqbalance
root      3492  0.0  0.0  1588  160 ?        S    Sep30   0:12 mdadm --monitor --scan -f
root      3581  0.0  0.0  3664  256 ?        S    Sep30   0:34 /usr/sbin/sshd
bin       3829  0.0  0.0  2008   88 ?        S    Sep30   0:01 /usr/sbin/cannaserver -syslog -u bin
root      3950  0.0  0.0  1624  316 ?        S    Sep30   0:11 crond
wnn       3966  0.0  0.0  5308   56 ?        S    Sep30   0:00 /usr/bin/jserver
root      4991  0.0  0.0  1676  192 ?        S    Sep30   0:00 /usr/sbin/portsentry -tcp
root      5210  0.0  0.0  1508   48 tty1     S    Sep30   0:00 /sbin/mingetty tty1
root      5211  0.0  0.0  1508   48 tty2     S    Sep30   0:00 /sbin/mingetty tty2
root      5212  0.0  0.0  1500   48 tty3     S    Sep30   0:00 /sbin/mingetty tty3
root      5213  0.0  0.0  1500   48 tty4     S    Sep30   0:00 /sbin/mingetty tty4
root      5214  0.0  0.0  1500   48 tty5     S    Sep30   0:00 /sbin/mingetty tty5
root      5215  0.0  0.0  1500   48 tty6     S    Sep30   0:00 /sbin/mingetty tty6
root      5216  0.0  0.0  1500   48 ttyS0    S    Sep30   0:00 /sbin/mingetty ttyS0 CON9600 vt102
root     24852  0.0  0.0  2140  212 ?        S    Oct05   0:03 xinetd -stayalive -pidfile /var/run/xinetd.pid
root      4191  0.0  0.1  9156 1216 ?        S    Oct07   0:26 chkservd
named    14389  0.0  0.1 71108 1808 ?        S    Oct23   1:44 /usr/sbin/named -u named
root     29970  0.0  0.0  6944  296 ?        S    Nov01   0:00 pure-ftpd (SERVER)
root     29974  0.0  0.0  6676  144 ?        S    Nov01   0:00 /usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/sbin/pureauth
root      2317  0.0  0.0  2172  168 ?        S    Nov03   0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/cavalry.bi
mysql     2341  0.0  1.8 56060 18456 ?       S    Nov03   1:29 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mys
mysql     2344  0.0  1.8 56060 18456 ?       S    Nov03   1:55 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mys
mysql     2345  0.0  1.8 56060 18456 ?       S    Nov03   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mys
mysql     2346  0.0  1.8 56060 18456 ?       S    Nov03   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mys
mysql     2347  0.0  1.8 56060 18456 ?       S    Nov03   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mys
mysql     2348  0.0  1.8 56060 18456 ?       S    Nov03   0:01 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mys
mysql     2349  0.0  1.8 56060 18456 ?       S    Nov03   3:51 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mys
mysql     2350  0.0  1.8 56060 18456 ?       S    Nov03   3:35 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mys
mysql     2351  0.0  1.8 56060 18456 ?       S    Nov03   0:04 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mys
mysql     2352  0.0  1.8 56060 18456 ?       S    Nov03   1:21 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mys
mailnull  2643  0.0  0.0  6636  304 ?        S    Nov03   0:02 /usr/sbin/exim -bd -q1h
mailnull  2648  0.0  0.0  6604  232 ?        S    Nov03   0:00 /usr/sbin/exim -tls-on-connect -bd -oX 465
root      2666  0.0  0.1 23896 1364 ?        S    Nov03   2:48 /usr/bin/spamd -d --allowed-ips=127.0.0.1 --pidfile=/var/run/spamd.pid --max-children=5
root      2687  0.0  0.0  2916  440 ?        S    Nov03   1:30 antirelayd
root      2759  0.0  0.0 10428  792 ?        S    Nov03   1:45 /usr/local/apache/bin/httpd -DSSL
root     12429  0.0  0.5 14168 5908 ?        SN   Nov07   2:41 cpanellogd - sleeping for logs
mailnull 12447  0.0  0.0  5532 1016 ?        S    Nov07   1:43 /usr/bin/perl /usr/local/cpanel/bin/eximstats
mysql    12448  0.0  1.8 56060 18456 ?       S    Nov07   0:29 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mys
mailman  12474  0.0  0.0  7156  252 ?        S    Nov07   0:00 /usr/bin/python /usr/local/cpanel/3rdparty/mailman/bin/mailmanctl -s start
mailman  12483  0.0  0.1  7188 1272 ?        S    Nov07   3:23 /usr/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
mailman  12485  0.0  0.1  7164 1224 ?        S    Nov07   3:36 /usr/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=BounceRunner:0:1 -
mailman  12489  0.0  0.1  7144 1172 ?        S    Nov07   3:18 /usr/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=CommandRunner:0:1
mailman  12490  0.0  0.1  7148 1220 ?        S    Nov07   3:16 /usr/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=IncomingRunner:0:1
mailman  12491  0.0  0.1  7268 1196 ?        S    Nov07   3:17 /usr/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
mailman  12492  0.0  0.1  7292 1268 ?        S    Nov07   3:33 /usr/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=OutgoingRunner:0:1
mailman  12493  0.0  0.1  7188 1136 ?        S    Nov07   3:22 /usr/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=VirginRunner:0:1 -
mailman  12494  0.0  0.0  7188  744 ?        S    Nov07   0:00 /usr/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=RetryRunner:0:1 -s
root     12495  0.0  0.0 10052  192 ?        S    Nov07   0:00 cppop - accepting on port 110
nobody   12498  0.0  0.0  1888  196 ?        S    Nov07   0:00 /usr/local/cpanel/bin/startmelange
nobody   12500  0.0  0.0  3812  376 ?        S    Nov07   0:00 entropychat
root     15844  0.0  0.1 25092 1284 ?        S    Nov13   0:16 spamd child
root      6808  0.0  0.1 26292 1312 ?        S    Nov15   1:18 spamd child
nobody   10204  0.5  1.3 22196 14244 ?       S    Nov27  24:48 /usr/local/apache/bin/httpd -DSSL
nobody   10205  0.5  1.3 22032 14084 ?       S    Nov27  25:40 /usr/local/apache/bin/httpd -DSSL
nobody   10206  0.5  1.4 22220 14388 ?       S    Nov27  27:31 /usr/local/apache/bin/httpd -DSSL
nobody   10207  0.5  1.4 23424 15012 ?       S    Nov27  25:46 /usr/local/apache/bin/httpd -DSSL
nobody   10208  0.5  1.6 24832 16900 ?       S    Nov27  26:49 /usr/local/apache/bin/httpd -DSSL
nobody   10210  0.5  1.4 1887192 14468 ?     S    Nov27  24:56 /usr/local/apache/bin/httpd -DSSL
nobody   10221  0.9  1.3 22044 14256 ?       S    Nov27  46:54 /usr/local/apache/bin/httpd -DSSL
nobody   10223  0.9  1.3 22244 14280 ?       S    Nov27  45:56 /usr/local/apache/bin/httpd -DSSL
nobody   10224  0.5  1.3 21812 13824 ?       S    Nov27  24:01 /usr/local/apache/bin/httpd -DSSL
nobody   10901  0.5  1.3 23880 13748 ?       S    Nov27  26:20 /usr/local/apache/bin/httpd -DSSL
cpanel   26813  0.0  0.0  3676  248 ?        S    00:03   0:00 /usr/bin/stunnel-4.04local /usr/local/cpanel/etc/stunnel/default/stunnel.conf.run
root     26835  0.0  0.1 11580 1620 ?        S    00:03   0:00 cpsrvd - waiting for connections
mysql     9553  0.0  1.8 56060 18456 ?       S    18:00   0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mys
trackpad 11303  0.0  0.0  7044  956 ?        S    18:28   0:00 pure-ftpd (IDLE)
root     11931  0.0  0.1  6884 1844 ?        S    18:35   0:00 sshd: root@pts/0
root     11934  0.0  0.1  5320 1332 pts/0    S    18:35   0:00 -bash
nobody   12236  0.2  1.1 19172 11676 ?       S    18:42   0:00 /usr/local/apache/bin/httpd -DSSL
nobody   12469  2.4  1.4 21948 14404 ?       S    18:45   0:03 /usr/local/apache/bin/httpd -DSSL
root     12601  0.0  0.0  2744  768 pts/0    R    18:48   0:00 ps -aux
root@cavalry [~]#
trackpads is offline   Reply With Quote
Old 11-30-2005   #9 (permalink)
Linux User
 
Stefann's Avatar
 
Join Date: Nov 2004
Location: Boise, ID
Posts: 340
Send a message via ICQ to Stefann Send a message via AIM to Stefann Send a message via MSN to Stefann
Code:
nobody   10210  0.5  1.4 1887192 14468 ?     S    Nov27  24:56 /usr/local/apache/bin/httpd -DSSL
Holy **** that instance of httpd is using 1GB+ of your swap space and about 14MB of free ram.
__________________
Nothing is worse than ten penguins fighting over which is better, vi or emacs.
Registered Linux User #404402
Finally I'm back on LF after a long while.
Stefann is offline   Reply With Quote
Old 11-30-2005   #10 (permalink)
Just Joined!
 
Join Date: Nov 2005
Posts: 14
Should I restart apache?
trackpads is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 11:54 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2