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 | |
# Prints information about the Java threads that consumes most of the CPU | |
# Derived from the information given in the blog entry at | |
# | |
# http://nurkiewicz.blogspot.be/2012/08/which-java-thread-consumes-my-cpu.html | |
# | |
# Changelog: | |
# | |
# - Removed the `top', `perl', and `grep' dependencies. |
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/sh | |
policy=${HOME}/.jstatd.all.policy | |
[ -r ${policy} ] || cat >${policy} <<'POLICY' | |
grant codebase "file:${java.home}/../lib/tools.jar" { | |
permission java.security.AllPermission; | |
}; | |
POLICY | |
jstatd -J-Djava.security.policy=${policy} & |
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
#!/usr/bin/env bash | |
# author: Duane Johnson | |
# email: duane.johnson@gmail.com | |
# date: 2008 Jun 12 | |
# license: MIT | |
# | |
# Based on discussion at http://kerneltrap.org/mailarchive/git/2007/11/12/406496 | |
pushd . >/dev/null |