|
From: Andrew P. <ape...@gm...> - 2007-06-28 02:16:23
|
Hi Leif, There could be a conceptual misunderstanding on my side. Giving it another thought, I realize there's a native process launching JVM, which already has WrapperManager java class and launching the main app in the same thread. For some reason I confused it for 2 JVMs. I'm no C guru, but don't think this source needs to be modified at the moment. Cascading includes look promising. We'll still need some custom logic detecting the platform, JDK level, etc, so I'm thinking of adding a snippet in Mule's launch script that would be triggered for a specific command-line parameter and could launch my super-duper little proggy to do the magic and write the cascading include. If we can solve usability problems I would be happy to have it bundled and available at runtime. Providing something like -profiler option to the Mule launch script would launch the cascading config generation logic, otherwise it would be ignored safely. Thanks! On 6/27/07, Leif Mortenson <le...@ta...> wrote: > > Andrew, > I am not exactly clear as to where your java class will be running. > The -X JVM options need to be set before the JVM is launched by the > Wrapper. > > What kinds of situations will you be doing this? Is it only for > development or do you need this for run time? > > Basically, I would use a cascading configuration file to do this. > That way you could completely rewrite that file each time without > worrying about the contents of your main wrapper.conf file. > http://wrapper.tanukisoftware.org/doc/english/props-cascading.html > > The Java command line is created in the wrapper.c source file of > the Wrapper. Discuss any changes with me before you make them > as it may make sense to change my source as well. > > Cheers, > Leif > > Andrew Perepelytsya wrote: > > Hi guys, > > > > We are trying to embed a profiler agent in the application launched > > with the > > wrapper. The -X JVM option value depends on the JDK version used. To > > better > > get the idea, have a look at > > http://mule.mulesource.org/display/MULE/Profiling+Mule+with+YourKit > > > > So, I can manually edit the wrapper.conf and set the params. The idea > > is to > > automate the process and put this logic in a Java class that would > modify > > the launch parameters for the main JVM. So far, I found no > straightforward > > way to do it. Is it possible? Could you please point to the location a > > child > > JVM options are constructed? > > > > Thanks in advance, > > Andrew > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |