本文基本参考自 轻松实现Apache,Tomcat集群和负载均衡,经由实操经历记录而成,碰到些出入,以及个别地方依据个人的习惯,所以在一定程度上未能保持原文的完整性,还望原著者海涵。

因原文中有较多的贴图,如若各位读者一时不想亲自动手而直想看到配置效果,可查看原文。

本日志由 flyinweb 于 2010-01-13 17:55:01 发表到 技术文摘 中,目前已经被浏览 3847 次,评论 0 次;

作者添加了以下标签: Tomcat集群

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

一、Common Problems in Java SE Application

This message is based on the following materials.
http://java.sun.com/developer/technicalArticles/J2SE/monitoring/#Insufficient_Memory
http://java.sun.com/developer/technicalArticles/javase/troubleshoot//

本日志由 flyinweb 于 2010-01-13 17:32:57 发表到 技术文摘 中,目前已经被浏览 6908 次,评论 0 次;

作者添加了以下标签: JVMGCGarbage collection

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

查看message出现了下面的错误:
kernel:ip_conntrack:table full,dropping packet

本日志由 flyinweb 于 2010-01-13 17:20:32 发表到 技术文摘 中,目前已经被浏览 5084 次,评论 0 次;

作者添加了以下标签: ip_conntracktable full

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

来源:http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp

This document provides information on typical command-line options and environment variables that can affect the performance characteristics of the Java HotSpot Virtual Machine. Unless otherwise noted, all information in this document pertains to both the Java HotSpot Client VM and the Java HotSpot Server VM.

本日志由 flyinweb 于 2010-01-12 18:07:04 发表到 技术文摘 中,目前已经被浏览 3975 次,评论 0 次;

作者添加了以下标签: JVM Options

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

JVM Options For GC

本日志由 flyinweb 于 2010-01-12 16:16:11 发表到 技术文摘 中,目前已经被浏览 4063 次,评论 0 次;

作者添加了以下标签: JVMGC

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

Available Collectors

The discussion to this point has been about the serial collector. The Java HotSpot VM includes three different collectors, each with different performance characteristics.

  1. The serial collector uses a single thread to perform all garbage collection work, which makes it relatively efficient since there is no communication overhead between threads. It is best-suited to single processor machines, since it cannot take advantage of multiprocessor hardware, although it can be useful on multiprocessors for applications with small data sets (up to approximately 100MB). The serial collector is selected by default on certain hardware and operating system configurations, or can be explicitly enabled with the option -XX:+UseSerialGC.
  2. The parallel collector (also known as the throughput collector) performs minor collections in parallel, which can significantly reduce garbage collection overhead. It is intended for applications with medium- to large-sized data sets that are run on multiprocessor or multi-threaded hardware. The parallel collector is selected by default on certain hardware and operating system configurations, or can be explicitly enabled with the option -XX:+UseParallelGC.
    • New: parallel compaction is a feature introduced in J2SE 5.0 update 6 and enhanced in Java SE 6 that allows the parallel collector to perform major collections in parallel. Without parallel compaction, major collections are performed using a single thread, which can significantly limit scalability. Parallel compaction is enabled by adding the option -XX:+UseParallelOldGC to the command line.
  3. The concurrent collector performs most of its work concurrently (i.e., while the application is still running) to keep garbage collection pauses short. It is designed for applications with medium- to large-sized data sets for which response time is more important than overall throughput, since the techniques used to minimize pauses can reduce application performance. The concurrent collector is enabled with the option -XX:+UseConcMarkSweepGC

本日志由 flyinweb 于 2010-01-12 15:36:48 发表到 技术文摘 中,目前已经被浏览 4240 次,评论 0 次;

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

JVM的自动垃圾收集(Garbage Collection)使得开发人员无需关注垃圾收集的细节,不过,当内存问题成为系统瓶颈的时候,我们就需要了解一下JVM的垃圾收集机制了。

本日志由 flyinweb 于 2010-01-11 15:03:04 发表到 技术文摘 中,目前已经被浏览 4215 次,评论 0 次;

作者添加了以下标签: JVMGarbage CollectionGC

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

最近需要参与一些java程序debug和性能调整方面的工作,jconsole是jdk自带的工具,比较好用,以下文章前面大部分翻译自:http://java.sun.com/j2se/1.5.0/docs/guide/management/jconsole.html ,后面关于用户名/密码和使用ssl加密连接的部分是从其他地方搜集的资料并且进行了验证。

本日志由 flyinweb 于 2010-01-07 11:44:20 发表到 技术文摘 中,目前已经被浏览 4767 次,评论 0 次;

作者添加了以下标签: jconsole监控

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文