Skip to content

Instantly share code, notes, and snippets.

@cyberpsyquack
cyberpsyquack / dump.sh
Last active October 11, 2021 08:04
A simple tool to execute thread dump for a JVM, it will also extract for each thread the CPU in use.
#!/bin/bash
JVM_PID=TheJVMPID
JDK_HOME="/opt/jdk1.8.0_65/bin/"
COUNT=1
SERVER_NAME="yourApplicationServer"
mkdir ${SERVER_NAME}
cd ${SERVER_NAME}
@cyberpsyquack
cyberpsyquack / middlewareCheck.py
Last active August 5, 2024 20:02
WLST/Jython script to chak the Healt Status, Hogging Thread and Stuck Thread and Heap status for a series of Oracle WebLogic Domains. It will use one properties file for each Domain. In the first comment a properties file skeleton.
# WebLogic 12c health monitoring tool
# Developer: Gian Luca Ricci
# Just another Pythoneer
# Code version: 4.0.1
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@cyberpsyquack
cyberpsyquack / clearDomain.jy
Created November 10, 2017 14:40
Jython (WLST) script that automatically stops, clear Application Server folder and restarts your WebLogic Domain. Domain's properties, like Admin URL, username and password have to be declared in a wls_domain.properties file in the same directory of this script. This file has inside three variables wls.admin_server, wls.username and wls.password.
# Domain Cleaner
# Author: Gian Luca Ricci
# Mail:
# Just another Pythoneer
# Code version: 1.0
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
/*
* Copyright (C) 2017 Gian Luca Ricci
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of