Hi again,<br><br>I have tried the same test with Eclipse and your suggestions worked fine. I managed to scale up my simple experiment to 1000 agents with no problem and I am only having a difficulty with 2000 which could be down again to certain settings such as number of threads in the pool. I can only assume that NetBeans and the Idistro CougaarDev module do not work as they should. I also assume that you guys all use Eclipse and CougaarIDE for your development which can make the difference. It would be worth putting down your suggestion for preferred IDE. <br>
<br>Are the warnings:<br><br>WARN [DirectSysStatSupplier] - No handler for Memory on platform Mac OS X<br>
WARN [DirectSysStatSupplier] - No handler for CPU on platform Mac OS X<br>
WARN [DirectSysStatSupplier] - No handler for Sockets on platform Mac OS X<br><br>something serious I have to look into? Do you believe they would cause a problem later on?<br><br><br>Many Thanks<br>Dimitri<br><br><br><br>
<br><br><br><br><div><span class="gmail_quote">On 05/03/2008, <b class="gmail_sendername">Todd Wright</b> <<a href="mailto:twright@bbn.com">twright@bbn.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dimitrios Traskas wrote:<br> > Hi there<br> ><br> > thanks for the replies. I have tried to set the <vm_parameter><br> > -Xmx1024m </vm_parameter> in my society.xml file within my project and<br> > no luck. I also modified the configuration file of Netbeans to increase<br>
> the Java heap space to 1GB and no luck with that either.<br> <br> <br>Are you sure this value is being passed to the JVM?<br> <br> Try adding this to your test plugin:<br> System.out.println("Max heap size: "+Runtime.getRuntime().maxMemory());<br>
<br> I tested this on my Linux box. With no "-Xmx" it prints:<br> Max heap size: 66650112 (64mb)<br> With "-Xmx1024m" it prints:<br> Max heap size: 1065484288 (1016mb)<br> <br><br> > I then looked<br>
> at the parameters in SimpleAgent.xsl and I could not understand what I<br> > need to change there.<br> <br> <br>You shouldn't need to edit that file. There are some -D flags you could set,<br> but that should not be necessary. For details, see:<br>
<a href="http://cougaar.cougaar.org/software/latest/OnlineManual/Templates.html">http://cougaar.cougaar.org/software/latest/OnlineManual/Templates.html</a><br> <br><br> > Is there an example that I can use, apart from the<br>
> code examples in ping and mesh tutorials?<br> <br> <br>No, I think your simple example is the right place to start.<br> <br> I think that the -Xmx value is not being passed to the JVM, as noted above.<br> <br><br> ><br>
> Sorry for the repeated questions but I do need to get to the bottom of<br> > this. Do you think there might be a problem with using Netbeans and the<br> > Idistro module instead of Eclipse?<br> <br> <br>I don't know how that IDE passes the -D and -X flags to the JVM.<br>
<br> You might want to try running your example from the command line.<br> <br> Todd<br> <br> ><br> ><br> > Thanks<br> > Dimitri<br> </blockquote></div><br>