Hi Cidoni, To remotely profile a Solaris WebLogic application server, you will need to perform the following:
1. Install, configure and start the standalone Agent Controller for Solaris. You can download it from the TPTP download page and the instruction is inside the zip file's "getting_started.html" 2. On Solaris, from WebLogic server configuration, there should be a place to specify JVM arguments. There you will need to add the "-XrunpiAgent" option 3. Also on Solaris, from WebLogic Server configuration, there should be a place to specify environment varialbes. There you will need to add the library path pointing the the standalone Agent Controller's "lib" directory. For example, "LD_LIBRARY_PATH =/home/test/tptp-430/lib" 4. Start the WebLogic server 5. On Windows, from Profiling configuration, create a new "Attach - Java Process" configuration and enter the Solaris host information under the "Host" tab. The remote profiling agent will be shown under the "Agent" tab. One note is that the Integrated Agent Controller (IAC) is only being used when the target application is on the same machine as the Eclipse workbench. For all remote profiling scenario, use the standalone Agent Controller. Hope this helps. Regards, Samson Wai ([EMAIL PROTECTED]) Cidoni <[EMAIL PROTECTED] > To Sent by: "TPTP Tracing and Profiling Tools tptp-tracing-prof Project developer discussions" iling-tools-dev-b <[EMAIL PROTECTED] [EMAIL PROTECTED] clipse.org> g cc Subject 12/22/2006 02:06 Re: AM [tptp-tracing-profiling-tools-dev] Profiling weblogic using TPTP Please respond to TPTP Tracing and Profiling Tools Project developer discussions <tptp-tracing-pro filing-tools-dev@ eclipse.org> Hi Samson, That helped and now I am able to profile. Thanks a lot. In my profiling filter set, I have specified to exclude weblogic classes and all com.*, but I still see a few com.* classes being listed in the execution analysis window. Not a problem as of now, but if you know the reason it'll be helpful. As the next step, I'm trying to profile my web application running in a solaris machine. I want to start weblogic server with -XrunpiAgent option in solaris. Can I do that? If yes, where do I specify the piAgent? After that, I assume that I can connect my eclipse, which has the integration agent controller running, to the agent process running in solaris using the solaris machine's host name and port number 10002. Please correct me if I'm wrong. I havent tried this yet, but wanted to check before I move ahead. Also, is there a way to change the port number from 10002 to something else, so that multiple servers running in the same solaris machine can be profiled using different ports at the same time? thanks, Cidoni On 12/21/06, Smith, Randy D <[EMAIL PROTECTED]> wrote: Oooh, OUCH... just noticed it's not only on eclipse.tptp, but also eclipse.newcomer... so cross-posting the response there is in order as well. Just as a minor FYI... my days of following (and trying to help on) eclipse.newcomer are about over, so someone else from TPTP-land might want to start working that group... it's mainly an opportunity to help newbies get over those first initial hurdles we all faced with Eclipse. TPTP Qs pop up about once a week or month or so... and generally I've answered some and referred most back over to eclipse.tptp. I know Asaf Yaffe reads there as well, so there is/might be some ongoing coverage... but without us TPTP Qs there will just linger unanswered, based on my experience. As I said, just an FYI. -- RDS -----Original Message----- From: Smith, Randy D Sent: Thursday, December 21, 2006 6:38 AM To: 'TPTP Tracing and Profiling Tools Project developer discussions' Subject: RE: [tptp-tracing-profiling-tools-dev] Profiling weblogic using TPTP Samson, Cidoni asked the question both on the eclipse.tptp newsgroup and here... I'm not sure what the best procedure is for such duplication, but I hope whatever success is found here makes it over there on the newsgroup as well, both to keep us from suffering from "unresponded Qs" type of metrics, and also for the benefit of those that follow behind and choose the newsgroup as their source of info. Just an FYI. -- RDS -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Samson Wai Sent: Thursday, December 21, 2006 6:24 AM To: TPTP Tracing and Profiling Tools Project developer discussions Subject: Re: [tptp-tracing-profiling-tools-dev] Profiling weblogic using TPTP Hi, Is the WebLogic server started properly? I think there might be a missing step in the bugzilla that you will need to add the Integrated Agent Contorller native library path to your server configuration's PATH environment. In TPTP 4.3 the location is: eclipse\plugins\org.eclipse.hyades.execution.win32.x86_4.3.0.v2006111401 00 Without this in the PATH, the server process might not start properly due to a failure to load the piAgent.dll by the JVM process. Regards, Samson Wai ( [EMAIL PROTECTED]) Cidoni <[EMAIL PROTECTED] > To Sent by: [EMAIL PROTECTED] tptp-tracing-prof lipse.org iling-tools-dev-b cc [EMAIL PROTECTED] g Subject [tptp-tracing-profiling-tools-dev] Profiling weblogic using TPTP 12/21/2006 08:42 AM Please respond to TPTP Tracing and Profiling Tools Project developer discussions <tptp-tracing-pro filing-tools-dev@ eclipse.org> Hi, I am trying to profile my web application running in weblogic 8.1 using eclipse TPTP. Below is the installation info. Eclipse WTP 1.5.2, TPTP 4.3.0, JRE 1.4.2_10 (Same JRE used for eclipse, tptp and Weblogic) OS: Win XP I got to know that eclipse TPTP does not support profile on server feature for weblogic 8.1 server (Ref: https://bugs.eclipse.org/bugs/show_bug.cgi?id=126594 ) I am trying the approach mentioned in the above bug description. ie, I start weblogic 8.1 server within eclipse with the VM argument -XrunpiAgent in the server's launch configuration. I have enabled the Integrated Agent Controller in Eclipse and checked "Always running", "Enable logging" and "Allow remote connections". Remote connection port is set to 10002. I had the old Agent Controller running before, but I have removed it now. Its no more in the system PATH as well. Now, the problem is, when I try to profile and create a new configuration using "Attach - Java Process", it is not listing any agents. An error message "IWAT0225E You must select at least one agent to attach to." is shown on top. The "Hosts" tab has Local Direct Connection and localhost:10002. Test connection on Local Direct Connection shows successful. But on localhost:10002 shows "A Local Direct Connection is currently active. Before starting the Remote Agent Controller(RAC) you need to detach all agents running using this Local Direct Connection". I am stuck with this for couple of days now. Any help on this will be highly appreciated. Thanks in advance, Cidoni _______________________________________________ tptp-tracing-profiling-tools-dev mailing list tptp-tracing-profiling-tools-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-de v _______________________________________________ tptp-tracing-profiling-tools-dev mailing list tptp-tracing-profiling-tools-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-de v _______________________________________________ tptp-tracing-profiling-tools-dev mailing list tptp-tracing-profiling-tools-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev _______________________________________________ tptp-tracing-profiling-tools-dev mailing list tptp-tracing-profiling-tools-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev _______________________________________________ tptp-tracing-profiling-tools-dev mailing list tptp-tracing-profiling-tools-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev