|
|||
|
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 |
|
|||
|
You can execute these commands from your shell.
You can also restart the services from your WHM at Main >> Restart Services |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
Quote:
/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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|