`
Phoenix_MVP
  • 浏览: 336965 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
      官方文档解释:gc花了98%的时间却只回收了不到2%的heap,就会抛出这个异常。-XX:-UseGCOverheadLimit只是禁用这个检查。 http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html#par_gc.oom---》Excessive GC Time and OutOfMemoryError GC官方文档 Excessive GC Time and OutOfMemoryError The parallel collector will throw an OutOf ...
  ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); String reosurceName = "xxxx.class"; Enumeration<URL> urls = classLoader.getResources(reosurceName); while (urls.hasMoreElements()) { URL url = urls.nextElement(); System.out.println(url); }
1. 泛型通配符? List<?>是任何泛型List的父类型,所以您完全可以将 List<Object>、List<Integer>或 List<List<List<String>>>传递给printList()。 public class Wildcard { public static void main(String[] args) { // Integer List<Integer> integer = new ArrayList<Integ ...
  (1)粗略统计80端口连接数:netstat -nat|grep -i "80"|wc -l,包含80的端口都会被统计 (2)统计httpd协议连接数:ps -ef|grep httpd|wc -l (3)统计链接最多的20个IP:netstat -na|grep ESTABLISHED|awk '{print $5}'|awk -F: '{print $1}'|sort|uniq -c|sort -r|head -20 (4)统计已连接上数量:netstat -na|grep ESTABLISHED|wc –l,同样可以查询其他状态的 (5)统计各状态 ...
1. JBoss Tattletale  http://www.bluedash.net/spaces/JBoss%20Tattletale%20%E7%AE%80%E4%BB%8B   使用:首先将需要分析的项目,mvn clean install,然后定位到所在的WEB-INF/lib下 命令: D:\.....\tattletale-1.2.0.Beta2>java -jar tattletale.jar D:\.....\target\应用名\WEB-INF\lib\delivery-common-1.0.1-SNAPSHOT.jar D:\tattletaleResul ...
命令1:ps afx 其中’a’表示列出所有运行的进程;’x’列出所有的后台进程;’f’是’-forest’的缩写   [admin@v015208 ~]$ ps afx PID TTY STAT TIME COMMAND 1 ? Ss 0:01 init [3] 2 ? S< ...
一. 配置   <!-- 添加此插件以便启动jetty --> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.10</version> <configuration> <encoding>UTF-8</encoding> &l ...
一. Linux服务器的性能指标 1. CPU1.1 CPU状态在任意时间内,CPU有7个状态: 1.idle,表示CPU闲置并等待工作分配. 2.user,表示CPU在运行用户的进程 3.system,表示CPU在执行kernel工作 4.nice,表示CPU花费在被nice改变过优先级的process上的时间(注意:被nice命令改变优先级的process仅指那些nice值为负的process.花费在被nice命令改变优先级的任务上的时间也将被计算在系统和用户时间内,因此整个时间加起来可能会超过百分之百) 5.iowait,表示CPU等待IO操作完成的时间 6.irq,表示CPU开销在响 ...
Global site tag (gtag.js) - Google Analytics