|
From: Tasso A. <ta...@rb...> - 2010-08-18 15:51:03
|
Any ideas? -----Original Message----- From: Tasso Angelidis [mailto:ta...@rb...] Sent: Friday, August 13, 2010 2:45 PM To: wra...@li... Subject: Re: [Wrapper-user] JAVA Visual VM (Profiler) doesn't detectappsrunning in service mode. It looks like the same path. I even put DEBUG on to see what PATH variables are being used. This is what I get... INFO | wrapper | 2010/08/13 14:27:47 | PS--- | JAVA_HOME=C:\jdk1.6.0_21 ... INFO | wrapper | 2010/08/13 14:27:47 | PS--- | TEMP=C:\WINDOWS\TEMP INFO | wrapper | 2010/08/13 14:27:47 | PS--- | TMP=C:\WINDOWS\TEMP ... INFO | wrapper | 2010/08/13 14:27:48 | Command: "C:\jdk1.6.0_21\bin\java" -server ...... So then, I open a command window and run... C:\>SET TMP=C:\WINDOWS\TEMP C:\>C:\jdk1.6.0_21\bin\jvisualvm.exe The wrapper shows up as <unknown application> (pid 1234) And the main window where the telemetry is supposed to be, indicates "Not supported for this JVM" -----Original Message----- From: Christian Mueller [mailto:chr...@ta...] Sent: Thursday, August 12, 2010 10:25 PM To: wra...@li... Subject: Re: [Wrapper-user] JAVA Visual VM (Profiler) doesn't detect appsrunning in service mode. Tasso, It seems the jvm version of the application running as service and the version of VisualVM is different. I assume that you have specified in your conf file "wrapper.java.command=java" This will tell the wrapper to look up the java command from the PATH Variable. However when running as service it is most likely that the PATH variable is not the same as the one for your user account. This most likely leads to a different jvm version being used rather than the one you maybe are intending to use. Please set this parameter in your conf file to verify this: wrapper.java.command.loglevel=INFO This will print out the command line of the java process immediately before creating the java process. The first token is the path to the jvm. Hope this helps you out. Cheers, Christian On Fri, Aug 13, 2010 at 2:51 AM, Tasso Angelidis <ta...@rb...> wrote: > I tried. Now it seems to detect the app but I get no telemetry data. > This is my conf... > > #******************************************************************** > # Wrapper License Properties (Ignored by Community Edition) > #******************************************************************** > # Include file problems can be debugged by removing the first '#' > # from the following line: > ##include.debug > #include ../conf/wrapper-license.conf > ##include ../conf/wrapper-license-%WRAPPER_HOST_NAME%.conf > set.TMP=../TMP > > Do I have to explicitly set the path? It seems to work the temp data got > created and jvisualvm finds the application PID, but it's not displaying > any telemetry. It says "not supported for this vm" > > > -----Original Message----- > From: Christian Mueller [mailto:chr...@ta...] > Sent: Tuesday, August 10, 2010 4:14 AM > To: wra...@li... > Subject: Re: [Wrapper-user] JAVA Visual VM (Profiler) doesn't detect > appsrunning in service mode. > > Tasso, > > The temp directory of Visual VM and the java application run as > service is different, so they can not find each other instantly. > > However there is a workaround to achieve what you are trying to do. > > Please set the environment variable TMP for the wrapper process in > your conf file: > > set.TMP=C:\tmp > > and start the wrapper as service. > > Now start a console and set the TMP environment variable to the same > value you specified in the conf file: > > set TMP=C:\tmp > > after that start jvisualvm > > C:\Program Files\...\jvisualvm.exe > > Visual VM should now be able to list the java process. > > Hope this works out for you. > > Cheers, > Christian > > > > > On Mon, Aug 9, 2010 at 10:24 PM, Tasso Angelidis <ta...@rb...> > wrote: >> If I run my application with the wrapper as Windows service Java > Visual VM >> doesn't detect it. But if I run the application using console mode of > the >> wrapper it gets detected. >> >> > ------------------------------------------------------------------------ > ------ >> This SF.net email is sponsored by >> >> Make an app they can't live without >> Enter the BlackBerry Developer Challenge >> http://p.sf.net/sfu/RIM-dev2dev >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> >> > > ------------------------------------------------------------------------ > ------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |