Re: how to specialize JVM parameter per process ?
Gary Mulder <[email protected]> Wed, 22 Apr 2015 16:48:05 +0100
| Newsgroups | gmane.comp.java.grinder.user |
|---|---|
| Message-ID | <CAKy9zTCm55LVi7Y7_NYvgv28jXc09X=+q9f__Sd=WnbFdSU32g@mail.gmail.com> |
On 22 April 2015 at 16:36, olivier merlin <[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