ramindia

Well-Known Member
Apr 3, 2011
71
0
56
Hi My Swap Increased to 80%

free -m
total used free shared buffers cached
Mem: 7943 7753 189 0 206 2679
-/+ buffers/cache: 4867 3075
Swap: 2047 1648 398

free
total used free shared buffers cached
Mem: 8133716 7939384 194332 0 211344 2743820
-/+ buffers/cache: 4984220 3149496
Swap: 2096472 1688328 408144


what is the solution to clear or do i need to extend swap ?

any suggestions
 

ramindia

Well-Known Member
Apr 3, 2011
71
0
56
hey

i restarted apache, i see it solved let me know if that solution works for you
 

ramindia

Well-Known Member
Apr 3, 2011
71
0
56
Hi all

But after 2days i see again Swap Increasing, what the Permanent Solution for the same

any advice
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
If restarting Apache reduced your swap usage and available memory, then I would suggest looking into what is happening with Apache on the machine. You might start looking at your variables like MaxClients and ServerLimit, ensuring you have timeouts set for Apache, etc.

You might also want to see what sites show the highest activity for Apache in WHM > Server Status > Apache Status area.
 

ramindia

Well-Known Member
Apr 3, 2011
71
0
56
Hi below is the report

can you suggest me something to change


Apache in WHM > Server Status > Apache Status area.


Current Time: Friday, 22-Apr-2011 01:29:40 EDT
Restart Time: Thursday, 21-Apr-2011 05:04:18 EDT
Parent Server Generation: 11
Server uptime: 20 hours 25 minutes 22 seconds
Total accesses: 1102682 - Total Traffic: 10.7 GB
CPU Usage: u2167.37 s659.51 cu0 cs0 - 3.84% CPU load
15 requests/sec - 152.9 kB/second - 10.2 kB/request
49 requests currently being processed, 23 idle workers
K..K.WGK__GC.CG_KKRWGKW._C__G.G_._KKW_KWKGWK.__.KGC._K.K._.W_GKK
.K___.___KG._CCC_W.KWK_.........G...G...........................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................

Max Client =512
ServerLimit =512

Timeout=30
i5 with 8GB Ram Cpanel, WHM
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
You could reduce the Timeout and ensure you have KeepAlive on with a KeepAliveTimeout value set:

Code:
Timeout 20
KeepAlive On
KeepAliveTimeout 5
Is your load actually high with high I/O wait times during the high swap usage?