1998Q2/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: OT: Java multithreading performance -->
<!--X-From-R13: "Xba O. Znzoreg" <wyflfvapNvk.argpbz.pbz> -->
<!--X-Date: Mon, 18 May 1998 22:32:05 &#45;0700 -->
<!--X-Message-Id: 199805190531.AAA17215@dfw&#45;ix16.ix.netcom.com -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 9805181659.8xi6@ami&#45;cg.GraySage.Edmonton.AB.CA -->
<!--X-Reference: Pine.LNX.3.96.980518204449.467A&#45;100000#shamen,cyberhighway.net -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: OT: Java multithreading performance</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:jlsysinc#ix,netcom.com">
</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="msg00687.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00689.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg00685.html">Previous</a>
&nbsp;|&nbsp;<a href="msg00727.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#00688">Author</A>
&nbsp;|&nbsp;<A HREF="#00688">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#00688">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: OT: Java multithreading performance</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: [MUD-Dev] Re: OT: Java multithreading performance</LI>
<LI><em>From</em>: "Jon A. Lambert" &lt;<A HREF="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</A>&gt;</LI>
<LI><em>Date</em>: Tue, 19 May 1998 01:32:48 -5</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>
On 18 May 98, Ben Greear wrote:
&gt; On Mon, 18 May 1998, Chris Gray wrote:
&gt; 
&gt; &gt; [Vadim Tkachenko:]
&gt; &gt; 
&gt; &gt; :I have the logging routine implemented in such a way that it accepts the
&gt; &gt; :messages and prints... well, makes them available to the final logging
&gt; &gt; :device, in the thread runninh with background priority. When I ran this
&gt; &gt; :est, I had to disable all that stuff because the log was becoming silent
&gt; &gt; :after some number of threads (don't remember the exact number, though).
&gt; &gt; 
&gt; &gt; Understood. Determining what the absolute number of threads it can support
&gt; &gt; is academically interesting, but not real useful. Determining the number
&gt; &gt; of MUD-server-like threads that it can support is more useful. Your
&gt; &gt; result is closer to that. So, if a server design in Java intends to use
&gt; &gt; a thread per client, and each client should have an open socket, then at
&gt; &gt; least on Linux, the socket-per-process limit is likely to be reached before
&gt; &gt; any inherent Java limit. Of course, there is still the CPU power limit,
&gt; 
&gt; The socket limit has me worried.  I can't think of a clean way to get
&gt; around this in Java.  I suppose I could do a 
&gt; 
&gt; System.??("java AnotherServerBackEnd")
&gt; 
&gt;  but that seems messy at best.
&gt; Anyone got around this, or know of a project which has tried?
&gt; 

What socket limits?  Isn't this dependent on the TCP/IP stack you are 
using more so than Java?  For my implementation, 32767 is the 
maximum number of sockets I can open per process.  I can assure you 
that this limit is well above any practical thresholds as all 
hardcoded limitations should be.  :)

--
--/*\ Jon A. Lambert - TychoMUD     Internet:jlsysinc#ix,netcom.com /*\--
--/*\ Mud Server Developer's Page &lt;<A  HREF="http://www.netcom.com/~jlsysinc">http://www.netcom.com/~jlsysinc</A>&gt; /*\--
--/*\   "Everything that deceives may be said to enchant" - Plato   /*\--

-- 
MUD-Dev: Advancing an unrealised future.

</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="00667" HREF="msg00667.html">[MUD-Dev] Re: OT: Java multithreading performance</A></STRONG>
<UL><LI><EM>From:</EM> cg#ami-cg,GraySage.Edmonton.AB.CA (Chris Gray)</LI></UL></LI>
<LI><STRONG><A NAME="00685" HREF="msg00685.html">[MUD-Dev] Re: OT: Java multithreading performance</A></STRONG>
<UL><LI><EM>From:</EM> Ben Greear &lt;greear#cyberhighway,net&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg00687.html">[MUD-Dev] Re: Using HTML for a Mud character generator</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg00689.html">[MUD-Dev] Java multithreading test source</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg00685.html">[MUD-Dev] Re: OT: Java multithreading performance</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg00727.html">[MUD-Dev] Re: OT: Java multithreading performance</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#00688"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#00688"><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: OT: Java multithreading performance</STRONG>, <EM>(continued)</EM>
<ul compact>
<LI><strong><A NAME="00642" HREF="msg00642.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sun 17 May 1998, 17:16 GMT
<UL>
<LI><strong><A NAME="00647" HREF="msg00647.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>, 
Vadim Tkachenko <a href="mailto:vt#freehold,crocodile.org">vt#freehold,crocodile.org</a>, Sun 17 May 1998, 21:11 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="00667" HREF="msg00667.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Mon 18 May 1998, 17:17 GMT
<UL>
<LI><strong><A NAME="00685" HREF="msg00685.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>, 
Ben Greear <a href="mailto:greear#cyberhighway,net">greear#cyberhighway,net</a>, Tue 19 May 1998, 03:50 GMT
<UL>
<LI><strong><A NAME="00688" HREF="msg00688.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Tue 19 May 1998, 05:32 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="00727" HREF="msg00727.html">[MUD-Dev] Re: OT: Java multithreading performance</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 20 May 1998, 13:49 GMT
</LI>
</ul>
</LI>
<LI><strong><A NAME="00627" HREF="msg00627.html">[MUD-Dev] Re: MURKLE: Wot it is</A></strong>, 
Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 16 May 1998, 06:02 GMT
<UL>
<LI><strong><A NAME="00709" HREF="msg00709.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>, Tue 19 May 1998, 19:33 GMT
</LI>
</UL>
<UL>
<li>&lt;Possible follow-up(s)&gt;<br>
<LI><strong><A NAME="00643" HREF="msg00643.html">[MUD-Dev] Re: MURKLE: Wot it is</A></strong>, 
Koster, Raph <a href="mailto:rkoster#origin,ea.com">rkoster#origin,ea.com</a>, Sun 17 May 1998, 21:16 GMT
</LI>
</UL>
</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>