Re: Generating JXTA_HOME directories for multiple peers for testing purposes

James Todd <[email protected]> Wed, 10 May 2006 02:38:32 -0700
Newsgroups gmane.comp.java.jxta.user
Message-ID <[email protected]>
some quick (and late night) thoughts:

  work is underway to run j2se platform in memory only

    basically passing of config data as objects vs a file ref and cache 
management
    refactoring

  port ranges are supported for tcp transports such that upon startup, 
the jxta peer
  will randomly check for a new port w/in a range in the event the 
specified port
  is busy

    http transports are not supported as such at this time given the 
granularity of
    control needed to so the same as is done w/ tcp is a bit lower, in 
this case w/in jetty

  peer names need not be unique ... although it can make debugging and 
the like
  difficult. i often specify a peer name as 
System.getProperty("user.name") + timestamp.

  for programatic configuration, i use ext:config:

    http://wiki.java.net/bin/view/Jxta/ExtConfig

    note: issue #1514 is nearing finalization, i use this patch in my 
day-to-day

 hth,

- james

--

James Todd :: blogs.sun.com/gonzo | weblogs.java.net/blog/gonzo

MyJXTA :: use it - learn it - do it

Java == platform independence
XML  == application independence
JXTA == network independence

Secure End-to-End Computing 



Igor Mekterovic wrote:

>Hi all,
>
>I would like to run hundreds and/or thousands of peers on local machine(and
>other machines in LAN).
>
>AFAIK, to have multiple peers running on the same computer every peer
>instance has to have it's own JXTA_HOME directory and:
>
>- peers must have different names (not sure about this)
>- peers must run on different ports
>
>
>I've been reading source code of http://bench.jxta.org/ and I can see that
>they only set peer name and not the port. Furthermore, in readme.txt it is
>said:
>-------
>Notes on running the Load Tests
>..
>This will launch three peers in separate subdirs - p0, p1 and p2. You
>should name the three peers p0, p1 and p2 in the configuration dialogs
>for the three peers that will popup one after the other.
>...
>-------
>
>I don't want to set those ports by hand in the popups for hundreds of peers.
>
>Finnaly the question:
>- Is there a way to generate JXTA_HOME directories for multiple peers
>programmatically? Is there a way to generate "empty" JXTA_HOME dirs with
>different names and ports?
>
>- And, while we're on the subject, does anybody have any experience with
>running multiple peers on the same PC, e.g. how many peers were you able to
>run on what confuguration?
>
>Thanks in advance,
>
>Igor
>
>
>
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [email protected]
>For additional commands, e-mail: [email protected]
>
>  
>