consumes huge harddisk space and memory

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
gsenthil
Posts: 3
Joined: Tue Aug 19, 2008 1:24 am

consumes huge harddisk space and memory

Post by gsenthil »

We have installed cacti Version 0.8.7b in RHEL-3, RRD Tool 1.2.x
After installation and polling the device, hard disk and memory space consumed is given below
----------------------------------------------------------------
# df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 72G [b]4.6G 64G [/b]8% /
/dev/hda1 99M 15M 80M 16% /boot
none 747M 0 747M 0% /dev/shm

#free
total used free shared buffers cached
Mem: 1529736 [b]280124 1249736 [/b]0 111136 376552
-/+ buffers/cache: 322268 1207468
Swap: 2040244 0 2040244

----------------------------------------------------------------------------

[b]After a week the hard disk and memory consumption is given below[/b]


# df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 72G [b]5.0G 63G [/b]8% /
/dev/hda1 99M 15M 80M 16% /boot
none 747M 0 747M 0% /dev/shm

#free
total used free shared buffers cached
Mem: 1529736 [b]809956 719780 [/b]0 111136 376552
-/+ buffers/cache: 322268 1207468
Swap: 2040244 0 2040244


Please any body help us, how to controll the consumption of hard disk space and memory consumption
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

For hard drive space, check your log level (don't keep it on debug), and rotate your log via logrotate.d

As for memory, can you go to 'Utilities/System Utilities/Technical Support' and cut and paste that into a 'code' block in this thread.

Note: It would make it a lot easier to read if you put your df and free commands into code blocks as well...
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
gsenthil
Posts: 3
Joined: Tue Aug 19, 2008 1:24 am

Post by gsenthil »

Thank you very Much, we have enabled the rotatelog we will monitor it ....
Please find the df & free command and also find the techsupport details in attachment, Please let us know wy there is huge memory consumption
---------------------------------------------------------------------------
[test]$ df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 72G 5.0G 63G 8% /
/dev/hda1 99M 15M 80M 16% /boot
none 747M 0 747M 0% /dev/shm
-------------------------------------------------------------------------

[test]$ free
total used free shared buffers cached
Mem: 1529736 840536 689200 0 111224 407220
-/+ buffers/cache: 322092 1207644
Swap: 2040244 0 2040244
Attachments
Technical Support.doc
TechSupport Details
(630.5 KiB) Downloaded 220 times
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Everything looks fine in your config.

please attach (as a text file) the output of:

Code: Select all

ps axfv
You can simply do:

Code: Select all

ps axfv >output.txt
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Also check that mysql isn't generating binlogs - these are what used to fill up my Cacti server from time to time.

xdiskusage, xdu or FileLight are your friends for figuring out where it all went :-)
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
gsenthil
Posts: 3
Joined: Tue Aug 19, 2008 1:24 am

Post by gsenthil »

Dear Linegod please find the output of the
ps axfv >output.txt as attachment
Attachments
output.txt
(5.75 KiB) Downloaded 95 times
super-hornet
Cacti User
Posts: 175
Joined: Sun May 27, 2007 5:42 pm

Post by super-hornet »

For Hard Disk storage.... first of all, maybe u need to check which one is hogging up the space.

U can use either "KDirStat" or "FileLight" to scan your hard disk and see which one is taking up the space.

Since your is RHELv3, here is the link to download:

KDirStat
ftp://ftp.pbone.net/mirror/dag.wieers.c ... g.i386.rpm
ftp://ftp.pbone.net/mirror/dag.wieers.c ... x86_64.rpm

FileLight
ftp://ftp.pbone.net/mirror/dag.wieers.c ... f.i386.rpm
ftp://ftp.pbone.net/mirror/dag.wieers.c ... x86_64.rpm
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

Please run the following commands:

Code: Select all

echo "PRE" >output2.txt; df >>output.txt; free >>output2.txt; ps axfv >>output2.txt
Then turn off X Windows on the Linux box (init 3) and at a terminal console, do the following:

Code: Select all

echo "POST" >>output2.txt; df >>output.txt; free >>output2.txt; ps axfv >>output2.txt; 'du' /var/lib/mysql|sort -n >>output2.txt;  'du'  /www/htdocs/cacti/ |sort -n >>output2.txt
Then attach that file.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest