Re: Available memory and limit on thread creation

From: marcus (marcus_at_welby.com)
Date: 07/07/04


Date: Tue, 06 Jul 2004 17:34:35 -0700

OK, I did not read all the replies (most of them over my head!), so this
might have been covered . . .

Your idea of using virtual IP's or another mechanism to run multiple
JVM's seems sound for various reasons. You mentioned server farms,
which indicates you will need to do some amount of distributed
processing eventually anyway, so the logic of distributing the load will
not change dramatically from multiple JVM's or multiple machines.

I use apache to handle connect to tomcat through mod_jk, which specifies
an internal port (JkMount /shop/servlet/* ajp12). It is easy enough for
apache to mount to multiple internal ports using their virtual server
based on the domain of the request, so I wouldn't have to mess with IP's
or even ports (mydomain.com:8080).

Since you already have load balancing in the final equasion, it seems to
me the load balancer could be configured to make requests on
loader1.mydomain.com, loader2.mydomain.com, etc, which transparently
point to separate boxes or separate JVM's on a given box, and you can
deal with the fine points of balancing and maxamising server usage (also
over my head *grin*) when the load is actually present.

(My internal editor suggests the load balancer might have to resort to
rewriting to specific ports like loader1.mydomain.com:8081 and you may
have to configure various apps to start and run listening on
corresponding ports, rather than having another app like apache
distributing requests, but that seems trivial.)

-- clh

Joseph Dionne wrote:
> I am using Linux 2.4 with JVM 1.4.2_04. I have noticed a limit to the
> number of threads that can be created. I tried many settings of "-Xmx"
> and "-Xss" and the largest number of threads I can launch is 1015. So,
> I have several questions.
>
> First, does available memory limit number of threads?
> Second, if available memory does limit the number of threads, is there a
> rule of thumb on how to calculate that limit?
> Finally, exactly what affect do "-Xmx" and "-Xss" have to the VM and do
> they affect thread memory at all?
>
> thanks
> Joseph
>



Relevant Pages

  • Re: UDP socket with multiple ports
    ... class to handle multiple ports. ... is not interely the same but it proves that the Socket class in special ... cases can handle multiple addresses. ... I'll take a look at DirectPlay and if it doesn't have build in support ...
    (microsoft.public.dotnet.framework)
  • Re: Utility of find single set bit instruction?
    ... register multiple data result, dependence checks seem relatively ... Inner L1 scheduler, S1, with a bitmask scheduler. ... Since machines like Nehalem have incomplete ports and bypasses, they are already solving the hard problem, or scheduling N*2 input uops onto fewer ports and bypasses. ... I've been thinking more and more of not necessarily doing parallel decode, rename, etc., of a single uop. ...
    (comp.arch)
  • Re: [opensuse] Moving to IPv6
    ... I don't have to open up multiple ... ports in the firewall to get to internal machines, ... I suspect you're misreading something. ... have to resort to non-standard ports or ssh relaying. ...
    (SuSE)
  • Re: Efficient Multi-Ported Memories for FPGAs
    ... implemented using only the fabric of an FPGA, ... read ports as the big memory appears to have. ... a block RAM with required number of multiple read/write ports using ...
    (comp.arch.fpga)
  • Re: Question abut threads
    ... The TcpListener class internally addresses any concurrency issue with respect to simultaneous, multiple connection requests. ... And any other concurrency issue that might exist when using the same port will exist when using different ports. ... I wasn't eble to receive data more than once so I took it out of the loop. ...
    (microsoft.public.dotnet.languages.csharp)