C:\>java -X -Xmixed mixed mode execution (default) -Xint interpreted mode execution only -Xbootclasspath:<directories and zip/jar files separated by ;> set search path for bootstrap classes and resources -Xbootclasspath/a:<directories and zip/jar files separated by ;> append to end of bootstrap class path -Xbootclasspath/p:<directories and zip/jar files separated by ;> prepend in front of bootstrap class path -Xnoclassgc disable class garbage collection -Xincgc enable incremental garbage collection -Xbatch disable background compilation -Xms<size> set initial Java heap size -Xmx<size> set maximum Java heap size -Xss<size> set java thread stack size -Xprof output cpu profiling data -Xrunhprof[:help]|[:<option>=<value>, ...] perform JVMPI heap, cpu, or monitor profiling -Xdebug enable remote debugging -Xfuture enable strictest checks, anticipating future default -Xrs reduce use of OS signals by Java/VM (see documentation)The -X options are non-standard and subject to change without notice.堆的最大和初始值
我原来是认为多个应用程序都是运行在一个jvm上的
这个我搞不大清楚,哈哈
那运行在同一个jvm上的应用程序是什么意思
按翻译来说应该就是一个运行环境
如果不同的应用程序是不同的jvm,这个好象说不过去。
-Xmixed mixed mode execution (default)
-Xint interpreted mode execution only
-Xbootclasspath:<directories and zip/jar files separated by ;>
set search path for bootstrap classes and resources
-Xbootclasspath/a:<directories and zip/jar files separated by ;>
append to end of bootstrap class path
-Xbootclasspath/p:<directories and zip/jar files separated by ;>
prepend in front of bootstrap class path
-Xnoclassgc disable class garbage collection
-Xincgc enable incremental garbage collection
-Xbatch disable background compilation
-Xms<size> set initial Java heap size
-Xmx<size> set maximum Java heap size
-Xss<size> set java thread stack size
-Xprof output cpu profiling data
-Xrunhprof[:help]|[:<option>=<value>, ...]
perform JVMPI heap, cpu, or monitor profiling
-Xdebug enable remote debugging
-Xfuture enable strictest checks, anticipating future default
-Xrs reduce use of OS signals by Java/VM (see documentation)The -X options are non-standard and subject to change without notice.堆的最大和初始值
JVM的堆还分 New和OLD两个领域, New领域里, gc是高速的(0.01 ~ 0.1秒). 经过32次gc, 残留下来的入OLD领域, OLD领域里是 full gc, 速度很慢(0.1 ~ 1秒). New领域还分为Eden领域和Survivor领域, Object刚生成的时候, 进Eden. 两者的比例关系推荐为3:1.
至于什么时候是特殊情况, 那就不好判断了. hehe, 当时我的一个项目处理出现严重问题, 根本就想不到这方面. 3个月后才解决.
首先,每执行一次java ...或javaw ...就会启动一个JVM。
(这个原来是这样的,明白)对于你说的Web应用程序和企业应用程序可以多个应用程序运行于一个JVM上,我举个例子,比如weblogic server
他起动的时候是用java weblogic.server启动的
然后web应用和ejb部署到weblogic server上的时候应该是和weblogic.server在同一个JVM中
那么我想了解的就是web应用和ejb应用如何才能和weblogic.server在同一个JVM中呢。另外你说的企业应用程序就是ejb吧,对于你说的企业应用程序可以运行于多个JVM中。
是如何实现的呢,我不明白,请仔细说说。