1998Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] OT: Java multithreading performance -->
<!--X-From-R13: Hnqvz Fxnpuraxb <igNserrubyq.pebpbqvyr.bet> -->
<!--X-Date: Fri, 15 May 1998 22:10:42 &#45;0700 -->
<!--X-Message-Id: 355D1FCB.970B6DB7#freehold,crocodile.org -->
<!--X-Content-Type: text/plain -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] OT: Java multithreading performance</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:vt#freehold,crocodile.org">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg00623.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00625.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00740.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00626.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00624">Author</A>
&nbsp;|&nbsp;<A HREF="#00624">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00624">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] OT: Java multithreading performance</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: MUD-Dev &lt;<A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A>&gt;</LI>
<LI><em>Subject</em>: [MUD-Dev] OT: Java multithreading performance</LI>
<LI><em>From</em>: Vadim Tkachenko &lt;<A HREF="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</A>&gt;</LI>
<LI><em>Date</em>: Sat, 16 May 1998 00:10:35 -0500</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Sender</em>: "Petidomo List Agent -- Kanga.Nu version" &lt;<A HREF="mailto:petidomo#kanga,nu">petidomo#kanga,nu</A>&gt;</LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
Hello,

If this information is even more offtopic than I think, just let the
thread die - the only reason I'm posting it here is I remember some
people were concerned about Subj and some others were considering Java
server side.

So, that was the noise, the signal is:

Test algorithm:

record the time;
fire the thread;
wait until it's started; 
record the interval between the creation time and this moment;
wait 100 ms;
fire another;
perform something in the current thread.

gives somewhat unexpected results:

- It's possible to have 3400 threads running at a time (in fact, those
objects were more heavy than threads, they were GenericServices I
mentioned before), response is miserable, but it still runs.
- Performance degradation starts showing up at approximately 1000
threads, the curve is rather exponential after that
- Before 1000 threads, the graph is rather flat. The reason for that may
be that the interval dispersion is less than the visible interval on the
resulting graph.

Well, now I'm thinking about measuring the actual performance within
each thread too, but it's too late for this week, so the question here
is:

- Did anybody perform the tests like this?
- Am I reinventing the wheel, are there standard tests which measure the
multithreading performance?
- How many threads working acceptable did you have, as a peak value (not
only Java, any environment)?
- Any other comments?

BTW, operating conditions were:

P2/300, 128M running Linux &amp; JDK 1.1.3 - no significant impact on other
programs, except load very close to 1 (for obvious reasons)

On Windows 95 machine, it started to slow the computer down after
approximately 500 threads, and the guy who was performing the test lost
his temper and killed it, so I can't reproduce the graph for that.

No chance to run it on NT, also, couldn't compare Sun &amp; MS JVM
performance.

-- 
Still alive and smile stays on,
Vadim Tkachenko &lt;vt#freehold,crocodile.org&gt;
--
UNIX _is_ user friendly, he's just very picky about who his friends are

-- 
MUD-Dev: Advancing an unrealised future.

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="00634" HREF="msg00634.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>
<ul compact><li><em>From:</em> J C Lawrence &lt;claw#greek,kanga.nu&gt;</li></ul>
<li><strong><A NAME="00626" HREF="msg00626.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>
<ul compact><li><em>From:</em> Ben Greear &lt;greear#cyberhighway,net&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00623.html">[MUD-Dev] Re: How to handle log-outs in a totally dynamic world.</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00625.html">[MUD-Dev] Re: How to handle log-outs in a totally dynamic world.</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00740.html">[MUD-Dev] Re: MURKLE: Wot it is</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00626.html">[MUD-Dev] Re: OT: Java multithreading performance</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00624"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00624"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>[MUD-Dev] Re: MURKLE: Wot it is</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="00866" HREF="msg00866.html">[MUD-Dev] Re: MURKLE: Wot it is</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Wed 03 Jun 1998, 04:35 GMT
<LI><strong><A NAME="00881" HREF="msg00881.html">[MUD-Dev] Re: MURKLE: Wot it is</A></strong>, 
J C Lawrence <a href="mailto:claw#under,engr.sgi.com">claw#under,engr.sgi.com</a>, Thu 04 Jun 1998, 23:54 GMT
</LI>
</LI>
</ul>
</ul>
</ul>
</ul>
</ul>
</ul>
<LI><strong><A NAME="00759" HREF="msg00759.html">[MUD-Dev] Re: MURKLE: Wot it is</A></strong>, 
Ling <a href="mailto:K.L.Lo-94#student,lboro.ac.uk">K.L.Lo-94#student,lboro.ac.uk</a>, Thu 21 May 1998, 17:30 GMT
</LI>
</ul>
</ul>
<LI><strong><A NAME="00740" HREF="msg00740.html">[MUD-Dev] Re: MURKLE: Wot it is</A></strong>, 
jacob langthorn <a href="mailto:jlangthorn#towertechinc,com">jlangthorn#towertechinc,com</a>, Wed 20 May 1998, 20:33 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00624" HREF="msg00624.html">[MUD-Dev] OT: Java multithreading performance</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Sat 16 May 1998, 05:10 GMT
<UL>
<LI><strong><A NAME="00626" HREF="msg00626.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Sat 16 May 1998, 05:38 GMT
<UL>
<LI><strong><A NAME="00630" HREF="msg00630.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Sat 16 May 1998, 13:49 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00634" HREF="msg00634.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>, 
J C Lawrence <a href="mailto:claw#greek,kanga.nu">claw#greek,kanga.nu</a>, Sat 16 May 1998, 18:54 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00622" HREF="msg00622.html">[MUD-Dev] Re: [MUD-Dev]World Size and The "Hot House" Factor  Was Re: PK and my "Mobless MUD" idea</A></strong>, 
John Bertoglio <a href="mailto:alexb#internetcds,com">alexb#internetcds,com</a>, Sat 16 May 1998, 02:45 GMT
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>