You might want to try running java with '-Xmx<suitably large number>'. Of course this is a band-aid; it sounds like there needs to be some garbage collected someplace...
For more information, if you type 'java -X' you will find (at least I do on Linux):
-Xmixed mixed mode execution (default) -Xint interpreted mode execution only
-Xbootclasspath:<directories and zip/jar files separated by :>
set search path for bootstrap classes and resources -Xbootclasspath/a:<directories and zip/jar files separated by :> append to end of bootstrap class path -Xbootclasspath/p:<director
ies and zip/jar files separated by :> prepend in front of bootstrap class path
-Xnoclassgc disable class garbage collection
-Xincgc enable incremental garbage collection -Xloggc:<file> log GC status to a file with time stamps
-Xbatch disable background compilation
-Xms<size> set initial Java heap size -Xmx<size> set maximum Java heap size -Xss<size> set java thread stack size -Xprof output cpu profiling data
-Xfuture enable strictest checks, anticipating future default -Xrs reduce use of OS signals by Java/VM (see documentation)
-Xcheck:jni perform additional checks for JNI functions -Xshare:off do not attempt to use shared class data
-Xshare:auto use shared class data if possible (default) -Xshare:on require using shared class data, otherwise fail.
Good luck,
- Keith
On 9/24/07,
address@hidden <address@hidden> wrote: > > Sorry, > besides that I don't have another clue - especially since I work mostly in Objective C. not in Java. Anyone else in this forum who could help Diego?
> Greetings, > K > > ______________________________________ > > Konrad Richter > McKinsey & Company, Inc. > Herrengasse 1-3
> A-1010 Wien > Austria > > Phone +43 1 5370-6160 > Fax +43 1 5370-6161 > Mobile +49 175 318-6160 > > > > > "Diego Corredor" <
address@hidden> > Sent by: address@hidden > > 21.09.2007 17:44 > > Please respond to
> Swarm Support <address@hidden> > > > To "Swarm Support" <address@hidden> >
> cc > > > Subject Re: [Swarm-Support] OutOfMemoryError > > > > > > > > > Hi again, > > Thanks for the advice, Konrad. I tried to increase the virtual memory as you recommended but it didn't have any effect. I think that there is a constant amount of memory allocated to the JavaSwarm.
> > I know that some programs have a "set memory" command in order to assign a given amount of memory for running. So, I would like to know if there is any way to increase the memory resources used specifically by
java.exe. > > Also, I have checked the memory used by the java application and it always increases until 160MB before it cracks down. The simulation exercise that I am trying to run consists on build a model, run it, extract some statistics from it and then dropping it, using the drop method contained in any swarm implementation object. Is it normal that even when each model is dropped after being run the memory used by
java.exe still increases? > > I would really appreciate any help. > > Thanks, > > Diego Corredor > > > 2007/9/19,
address@hidden <address@hidden>: > > If you run the simulation under Windows: Might help to increase the virtual memory.
> Right Click "My Computer"->Advanced->Performance Settings->Advanced->Virtual Memory Change->enter a higher number for the virtual memory capacity > If you have another system, I unfortunately have no clue...
> > Greetings, > K > > ______________________________________ > > Konrad Richter > McKinsey & Company, Inc. > Herrengasse 1-3
> A-1010 Wien > Austria > > Phone +43 1 5370-6160 > Fax +43 1 5370-6161 > Mobile +49 175 318-6160 > > > > "Diego Corredor" <
address@hidden> > Sent by: address@hidden > > 19.09.2007 16:06 > >
> Please respond to > Swarm Support <address@hidden> > > > > > To "Swarm Support" <
address@hidden> > > cc > > > Subject [Swarm-Support] OutOfMemoryError > > > > > > > > > >
> > Hi Swarmers, > > I am running some simulations in JavaSwarm. I am considering 100 > different scenarios but when the program reaches the 26th scenario an > OutOfMemoryError appears. Is there something I could do to increment
> the memory? > > Thanks, > > Diego Corredor > _______________________________________________ > Support mailing list > address@hidden
> http://www.swarm.org/mailman/listinfo/support > > > > +=========================================================+
> This message may contain confidential and/or privileged > information. If you are not the addressee or authorized to > receive this for the addressee, you must not use, copy, > disclose or take any action based on this message or any
> information herein. If you have received this message in > error, please advise the sender immediately by reply e-mail > and delete this message. Thank you for your cooperation. > +=========================================================+
> > > _______________________________________________ > Support mailing list > address@hidden >
http://www.swarm.org/mailman/listinfo/support > > _______________________________________________ > Support mailing list > address@hidden >
http://www.swarm.org/mailman/listinfo/support > > > > +=========================================================+ > This message may contain confidential and/or privileged
> information. If you are not the addressee or authorized to > receive this for the addressee, you must not use, copy, > disclose or take any action based on this message or any > information herein. If you have received this message in
> error, please advise the sender immediately by reply e-mail > and delete this message. Thank you for your cooperation. > +=========================================================+ > >
> > > _______________________________________________ > Support mailing list > address@hidden >
http://www.swarm.org/mailman/listinfo/support > >