You are browsing the archive for Java虚拟机.

JVM, Connection Pool相关的Metalink文章

五月 17, 2009 in Java开源

 

Oracle Metalink上有很多JVM和连接池相关的文章,为了使用方便,将其纪录汇总

 

1,监控OC4J连接池情况

567784.1 How To Monitor A Connection Pool Within OC4J 10.1.3.x Remotely
本文描述如何使用Oracle提供的工具来监控OC4J下连接池的情况,确保已正确释放连接

 

2,监控OC4J JVM信息

734481.1 How To Monitor The JVM For OC4J 10.1.3.x Remotely
本文描述了如何使用Oracle提供的工具来监控OC4J的JVM,查看JVM堆,线程和相关JVM信息

 

3,监控OC4J JVM内存使用情况

443506.1 How to monitor memory usage in OC4J 10.1.3.x
本文描述如何通过各种方式和工具来监控OC4J的JVM内存使用情况

 

4,如何编写程序来确保无ResultSet/Connection/Statement泄露

402480.1 How To Ensure No ResultSet/Connection/Statement Leaks Exist in Your JDBC Code
本文描述了如何编写JDBC相关程序来确保没有ResultSet/Connection/Statement泄露,避免:ORA 1000 -  “maximum open cursors exceeded”;ORA 20 – “maximum number of processes (%s) exceeded”. 之类的数据库错误发生

 

5,EBS11i R12 JVM相关

362851.1 Guidelines to setup the JVM in Apps Ebusiness Suite 11i and R12
567551.1 Configuring various JVM tuning parameters for Oracle E-Business suite 11i and R12
462550.1 Generate JVM heap dump in E-Business suite 11i and R12

 

使用jstatd和visualVM监控JVM

五月 13, 2009 in Java开源

 

VisualVM是集成了多个JDK命令工具的一个可视化工具,它主要用来监控JVM的运行情况,可以用它来查看和浏览Heap Dump、Thread Dump、内存对象实例情况、GC执行情况、CPU消耗以及类的装载情况。

在JDK Update7之后,VisualVM作为JDK的一部分发布,但同时VisualVM也发布独立的版本。VisualVM必须运行在JDK1.6以上的VM环境下,但可以用它来监控JDK1.4以上的JVM。

Read the rest of this entry →

几个与JVM相关的JDK工具:jps, jstat, jmap

五月 2, 2009 in Java开源

?

在项目中遇到OOM(Out of Memory)的问题,为了分析内存和JVM的垃圾回收器GC问题,一并把JVM相关的一些工具也研究了一下:

  1. jps:Java进程查看工具,实际上它和Unix/Linux上面的ps命令的功能差不多
  2. jstat:Java内存使用情况监控工具
  3. jmap:输出JVM内存中对象的工具

这些工具位于JAVA_HOME/bin目录下

?

Read the rest of this entry →

使用OC4J的多JVM来提高系统处理能力

四月 27, 2009 in Oracle 融合中间件

 

最近由于项目的需要,使用了OC4J中的多JVM的特性来解决应用系统的处理能力问题。

 

对于在Oracle Application Server中使用多JVM的特性,Oracle一些专家在他们的博客中也有谈到,对于使用多JVM还是多OC4J实例的问题,Angelo Santagata在他的博客中阐述了自己的观点:

Multiple JVMs:
The processes share the same configuration for the entire container (not just for the JVM parameters).
Same applications, same container configuration etc. This is a great way of scaling symmetrically to better utilize the CPUs and still only having to manage one container.

Multiple OC4Js:
You can individually control all of the container configurations, have different applications deployed etc. You can use this strategy in
combination with multiple JVMs to scale while at the same time having a heterogeneous environment wrt. nr. of applications deployed, container configurations etc.

 

Read the rest of this entry →