Skip to content

Instantly share code, notes, and snippets.

@vitorpacheco
Created March 24, 2018 21:19
Show Gist options
  • Save vitorpacheco/77cf9eebbbf54698f12fe93089deeb0a to your computer and use it in GitHub Desktop.
Save vitorpacheco/77cf9eebbbf54698f12fe93089deeb0a to your computer and use it in GitHub Desktop.
#!/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