swap gone crazy on current and edge versions

mher

Well-Known Member
Jun 14, 2004
49
0
156
Hello,

I have updated my cpanel to the Current version cPanel 10.6.0-C15, the problem is that swap usage is increasing steadily on the server. On my other servers swap usage is 0.9%. on this server it's 7.26% and increasing. server load and memory usage is normal.

I tried downgrading cpanel back to stable. when doing that swap is back to normal 0.9%. but now i get http.conf fatal error mentioned here http://forums.cpanel.net/showthread.php?t=41205&highlight=fatal

I am trapped now.
Any help is welcomed. Thanks.
 
Last edited:

neutro

Well-Known Member
Apr 11, 2004
70
1
158
It happened to me (2 boxes) swapping reached all time high.. the boxes have been up for 71 days.. I rebooted both and now everything is back to normal even cpbackup finished faster today. Cpanel loads faster now.
 

snet

Active Member
May 16, 2004
25
0
151
UK
Yes, this happened to all of my boxes on the latest release. The swap usage went up to 27% even though the RAM usage was only at 45%! Downgrading to stable fixed this problem.
 

customtacos

Member
Aug 19, 2005
7
0
151
I'm running WHM 10.6.0 RELEASE 16 and my swap tends to do this, too. It's up to 25% now. Should I be concerned?
 

@home

Well-Known Member
Nov 5, 2003
121
2
168
cPanel Access Level
Root Administrator
I got the same problem on two servers.

WHM 10.6.0 cPanel 10.6.0-R55
RedHat Enterprise 3

Any news one this????

EDIT : This is happening on release, current and edge.
A quick solution would be welcome.
 
Last edited:

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,450
31
473
Go on, have a guess
Impossible to say, really. You need to login to shell and use the usual tools to track down what is consuming memory and better tune the server.
 

Curious Too

Well-Known Member
Aug 31, 2001
431
1
318
cPanel Access Level
Root Administrator
chirpy said:
Impossible to say, really. You need to login to shell and use the usual tools to track down what is consuming memory and better tune the server.
The swap issue is related to some recent change in cPanel. How do we "fine tune" for that?
 

linux-image

Well-Known Member
Jun 8, 2004
1,191
1
168
India
cPanel Access Level
Root Administrator
for any issue the cause has to be identified to trigger the cure. As Chirpy has said, u will need to check exactly what is happening and then apply the respective solution.
 

snet

Active Member
May 16, 2004
25
0
151
UK
There is definitely something wrong with the new version of cPanel... all of my servers that were running it were having this problem. The swap usage would go up to 100% and the memory usage would stay at 30% - I downgraded them all and the swap usage instantly went down to 0.1%. :rolleyes:

Does anyone have a fix for this?
 

BenThomas

Well-Known Member
Feb 12, 2004
598
0
166
Houston, Texas USA
cPanel Access Level
Root Administrator
There is absolutely no reason that I can imagine that swap utilization would increase as much as stated here, while free memory exists on the system.

Obviously, we're not experiencing this problem on our test and production servers or this kind of problem wouldn't make it this far in the builds. We will definately need some more information on this issue before anything can be done about it. Has anyone opened a ticket yet? Considering that this thread was started days ago, you'd think someone would have already opened one. This is what our "hack it till you break it" server reports:

[email protected] [~]# free -m
total used free shared buffers cached
Mem: 501 484 17 0 80 188
-/+ buffers/cache: 215 286
Swap: 1019 128 891
[email protected] [~]# /usr/local/cpanel/cpanel -V
10.6.0-EDGE_128
[email protected] [~]# cat /etc/redhat-release
Red Hat Linux release 9 (Shrike)
[email protected] [~]# uname -a
Linux xxxxx.cpanel.net 2.4.20-42.9.legacy #1 Sun Feb 20 14:31:58 EST 2005 i686 athlon i386 GNU/Linux


Nothing unusual there.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,450
31
473
Go on, have a guess
I see many servers daily and haven't seen one that has had a swap problem either. As ben says, if you have reason to believe it is cPanel, then you should be logging it. Otherwise, it is normal server admin to determine the cause of excessive page swapping (you should not be relying on the simplistic WHM reports) and as I said, if you don't know how to do that, you'll either have to learn or hire a server admin to look at your server configuration for you. They can then tell you where the problem lies and if the major issue is indeed the cPanel binaries, but I don't see it myself. IF you want to learn, a good place to start is http://www.tldp.org
 
C

cPanelBilly

Guest
Here is another server I have accounts on for testing, cant replicate the issue here either

Code:
[email protected] [~]# free -m
             total       used       free     shared    buffers     cached
Mem:           503        454         49          0         12        186
-/+ buffers/cache:        255        248
Swap:         1023          0       1023
[email protected] [~]# /usr/local/cpanel/cpanel -V
10.6.0-EDGE_131
[email protected] [~]# cat /etc/redhat-release
CentOS release 4.1 (Final)
[email protected] [~]# uname -a
Linux houston0.xxxxxxxx 2.6.9-11.EL #1 Wed Jun 8 16:59:52 CDT 2005 i686 athlon i386 GNU/Linux
 

Coight

Registered
Jan 24, 2005
3
0
151
Also having this problem, also getting a "cpanel" process hanging was using 100% of the cpu on 5 processes this morning. Latest current here