I could've guessed you were using Linux from the first description you gave,
but I didn't want to seem presumptuous. :->
Those are 15 threads in one instance of JRun/one JVM. In Linux a thread
shows up as a process in ps, which is a reflection of the fact that in Linux
a kernel thread and a kernel process are the same thing as far as the kernel
scheduler is concerned. A symptom of this is some misleading output in ps,
namely, ps doesn't show very clearly (it does if you study it closely, but
it's not obvious) that those 15 threads share the same heap. So all 15
added together are using up 4.4% of memory. Try looking at it top. It
might be a little clearer there. Also, if you note the parent pids for
those Java threads/processes, you'll see they are all related and descendant
(ultimately) from the jrun shell script pid.
Scott Stirling
Allaire Corporation
http://www.allaire.com/developer/jrunreferencedesk/
> -----Original Message-----
> From: Eric Larson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 13, 2000 9:20 AM
> To: JRun-Talk
> Subject: RE: Number of JVM Instances
>
>
> Hi -
>
> I'm running on Linux, so:
>
> ps -auxw | grep jr
> root 1251 0.0 0.0 1728 220 ? S Dec01
> 0:00 sh ./jrun
> start jlive
> root 1325 0.0 4.4 143308 11444 ? S Dec01 0:02
> /usr/java/jdk1.3/bin/i386/native_threads/java -Djrun.rootdir=/usr/loc
> root 1371 0.0 4.4 143308 11444 ? S Dec01 0:09
> /usr/java/jdk1.3/bin/i386/native_threads/java -Djrun.rootdir=/usr/loc
> root 1372 0.0 4.4 143308 11444 ? S Dec01 0:26
> /usr/java/jdk1.3/bin/i386/native_threads/java -Djrun.rootdir=/usr/loc
> root 1373 0.0 4.4 143308 11444 ? S Dec01 0:00
> /usr/java/jdk1.3/bin/i386/native_threads/java -Djrun.rootdir=/usr/loc
> root 1374 0.0 4.4 143308 11444 ? S Dec01 0:00
> /usr/java/jdk1.3/bin/i386/native_threads/java -Djrun.rootdir=/usr/loc
> root 1375 0.0 4.4 143308 11444 ? S Dec01 11:51
> /usr/java/jdk1.3/bin/i386/native_threads/java -Djrun.rootdir=/usr/loc
> root 1376 0.0 4.4 143308 11444 ? S Dec01 0:00
> /usr/java/jdk1.3/bin/i386/native_threads/java -Djrun.rootdir=/usr/loc
> root 1377 0.0 4.4 143308 11444 ? S Dec01 0:01
> /usr/java/jdk1.3/bin/i386/native_threads/java -Djrun.rootdir=/usr/loc
> root 1378 0.0 4.4 143308 11444 ? S Dec01 0:03
> /usr/java/jdk1.3/bin/i386/native_threads/java -Djrun.rootdir=/usr/loc
> root 1379 0.0 4.4 143308 11444 ? S Dec01 0:00
> /usr/java/jdk1.3/bin/i386/native_threads/java -Djrun.rootdir=/usr/loc
> root 1380 0.0 4.4 143308 11444 ? S Dec01 0:00
> /usr/java/jdk1.3/bin/i386/native_threads/java -Djrun.rootdir=/usr/loc
> root 1381 0.0 4.4 143308 11444 ? S Dec01 1:29
> /usr/java/jdk1.3/bin/i386/native_threads/java -Djrun.rootdir=/usr/loc
> root 12447 0.0 4.4 143308 11444 ? S Dec03 0:00
> /usr/java/jdk1.3/bin/i386/native_threads/java -Djrun.rootdir=/usr/loc
> root 31398 0.0 4.4 143308 11444 ? S 08:49 0:00
> /usr/java/jdk1.3/bin/i386/native_threads/java -Djrun.rootdir=/usr/loc
> root 31535 0.0 4.4 143308 11444 ? S 09:11 0:00
> /usr/java/jdk1.3/bin/i386/native_threads/java -Djrun.rootdir=/usr/loc
> root 31536 0.0 4.4 143308 11444 ? S 09:11 0:00
> /usr/java/jdk1.3/bin/i386/native_threads/java -Djrun.rootdir=/usr/loc
> root 31639 0.0 0.2 1364 524 pts/2 S 09:16 0:00 grep jr
>
> The 4.4 is % of physical RAM. jlive is the Jrun server name.
> As you can see
> it appears
> that one of the JVM's has the bulk of CPU time attributed to
> it. The rest
> just seem to be there to annoy me.
>
> --On Tuesday, December 12, 2000 11:01 PM -0500 Scott Stirling
> <[EMAIL PROTECTED]> wrote:
>
> > JRun can only use as much memory as you let it when you
> configure the JVM
> > it runs in. If you didn't configure anything, then Sun
> 1.2/1.3 JVMs use
> > 64 MB max memory, and IBM JVMs use 1/2 physical RAM max.
> But they don't
> > allocate all that memory unless they need it.
> >
> > What do you mean by "15 Java instances?" That could help
> clarify what
> > we're talking about. I would take Java instance to mean an
> instance of
> > the JVM, which would imply 15 instances of JRun. Where are
> you reading
> > that there are 15 instances of Java? And how did you determine the
> > memory usage?
> >
> > Scott Stirling
> > West Newton, MA
> >
> > -----Original Message-----
> > From: Eric Larson [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, December 12, 2000 11:33 AM
> > To: JRun-Talk
> > Subject: Number of JVM Instances
> >
> >
> > Can anyone outline what determines the number of Java
> instances that are
> > running? I have a site that runs apache/jrun and averages
> about 23 apache
> > instances that occupy about 100MB of RAM and 15 Jave
> instances that use
> > about 200 MB of RAM. A connection to Jrun is established in
> one of the
> > apache virtual hosts directive blocks.
> >
> > Most of the site currently uses PHP; I am porting the rest
> to JSP. The
> > small portion of the site that is currently running under
> JRun handles
> > perhaps 50-100 page views per day. The number of Java
> instances and memory
> > consumption thereof seems to be way out of proportion to
> the requirements.
> >
> > Any ideas on tuning under this circumstance?
> >
> > -Eric
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists