Hi you can write a preprocessor or a listener to null out or remove the variables. I assume you are doing something iteratively? You might experiment with the reset bsh.interpreter flag For out of memory
<jvmarg value="-Xmx1024m"/> -- max Heap size , you have set it to 1 GB > <jvmarg value="-XX:MaxPermSize=64m"/> -- max Perm space , should be > enough Increasing Xmx may cause the problem to show up later or might even fix it , but you should have enough RAM on your machine.. regards deepak On Thu, May 21, 2009 at 11:06 AM, Andyy <andlo...@gmail.com> wrote: > > I get you, that makes sense. I've actually been using ant all along but > have > been > getting out of memory errors and taught Ant might have something to do with > it. > > I ran jprofiler on it and It seems the beanshell variables are using an > increasing > amount of memory to the point of it causing an out of Memory exception. Can > editing of the following properties clear these variables at the end of a > thread > without having a heavy effect on performance?? > > I don't understand too much the effects of the properties. I really just > added them to the xml > when running in ant to change the Xmx size and saw they were available too. > > <jvmarg value="-server"/> > <jvmarg value="-Xms256m"/> > <jvmarg value="-Xmx1024m"/> > <jvmarg value="-XX:NewSize=128m"/> > <jvmarg value="-XX:MaxNewSize=1024m"/> > <jvmarg value="-XX:PermSize=64m"/> > <jvmarg value="-XX:MaxLiveObjectEvacuationRatio=50%"/> > <jvmarg value="-XX:SurvivorRatio=8"/> > <jvmarg value="-XX:MaxTenuringThreshold=2"/> > <jvmarg value="-Dsun.rmi.dgc.client.gcInterval=60000"/> > <jvmarg value="-XX:MaxPermSize=64m"/> > > Any suggestions or info on these would be greatly appreciated (and I > apologise for going off topic slightly) > > Thanks, > Andyy... > > > > > Deepak Shetty wrote: > > > > Jmeter only has as much memory as the Java VM (-Xmx) which is the same > for > > ANT (though yes you would have ANT's footprint), I prefer ANT myself , > > more > > convenient , portable etc , havent had any memory issues that wouldnt > have > > happened on the command line.we pass environment specific parameters etc > > easily from the Ant script... > > > > I guess its a matter of personal preference. I dont know if ANT works > when > > you are using Jmeter to run clients remotely so that might be another > > reason > > for you... > > > > regards > > deepak > > > > On Thu, May 21, 2009 at 10:19 AM, Andyy <andlo...@gmail.com> wrote: > > > >> > >> Hi Deepak, > >> > >> Cheers for the reply. And tell me thou in terms of Stress Testing I > would > >> see > >> the advantages you added as minor (as i may not want to include them in > >> my > >> build > >> be manual monitoring its progress and results too large to convert to > >> html) > >> whereas > >> on the downside Ant itself will require extra Memory on the box. > Reducing > >> its > >> availability to JMeter. > >> > >> Whereas running from the cmd line JMeter can make use of all available > >> memory. > >> > >> So in terms of handling resources etc where would the advantages lie in > >> Ant?? > >> > >> Thanks again, > >> Andyy... > >> > >> > >> > >> > >> Deepak Shetty wrote: > >> > > >> > Well all the advantages that ANT provides (You can make the test part > >> of > >> > your build, be notified of failures, generate the HTMl report by > >> styling > >> > etc) > >> > I > >> > > >> > On Thu, May 21, 2009 at 9:29 AM, Andyy <andlo...@gmail.com> wrote: > >> > > >> >> > >> >> Evening, > >> >> > >> >> When performance testing what are the benefits to using Ant versus > >> >> the command line in non GUI Mode??? Or vise versa??? > >> >> > >> >> Cheers.. > >> >> > >> >> -- > >> >> View this message in context: > >> >> > >> > http://www.nabble.com/Performance-Testing-with-JMeter-on-the-cmd-line-or-Ant----tp23656302p23656302.html > >> >> Sent from the JMeter - User mailing list archive at Nabble.com. > >> >> > >> >> > >> >> --------------------------------------------------------------------- > >> >> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org > >> >> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org > >> >> > >> >> > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/Performance-Testing-with-JMeter-on-the-cmd-line-or-Ant----tp23656302p23657067.html > >> Sent from the JMeter - User mailing list archive at Nabble.com. > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org > >> For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/Performance-Testing-with-JMeter-on-the-cmd-line-or-Ant----tp23656302p23657806.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org > For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org > >