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

本日志由 flyinweb 于 2010-01-11 15:03:04 发表到 技术文摘 中,目前已经被浏览 272 次,评论 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 发表到 技术文摘 中,目前已经被浏览 212 次,评论 0 次;

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

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

开源监控利器nagios实战

作者:田逸(sery@163.com) from:http://blog.formyz.org/?p=148 

俗话说:工欲善其事,必先利其器.要做好系统管理,使自己的工作更轻松更有效的话,一个好的监控工具是必不可少的了.在这里我向大家推荐一款我使用了4年多的、功能强大、可灵活定制的开源监控利器—nagios。 

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

作者添加了以下标签: nagios服务器监控

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

一 软件环境

本地客户端   :           JProfiler5.2.1破解版

远程服务器端:           JProfiler5.2.2的linux版本+Tomcat5.5.27的linux版本+JDK1.5.0_11的linux版本。

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

作者添加了以下标签: JProfilerTomcat

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

Solaris and Linux Installation Instructions

J2SE Installation

If you have not already downloaded and installed the J2SE 5.0 JDK, please do so now. Follow the J2SE 5.0 JDK download and installation instructions. Once you have a working J2SE 5.0 JDK installation, continue with jvmstat Tools Installation. Note that the J2SE 5.0 JRE does not contain the class files need to run the jvmstat 3.0 tools. You must download the J2SE 5.0 JDK to run the jvmstat 3.0 tools.

jvmstat Tools Installation

The jvmstat tools distribution is released in both tar and zip formats. There is a single distribution for all supported platforms. These instructions will guide you though the installation process using the Korn Shell on Solaris, Linux, and for the Korn Shell in the MKS Tookit for Windows. Every effort has been made to use shell commands that are compatible with both the Bourne and Korn shells. You may need to adapt these instructions to your preferred shell.

To use the tar archive, you must have a tar executable on your system. Similarly, to use the zip format, you need to have an unzip executable on your system. The jar command can be used in place of the unzip command, as jar files are an extension of zip archives. In any case, these instructions assume that the necessary executable can be found in a directory included in the user's PATH environment variable.

In the following instructions, the > character represents the shell's command prompt and the commands you enter to the shell are indicated by text typeset in bold. These instructions will also contain references to JVMSTAT_HOME and JAVA_HOME strings. Although these appear to be environment variables at first glance, they are intended to be substituted with the paths to the installation directories for jvmstat and the Java 2 JDK, respectively. You may choose to create environment variables with these names; however, they are not required for proper installation or operation of the jvmstat tools.

本日志由 flyinweb 于 2010-01-06 10:49:09 发表到 技术文摘 中,目前已经被浏览 545 次,评论 0 次;

作者添加了以下标签: jvmstatjvm

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

JVM监控工具介绍

jstack -- 如果java程序崩溃生成core文件,jstack工具可以用来获得core文件的java stack和native stack的信息,从而可以轻松地知道java程序是如何崩溃和在程序何处发生问题。另外,jstack工具还可以附属到正在运行的java程序中,看到当时运行的java程序的java stack和native stack的信息, 如果现在运行的java程序呈现hung的状态,jstack是非常有用的。目前只有在Solaris和Linux的JDK版本里面才有。

jconsole – jconsole是基于Java Management Extensions (JMX)的实时图形化监测工具,这个工具利用了内建到JVM里面的JMX指令来提供实时的性能和资源的监控,包括了Java程序的内存使用,Heap size, 线程的状态,类的分配状态和空间使用等等。

jinfo – jinfo可以从core文件里面知道崩溃的Java应用程序的配置信息,目前只有在Solaris和Linux的JDK版本里面才有。

jmap – jmap 可以从core文件或进程中获得内存的具体匹配情况,包括Heap size, Perm size等等,目前只有在Solaris和Linux的JDK版本里面才有。

jdb – jdb 用来对core文件和正在运行的Java进程进行实时地调试,里面包含了丰富的命令帮助您进行调试,它的功能和Sun studio里面所带的dbx非常相似,但 jdb是专门用来针对Java应用程序的。

jstat – jstat利用了JVM内建的指令对Java应用程序的资源和性能进行实时的命令行的监控,包括了对Heap size和垃圾回收状况的监控等等。

jps – jps是用来查看JVM里面所有进程的具体状态, 包括进程ID,进程启动的路径等等。 

本日志由 flyinweb 于 2010-01-06 08:51:41 发表到 技术文摘 中,目前已经被浏览 1680 次,评论 1 次;

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

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

提高 Linux 上 socket 性能

加速网络应用程序的 4 种方法

使用 Sockets API,我们可以开发客户机和服务器应用程序,它们可以在本地网络上进行通信,也可以通过 Internet 在全球范围内进行通信。与其他 API 一样,您可以通过一些方法使用 Sockets API,从而提高 Socket 的性能,或者限制 Socket 的性能。本文探索了 4 种使用 Sockets API 来获取应用程序的最大性能并对 GNU/Linux® 环境进行优化从而达到最好结果的方法。

在开发 socket 应用程序时,首要任务通常是确保可靠性并满足一些特定的需求。利用本文中给出的 4 个提示,您就可以从头开始为实现最佳性能来设计并开发 socket 程序。本文内容包括对于 Sockets API 的使用、两个可以提高性能的 socket 选项以及 GNU/Linux 优化。

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

作者添加了以下标签: Socket

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

1. JProfiler运行环境配置

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

作者添加了以下标签: JProfiler

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