Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Nov 2003
    Posts
    34

    Default 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

  2. #2
    Member
    Join Date
    Nov 2008
    Posts
    76

    Default

    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

  3. #3
    Member
    Join Date
    Jun 2003
    Posts
    27

    Default

    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.

  4. #4
    Member
    Join Date
    Nov 2003
    Posts
    34

    Default

    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

  5. #5
    Member
    Join Date
    Jul 2006
    Posts
    90

    Default

    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

  6. #6
    Member
    Join Date
    Nov 2003
    Posts
    34

    Default

    lehels,




    what if I remove the logs, instead ?

    /usr/local/apache/logs/access_log: 116M
    /usr/local/apache/logs/error_log: 492M

Similar Threads & Tags
Similar threads

  1. How to reduce space in /usr partition?
    By tedy in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-28-2009, 04:03 AM
  2. Reduce disc space / mysql query
    By oldlock in forum New User Questions
    Replies: 1
    Last Post: 06-05-2009, 11:41 PM
  3. How to reduce space in usr partition : killall -9 httpd
    By sebans in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-15-2009, 09:47 AM
  4. /usr/bin/killall -HUP syslogd
    By ntwaddel in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-27-2005, 01:59 PM
  5. My /usr partition is full - what do i do?
    By Dragons Master in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 07-24-2005, 10:46 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube