Re: how to specialize JVM parameter per process ?

Olivier <[email protected]> Thu, 23 Apr 2015 07:17:17 +0200
Newsgroups gmane.comp.java.grinder.user
Message-ID <[email protected]>
Yes You are right, This a good solution to track our memory leak
Well done Phil !
Olivier

-----Message d'origine-----
De : "Philip Aston" <[email protected]>
Envoyé : ‎22/‎04/‎2015 23:39
À : "grinder-use" <[email protected]>
Objet : Re: [Grinder-use] how to specialize JVM parameter per process ?

I'd use a separate Agent for your special worker.

Then you can start that Agent with

  java -Dgrinder.jvm.arguments="blah blah blah" net.grinder.Grinder

to override the values in grinder.properties or supplied by the console.

- Phil

On 22/04/15 17:58, Olivier wrote:
> Hi Gary
> The problem is that the worker processes are spawned by the agent, so
> your suggestion cannot work.
> Olivier
> ------------------------------------------------------------------------
> De : Gary Mulder <mailto:[email protected]>
> Envoyé : ‎22/‎04/‎2015 17:52
> À : grinder-use <mailto:[email protected]>
> Objet : Re: [Grinder-use] how to specialize JVM parameter per process ?
>
> On 22 April 2015 at 16:36, olivier merlin <[email protected]
> <mailto:[email protected]>> wrote:
>
>     Hi,
>
>     does someone know how to have one grinder.jvm.arguments parameter
>     per worker ?
>     I would like to trace a memory leak issue on 2 processes with:
>
>     grinder.jvm.arguments=-verbosegc -XX:+PrintGCDateStamps
>     -XX:+PrintGCDetails -XX:+PrintTenuringDistribution
>     -Xloggc:/tmp/loggc.txt
>
>     The problem is that i have only one parameter, so only one file ...
>
>
> Assuming I understand what you are asking, if you're using Linux you
> could wrap the java executable in a script on the server where you
> want to add the extra parameters, e.g. something like:
>
>     mv /usr/bin/java /usr/bin/java.orig
>
>     cat > /usr/bin/java <<EOF
>     #!/bin/sh
>
>     /usr/bin/java.orig <my-debug-params> $*
>     EOF
>
>     chmod +x /usr/bin/java
>
>
> Gary
>



------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF

_______________________________________________
grinder-use mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/grinder-use