Bug 352229 - Problem for TPTP remote Profiling webapplication running in solaris
Summary: Problem for TPTP remote Profiling webapplication running in solaris
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: Sun Solaris
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Torsten Stolpmann CLA
QA Contact: Torsten Stolpmann CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-15 11:52 EDT by Raja CLA
Modified: 2016-05-05 11:01 EDT (History)
0 users

See Also:


Attachments
screen shot (250.00 KB, application/msword)
2011-07-15 11:56 EDT, Raja CLA
no flags Details
Weblogic server startup Error Log (30.72 KB, text/plain)
2011-07-18 10:24 EDT, Raja CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raja CLA 2011-07-15 11:52:10 EDT
Build Identifier: 

Hi,
I am trying to profile remove web application running on Solaris machine. i have installed Agent controller 4.3 as specified in the below link. And RAserver was started successfully and point port 10002 (verified netstat -an |grep 1000).
IN my windows eclipse work bench, i opened the "Profile Configuration" Dialog & configured remote IP & port. when I clicked the Test connection buttton, it was success. But when i click on profile button i am getting the following error

org.eclipse.tptp.platform.execution.exceptions.AgentControllerUnavailableException
Error: Unable to connect to the Agent Controller.Read timed out

IN the work bench log i do see

!ENTRY org.eclipse.hyades.trace.ui 4 4 2011-07-15 11:49:39.835
!MESSAGE Agent Controller is unavailable under port 10002.  Make sure that the service is started and the port number is correct under preferences. 
!STACK 1
org.eclipse.core.runtime.CoreException: Agent Controller is unavailable under port 10002.  Make sure that the service is started and the port number is correct under preferences. 
	at org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUtility.createCoreException(LauncherUtility.java:124)
	at org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIDelegateHelper.connectToAgentController(TIDelegateHelper.java:504)
	at org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIDelegateHelper.launch(TIDelegateHelper.java:382)
	at org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIJavaLauncherDelegate.launch(TIJavaLauncherDelegate.java:37)
	at org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUtility.delegateInit(LauncherUtility.java:1164)
	at org.eclipse.tptp.trace.ui.provisional.launcher.PrimaryLaunchDelegate.run(PrimaryLaunchDelegate.java:195)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.eclipse.tptp.platform.execution.exceptions.AgentControllerUnavailableException: Error: Unable to connect to the Agent Controller.Read timed out
	at org.eclipse.tptp.platform.execution.client.core.internal.NodeImpl.connect(NodeImpl.java:128)
	at org.eclipse.tptp.platform.execution.util.internal.AgentControllerFactory$EstablishConnection.run(AgentControllerFactory.java:126)
	... 1 more
!SUBENTRY 1 org.eclipse.hyades.trace.ui 4 0 2011-07-15 11:49:39.835
!MESSAGE Agent Controller is unavailable under port 10002.  Make sure that the service is started and the port number is correct under preferences. 
!STACK 0
org.eclipse.tptp.platform.execution.exceptions.AgentControllerUnavailableException: Error: Unable to connect to the Agent Controller.Read timed out
	at org.eclipse.tptp.platform.execution.client.core.internal.NodeImpl.connect(NodeImpl.java:128)
	at org.eclipse.tptp.platform.execution.util.internal.AgentControllerFactory$EstablishConnection.run(AgentControllerFactory.java:126)
	at java.lang.Thread.run(Unknown Source)



machine details
$ uname -a
SunOS webswdcwlbn21s 5.10 Generic_144488-11 sun4u sparc SUNW,Sun-Fire-15000
$ java -version
java version "1.5.0_24-rev"
Java(TM) Platform, Standard Edition for Business (build 1.5.0_24-rev-b05)
Java HotSpot(TM) Server VM (build 1.5.0_24-rev-b05, mixed mode)


Reproducible: Always
Comment 1 Raja CLA 2011-07-15 11:56:38 EDT
Created attachment 199755 [details]
screen shot
Comment 2 Remy Suen CLA 2011-07-17 16:13:13 EDT
Please open issues encountered with TPTP against TPTP.
Comment 3 Torsten Stolpmann CLA 2011-07-18 08:42:29 EDT
Assigned
Comment 4 Torsten Stolpmann CLA 2011-07-18 08:56:53 EDT
Did you follow the instructions found here (Especially the part about adding the -XrunpiAgent)?

http://dev.eclipse.org/mhonarc/lists/tptp-tracing-profiling-tools-dev/msg00521.html

Development for the Agent Controller for Solaris has been dropped with the TPTP 4.4 release, so there is definitly no later version than the one from TPTP 4.3 available.
Comment 5 Raja CLA 2011-07-18 10:22:34 EDT
Hi Stolpman,
Thanks lot for the immediate response. Really appreciate your support.

As per the link below my understanding is either we can profile from Hyades eclipse workbench or from command line(-xrunpiAgent)

http://www.eclipse.org/tptp/home/downloads/installguide/agentcontroller_33/solaris_sparc/getting_started.html

so i tried to profile the remote application from my windows Eclipse "Profiler workbench". Note the Profile configuration ->External Java Application , i am able to test the connection succesfully for the port 10002. But when i click the profile i am getting the error mentioned earlier. Pls refer the screen short.


And separately i have tried to use -xrunpiAgent in my solaris weblogic start up script. my weblogic Admin server was started successfully. But when i start the managed server, it JVM is not initialized/started due to the error

ERROR:
Error occurred during initialization of VM
Could not find agent library on the library path or in the local directory: piAgent

Note I have configured all as you specified in the link

http://dev.eclipse.org/mhonarc/lists/tptp-tracing-profiling-tools-dev/msg00521.html


still the same attached server log, where you can see the details.

Please help to reslove this i was stuck for about 4 days due to this issue.

YOur support would greately appreciable.

thank you
You can also reach me at (+1) 416 947 2911. 

Regards
raja
Comment 6 Raja CLA 2011-07-18 10:24:08 EDT
Created attachment 199837 [details]
Weblogic server startup Error Log
Comment 7 Torsten Stolpmann CLA 2011-07-18 10:50:49 EDT
(In reply to comment #6)
> Created attachment 199837 [details]
> Weblogic server startup Error Log

(In reply to comment #5)
> Hi Stolpman,
> Thanks lot for the immediate response. Really appreciate your support.
> 
> As per the link below my understanding is either we can profile from Hyades
> eclipse workbench or from command line(-xrunpiAgent)
> 
> http://www.eclipse.org/tptp/home/downloads/installguide/agentcontroller_33/solaris_sparc/getting_started.html
> 
> so i tried to profile the remote application from my windows Eclipse "Profiler
> workbench". Note the Profile configuration ->External Java Application , i am
> able to test the connection succesfully for the port 10002. But when i click
> the profile i am getting the error mentioned earlier. Pls refer the screen
> short.
> 
The article on the link you posted is related to the Hyades (3.x) release and may contain outdated information.

The screenshot attachment shows a RapidSQL application which I cannot relate to this problem.

> And separately i have tried to use -xrunpiAgent in my solaris weblogic start up
> script. my weblogic Admin server was started successfully. But when i start the
> managed server, it JVM is not initialized/started due to the error
> 
> ERROR:
> Error occurred during initialization of VM
> Could not find agent library on the library path or in the local directory:
> piAgent
> 
> Note I have configured all as you specified in the link
> 
> http://dev.eclipse.org/mhonarc/lists/tptp-tracing-profiling-tools-dev/msg00521.html
> 
From what I see the changes you made regarding point 3 (LD_LIBRARY_PATH) seem to not be picking up your local AgentController/bin directory.

> 
> still the same attached server log, where you can see the details.
> 
> Please help to reslove this i was stuck for about 4 days due to this issue.
> 

You should not hang your hope to high on this, as support for Solaris as a Agent Controller platform has been drpped for several years. 

> YOur support would greately appreciable.
> 

As I have no hands on experience regarding this platform, I can only point you to relevant material at this point.

Regards,

Torsten