
JDK
以十
装饰过去,构造现在,设计未来
展开
-
Shell脚本模版
一些情况下,比如使用JDK自带工具包,我们需要进到$JAVA_HOME/bin目录下去执行某个脚本,这时候可以在我们统一存放脚本的目录下写一个简单的脚本,来方便操作直接执行的命令#!/bin/sh#进入要执行的脚本目录cd $JAVA_HOME/bin/#-z表示字符串为空,-n表示字符串不空,${1}取第一个参数if [ -z ${1} ]then #ls和cat的默认宽度不...原创 2018-12-21 22:29:28 · 2544 阅读 · 0 评论 -
VisualVM failing to find plugins/updates? Solving the 503 error with an updated URL
jvisual下载插件的官方网站已关闭的问题原文地址Have you tried to update or simply see the available plugins for VisualVM (the Java monitoring tool built into the JDK), and found that it fails to respond right away (the ...转载 2018-12-22 06:03:18 · 455 阅读 · 0 评论 -
jvisualvm在线调试BTrace插件
写个测试类如下Tip:一定要用JDK8以后版本的工具,否则会出现问题,之前版本的插件地址已经废弃了,新的地址都是域名中包含有github的package a.b.c;public class Test1 { public static void main(String[] args) { System.out.println("main method start!"); whi...原创 2018-12-22 16:52:23 · 574 阅读 · 0 评论