
JVM
文章平均质量分 50
iteye_19410
这个作者很懒,什么都没留下…
展开
-
weblogic 如何产生JVM Thread Dump
产生JVM Thread Dump是检查多线程应用最好的方法, WebLogic支持以下几种方法: 1. 在Windows, 找到執行WebLogic Server的命令視窗, 按下[Ctrl]+[Break] 2. 如果WebLogic Server是用NT Service執行, 可以使用%WL_HOME%\common\bin\beasvc.exe -svcname:"...原创 2009-10-16 11:16:41 · 772 阅读 · 0 评论 -
Java垃圾回收—— concurrent collector
With the serial collector a major collection is started when the tenured generation becomes full and all application threads are stopped while the collection is done. In contrast a concurrent collec...原创 2010-11-18 21:32:49 · 126 阅读 · 0 评论 -
Java垃圾回收——throughput collector
The throughput collector will throw an out-of-memory exception if too much time is being spent doing garbage collection. For example, if the JVM is spending more than 98% of the total time doing garba...原创 2010-11-18 21:33:51 · 165 阅读 · 0 评论 -
Java垃圾回收——设置内存大小
At initialization of the virtual machine, the entire space for the heap is reserved. The size of the space reserved can be specified with the -Xmx option.If the value of the -Xms parameter is smaller...原创 2010-11-18 21:34:59 · 199 阅读 · 0 评论 -
Java垃圾回收——内存结构
一般处理过程:minor collections occurring at intervals long enough to allow many of the objects to die between collections.It is well-tuned in the sense that the young generation is large enough (and thus th...原创 2010-11-18 21:36:13 · 123 阅读 · 0 评论 -
Jprofiler: error iterating over heap
Fixed it. I had to remove "-XX:+UseConcMarkSweepGC" from my application startup script.能解决一般问题原创 2010-11-18 22:03:34 · 91 阅读 · 0 评论 -
JDK heapdump
因[b]jdk6[/b]不支持 ctrl+break,需使用jmap Example: jmap -dump:format=b,file=heap.bin 可以用jps或任务管理器查看pid[b]jdk5[/b] 可以使用ctrl+break,,但需要增加参数: -XX:+HeapDumpOnCtrlBreak...原创 2011-09-06 11:14:30 · 149 阅读 · 0 评论 -
JVM可创建的最大线程数
限制该值的因素:线程堆栈大小——》进程的最大内存——》操作系统位数 linux线程 查看默认的线程栈大小ulimit -a 调整栈大小ulimit -s 是否存在硬限制, /proc/sys/kernel/threads-max是否为硬限制?cat /proc/sys/kernel/threads-max: ?echo 12000 ...原创 2010-07-09 17:25:24 · 192 阅读 · 0 评论 -
JVM crash的几种可能原因
Java的应用有时候会因为各种原因Crash,这时候会产生一个类似java_errorpid.log的错误日志。可以拿到了这个日志,怎样分析Crash的原因呢?下面我们来详细讨论如何分析java_errorpid.log的错误日志。一. 如何得到这个日志文件如果有一个严重的错误引起Java进程非正常退出,我们叫Crash,这时候会产生一个日志文件。缺省情况下,这个文件会产生在工作目...原创 2012-02-17 14:15:24 · 1796 阅读 · 0 评论 -
Java 6 JVM参数选项大全(中文版)
作者:Ken WuEmail: ken.wug@gmail.com转载本文档请注明原文链接 http://kenwublog.com/docs/java6-jvm-options-chinese-edition.htm! 本文是基于最新的SUN官方文档Java SE 6 Hotspot VM Options 编写的译文。主要介绍JVM中的非稳态选项及其使用说明。为了让读者...原创 2012-09-11 15:20:15 · 113 阅读 · 0 评论 -
jvm 生成 javacore 和 heapdump 文件
一、标准的SUN/Oracle JVM当内存溢出时生成heapdump文件配置如下-Xloggc:${目录}/temp_gc.log (GC日志文件)-XX:+HeapDumpOnOutOfMemoryError (内存溢出时生成heapdump文件)-XX:HeapDumpPath=${目录} (heapdump文件存放位...原创 2013-01-21 11:55:50 · 944 阅读 · 0 评论 -
JAVA进程内存(本机内存)的使用情况
什么是本机内存:即进程内存。本机内存是可用于运行时进程的内存,它与 Java 应用程序使用的 java 堆内存不同。每种虚拟化资源(包括 Java 堆和 Java 线程)都必须 存储在本机内存中,虚拟机在运行时使用的数据也是如此。 里面存储哪些内容:Java 堆:使用的本机内存大小保持不变,而且由 -Xmx 值(最大堆大小)指定。垃圾收集:对于维护 Java 堆的...原创 2010-11-03 11:08:59 · 221 阅读 · 0 评论 -
64 位操作系统上java进程能分配的内存大小
64 位操作系统上的用户空间大小操作系统默认用户空间大小Windows x86-648192GBWindows Itanium7152GBLinux x86-64500GBLinux PPC641648GBLinux 390 644EB...原创 2010-11-03 11:01:28 · 833 阅读 · 0 评论 -
J java.net.SocketInputStream.socketRead0(Ljava/io/FileDescriptor;[BIII)I
Bug ID: 5040096 Votes 0 Sy...原创 2009-09-22 19:08:55 · 1134 阅读 · 0 评论 -
Thread Dump 和Java应用诊断
Thread Dump 和Java应用诊断 Thread Dump是非常有用的诊断Java应用问题的工具,每一个Java虚拟机都有及时生成显示所有线程在某一点状态的thread-dump的能力。虽然各个Java虚拟机threaddump打印输出格式上略微有一些不同,但是Threaddumps出来的信息包含线程;线程的运行状态、标识和调用的堆栈;调用的堆栈包含完整...原创 2009-10-16 12:26:45 · 116 阅读 · 0 评论 -
Jprofiler: error iterating over heap
Fixed it. I had to remove "-XX:+UseConcMarkSweepGC" from myapplication startup script.能解决一般问题2009-06-03 09:55:28 · 131 阅读 · 0 评论 -
HotSpot Server VM warning: bailing out to foregrou
参考资料:http://blogs.sun.com/jonthecollector/entry/size_mattershttp://blogs.sun.com/jonthecollector/entry/what_the_heck_s_ahttp://blogs.sun.com/jonthecollector/entry/why_nowhttp://forums.sun.com/...2009-06-18 05:01:51 · 158 阅读 · 0 评论 -
使用jconsole的前提条件
为了快速调试,使用简单方式: 本地:java -Dcom.sun.management.jmxremote -jar Notepad.jar 远程: Disabling SecurityTo disable both password authentication and SSL (no security), set these system propert...原创 2010-10-13 17:26:19 · 116 阅读 · 0 评论 -
J VM Crash- 64bit VM Crash in CompilerThread1
There is a strong change that you're hitting hotspot compiler bug.Check following docs:http://java.sun.com/javase/6/webnotes/trouble/TSG-VM/html/gbyzx.html#gbyzuhttp://bugs.sun.com/bugdatabase/vi...原创 2011-05-25 14:39:02 · 150 阅读 · 0 评论 -
Troubleshooting Guide for Java SE 6 with HotSpot VM
http://www.oracle.com/technetwork/java/javase/index-137495.html#gbyzu原创 2011-05-25 14:59:55 · 117 阅读 · 0 评论 -
jvm .hotspot_compiler
This has been identified as a JVM compiler (HotSpot) bug in that particular version of the JVM.You can either:1. Revert to Sun JVM 1.5.0_5 (which does not appear to have the problem)2. Remove the meth...原创 2011-05-25 15:47:08 · 229 阅读 · 0 评论 -
内存溢出,无法创建新的本地线程的原因和解决方案,java.lang.OutOfMemoryError: unable to create new native ...
内存溢出,无法创建新的本地线程的原因和解决方案,java.lang.OutOfMemoryError: unable to create new native thread I recently came across this exception on a couple of java systems thatuse many threads java.lang.OutOfMe...原创 2009-09-03 13:55:35 · 1352 阅读 · 0 评论 -
JVM崩溃:Current thread JavaThread "CompilerThread1" daemon [_thre
临时解决办法:-XX:CompileCommand=exclude,net/sf/cglib/core/CodeEmitter,process_switch --------------- T H R E A D ---------------Current thread (0x0000000007573bb0): JavaThread "Compiler...原创 2009-09-15 10:57:06 · 4260 阅读 · 0 评论 -
non-heap中的内容
Permanent Generation (non-heap) 保存虚拟机自己的静态(reflective)数据,例如类(class)和方法(method)对象。Java虚拟机共享这些类数据。这个区域被分割为只读的和只写的。 Code Cache (non-heap) HotSpot Java虚拟机包括一个用于编译和保存本地代码(native code)的内存,叫做“代...原创 2011-07-07 15:41:09 · 816 阅读 · 0 评论 -
用Eclipse Compiler编译Java项目
我们经常使用ant来编译我们的Eclipse项目,但有时ant中javac任务往往只能编译一部分代码。当代码有编译错误时,ant就停止编译,不再继续编译剩下的代码。这种方式给一些单元测试或者脚本类的工程带来了麻烦,因为这类工程中的错误往往只是一个脚本的语法问题,并不影响其他脚本。所以这类工程希望尽可能多的编译全部代码,而不是因为一个编译错误而停止。但我们在Ecli...原创 2013-03-21 20:18:00 · 1221 阅读 · 0 评论