[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 启动一个java程序,为什么看到这么多同样的进程呢?



Hi, Shark Wang

On Sun, 3 Jul 2005 16:21:33 +0800
Shark Wang <sharkwang@gmail.com> wrote:

> 在Debian 3.1中配置好了Java环境,安装oc4j并启动
> 
> export OC4J_HOME=/usr/local/bin/oc4j/j2ee/home
> java -server -Xms64m -Xmx128m -jar $OC4J_HOME/oc4j.jar
> 
> 用top察看的时候,发现了一堆的process, 这是为什么
> 啊???		

正常, Java 启动以后本身就有很多线程, 其中线程的实现是使用系统进程来实现的,
但并不占用太多的系统资源, 你可以看到其中 SHR 就是共享的内存.
这个跟 JVM 实现有关.
-- 
http://SuperMMX.org  自由世界 Free Software World

"I wonder", he said to himself, "what's in a book while it's closed.
Oh, I know it's full of letters printed on paper, but all the same,
something must be happening, because as soon as I open it, there's a
whole story with people I don't know yet and all kinds of adventures
and battles." -- Bastian B. Bux



Reply to: