#1 (permalink)  
Old 05-13-2009, 01:42 PM
Registered User
 
Join Date: Nov 2003
Posts: 34
sebans
How to reduce space in usr partition : killall -9 httpd

I have been suggested to try killing all idle session to save space like this

I also suggest you try killing all idle apache/mysql sessions/open files and then restarting each service like this:

killall -9 httpd
killall -9 mysqld
service httpd restart
service mysqld restart

This typically clears up space in /usr




can somebody tell me how to do it ? Where should I insert the Killall commands ?

thanks in advance for your help








Here is the breakdown of files that are over 20 megs inside of your /usr partition:

/usr/lib64/libgcj.so.7rh.0.0: 42M
/usr/lib64/xulrunner-1.9/libxul.so: 22M
/usr/share/frysk/test-core-x8664: 21M
/usr/share/frysk/test-core-x86: 21M
/usr/local/cpanel/cpanel: 32M
/usr/local/cpanel/logs/access_log: 21M
/usr/local/cpanel/whostmgr/bin/whostmgr: 35M
/usr/local/cpanel/whostmgr/bin/xml-api: 27M
/usr/local/cpanel/whostmgr/bin/whostmgr2: 38M
/usr/local/cpanel/whostmgr/bin/whostmgr5: 29M
/usr/local/cpanel/bin/wwwacct: 22M
/usr/local/cpanel/install/core.27426: 87M
/usr/local/cpanel/install/core.23158: 87M
/usr/local/cpanel/install/core.21803: 87M
/usr/local/cpanel/install/core.5713: 88M
/usr/local/cpanel/install/core.30176: 87M
/usr/local/cpanel/install/core.22396: 87M
/usr/local/cpanel/install/core.497: 87M
/usr/local/cpanel/install/core.7839: 87M
/usr/local/cpanel/install/core.23881: 87M
/usr/local/cpanel/install/core.8720: 87M
/usr/local/cpanel/install/core.2914: 87M
/usr/local/cpanel/install/core.6652: 87M
/usr/local/apache/logs/suexec_log: 152M
/usr/local/apache/logs/access_log: 116M
/usr/local/apache/logs/error_log: 492M
/usr/local/apache/domlogs/atoncer.com-smtpbytes_log: 50M
/usr/lib/locale/locale-archive: 54M
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-13-2009, 02:36 PM
Registered User
 
Join Date: Nov 2008
Posts: 76
hzJayJ is on a distinguished road
You can execute these commands from your shell.

You can also restart the services from your WHM at Main >> Restart Services
__________________
Regards,
Jay J,
HostingZoom | ResellerZoom |
modVPS
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-13-2009, 06:21 PM
Registered User
 
Join Date: Jun 2003
Posts: 26
StingRay2k01
How is restarting apache and mysql going to save space as listed??? That doesn't make sense.

The biggest space saver will be to rotate your logs regularly. Those are taking the most space. Rotate or reduce them. Check httpd.conf and see what level your error log is set at, maybe you don't need to have it so verbose.


Also, the "/install/core" files I think you can get rid of, someone correct me if I'm wrong. But I thought they were left overs from upgrades to the kernal.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-15-2009, 12:39 AM
Registered User
 
Join Date: Nov 2003
Posts: 34
sebans
restarting was intended after try killing idle apache/mysql sessions/open fies.

I didn't do anything yet except set the logs to rotate and the load was reduced to 75%.


also suggest you try killing all idle apache/mysql sessions/open files and then restarting each service like this:

killall -9 httpd
killall -9 mysqld
service httpd restart
service mysqld restart
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-15-2009, 02:29 AM
Registered User
 
Join Date: Jul 2006
Posts: 78
lehels is on a distinguished road
Quote:
Originally Posted by sebans View Post
restarting was intended after try killing idle apache/mysql sessions/open fies.

I didn't do anything yet except set the logs to rotate and the load was reduced to 75%.


also suggest you try killing all idle apache/mysql sessions/open files and then restarting each service like this:

killall -9 httpd
killall -9 mysqld
service httpd restart
service mysqld restart
Just move/erase these dump files:

/usr/local/cpanel/install/core.27426: 87M
/usr/local/cpanel/install/core.23158: 87M
/usr/local/cpanel/install/core.21803: 87M
/usr/local/cpanel/install/core.5713: 88M
/usr/local/cpanel/install/core.30176: 87M
/usr/local/cpanel/install/core.22396: 87M
/usr/local/cpanel/install/core.497: 87M
/usr/local/cpanel/install/core.7839: 87M
/usr/local/cpanel/install/core.23881: 87M
/usr/local/cpanel/install/core.8720: 87M
/usr/local/cpanel/install/core.2914: 87M
/usr/local/cpanel/install/core.6652: 87M
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-15-2009, 09:47 AM
Registered User
 
Join Date: Nov 2003
Posts: 34
sebans
lehels,




what if I remove the logs, instead ?

/usr/local/apache/logs/access_log: 116M
/usr/local/apache/logs/error_log: 492M
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

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 On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:06 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc