Created
March 24, 2018 21:19
-
-
Save vitorpacheco/77cf9eebbbf54698f12fe93089deeb0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
fuser 9443/tcp | |
fuser 9080/tcp | |
fuser 8878/tcp | |
fuser 8879/tcp | |
fuser 9060/tcp | |
kill -9 `ps -ef | grep java | awk -F" " '{print $2}'` | |
fuser -k 9443/tcp | |
fuser -k 9080/tcp | |
fuser -k 8878/tcp | |
fuser -k 8879/tcp | |
fuser -k 9060/tcp | |
WAS_HOME=/opt/IBM/WebSphere/AppServer/profiles/AppSrv01 | |
rm -rfv ${WAS_HOME}/logs | |
rm -rfv ${WAS_HOME}/temp | |
rm -rfv ${WAS_HOME}/tranlog | |
rm -rfv ${WAS_HOME}/workspace | |
rm -rfv ${WAS_HOME}/wstemp | |
rm -rfv ${WAS_HOME}/javacore.*.txt | |
rm -rfv ${WAS_HOME}/sigir.*.log | |
rm -rfv ${WAS_HOME}/sgl_fornecedor.*.log | |
sync; echo 3 > /proc/sys/vm/drop_caches |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment