Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » TPTP-Agent Controller on Linux
TPTP-Agent Controller on Linux [message #142747] Mon, 22 June 2009 21:55 Go to next message
Dave is currently offline DaveFriend
Messages: 1
Registered: July 2009
Junior Member
Hi,

I've got an app that I run from a script on a Linux x86 box. I've
installed the Agent Controller on there and run ACStart. I've added the
-agentlib... to the java command line as specified in the documentation.
All the LD_LIBRARY_PATH and PATH variables are set up correctly.

I'm running eclipse ganymede with the latest TPTP client software and have
tried to create an external application to profile. I've added the linux
host on the default port and tested the connection which was successful.
But when I go to the Agents tab and press refresh, nothing comes up. I've
tried this when the application is running to no avail.

I want to be able to remotely attach an eclipse TPTP profiler, running on
Windows, to an app running on Linux.

I have come across some pages on the net that say that agent discovery on
linux isn't supported but they're from about 2006-7 on version 4.0 or
similar of TPTP.

Has the situation changed? Can I do what I want to try and do? If so,
what am I doing wrong? Is there a help page somewhere that explains what
needs to be done to attach to and remotely profile an application on a
linux platform.

If there is no such documentation and I can get it to work, I would be
more than happy to document it for future users.

Many thanks,

Dave
Re: TPTP-Agent Controller on Linux [message #142825 is a reply to message #142747] Wed, 24 June 2009 18:47 Go to previous messageGo to next message
Eugene Chan is currently offline Eugene ChanFriend
Messages: 287
Registered: July 2009
Senior Member
Hi Dave,

Have you setup your Agent Controller on the Linux machine to be remote
accessible? That is part of the configuration during AC setup process. If
you allow ALL host connection, then your Linux process should be enabled for
discovery and attach for monitoring.

If you already done that, could you attach the serviceconfigi.xml content in
your reply?

Eugene


"Dave " <davehallam@yahoo.com> wrote in message
news:ea7ec857c279f09153487f8ab57876d6$1@www.eclipse.org...
> Hi,
>
> I've got an app that I run from a script on a Linux x86 box. I've
> installed the Agent Controller on there and run ACStart. I've added
> the -agentlib... to the java command line as specified in the
> documentation. All the LD_LIBRARY_PATH and PATH variables are set up
> correctly.
>
> I'm running eclipse ganymede with the latest TPTP client software and have
> tried to create an external application to profile. I've added the linux
> host on the default port and tested the connection which was successful.
> But when I go to the Agents tab and press refresh, nothing comes up. I've
> tried this when the application is running to no avail.
>
> I want to be able to remotely attach an eclipse TPTP profiler, running on
> Windows, to an app running on Linux.
>
> I have come across some pages on the net that say that agent discovery on
> linux isn't supported but they're from about 2006-7 on version 4.0 or
> similar of TPTP.
>
> Has the situation changed? Can I do what I want to try and do? If so,
> what am I doing wrong? Is there a help page somewhere that explains what
> needs to be done to attach to and remotely profile an application on a
> linux platform.
>
> If there is no such documentation and I can get it to work, I would be
> more than happy to document it for future users.
>
> Many thanks,
>
> Dave
>
Re: TPTP-Agent Controller on Linux [message #498856 is a reply to message #142747] Wed, 18 November 2009 19:55 Go to previous messageGo to next message
Ray Hurst is currently offline Ray HurstFriend
Messages: 121
Registered: July 2009
Senior Member
Was this issue resolved?
I have the same issue.
Attached is my serviceconfig.xml and srvicelog.log files.
Ray
Re: TPTP-Agent Controller on Linux [message #499052 is a reply to message #498856] Thu, 19 November 2009 16:17 Go to previous messageGo to next message
Eugene Chan is currently offline Eugene ChanFriend
Messages: 287
Registered: July 2009
Senior Member
Hi Ray,

Your files are not attached to your post.

Would you be able to paste the content of your files here?

Eugene

"Ray Hurst" <rhurst2@cox.net> wrote in message
news:he1jem$35v$1@build.eclipse.org...
> Was this issue resolved?
> I have the same issue.
> Attached is my serviceconfig.xml and srvicelog.log files.
> Ray
Re: TPTP-Agent Controller on Linux [message #499115 is a reply to message #142747] Thu, 19 November 2009 22:48 Go to previous messageGo to next message
Ray Hurst is currently offline Ray HurstFriend
Messages: 121
Registered: July 2009
Senior Member
Here is my servicecinfig.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<AgentControllerConfiguration>
<AgentControllerEnvironment configuration="default">
<Variable name="JAVA_PATH" position="replace" value="/opt/jre1.6.0_07/bin/java"/>
<Variable name="RASERVER_HOME" position="replace" value="/mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0"/>
<Variable name="TPTP_AC_HOME" position="replace" value="%RASERVER_HOME%"/>
<Variable name="TPTP_AC_CONFIG_HOME" position="replace" value="%RASERVER_HOME%/config"/>
<Variable name="PLUGINS_HOME" position="replace" value="/mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0/plugins "/>
<Variable name="LD_LIBRARY_PATH" position="prepend" value="%RASERVER_HOME%/lib"/>
<Variable name="SYS_TEMP_DIR" position="replace" value="%TEMP%"/>
<Variable name="LOCAL_AGENT_TEMP_DIR" position="replace" value="%SYS_TEMP_DIR%"/>
<Variable name="CLASSPATH_ORG_APACHE_COMMONS_LOGGING" position="append" value=" /mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0/plugins/org.a pache.commons.logging_1.0.4.v200904062259.jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_CORE_COMMANDS" position="append" value=" /mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0/plugins/org.e clipse.core.commands_3.5.0.I20090525-2000.jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_CORE_RUNTIME" position="append" value=" /mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0/plugins/org.e clipse.core.runtime_3.5.0.v20090525.jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_EQUINOX_COMMON" position="append" value=" /mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0/plugins/org.e clipse.equinox.common_3.5.0.v20090520-1800.jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_OSGI" position="append" value=" /mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0/plugins/org.e clipse.osgi_3.5.0.v20090520.jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_EMF_COMMON" position="append" value=" /mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0/plugins/org.e clipse.emf.common_2.5.0.v200906151043.jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_EMF_ECORE" position="append" value=" /mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0/plugins/org.e clipse.emf.ecore_2.5.0.v200906151043.jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_EMF_ECORE_XMI" position="append" value=" /mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0/plugins/org.e clipse.emf.ecore.xmi_2.5.0.v200906151043.jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_JFACE" position="append" value=" /mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0/plugins/org.e clipse.jface_3.5.0.I20090525-2000.jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_SWT" position="append" value=" /mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0/plugins/swt.j ar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_TPTP_PLATFORM_MODELS" position="append" value=" /mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0/plugins/org.e clipse.tptp.platform.models_4.6.0.v200905180100/tptp-models. jar "/>
<Variable name="CLASSPATH_ORG_ECLIPSE_TPTP_PLATFORM_MODELS_HIERARCHY" position="append" value=" /mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0/plugins/org.e clipse.tptp.platform.models.hierarchy_4.6.0.v200905130952/tp tp-models-hierarchy.jar "/>
<Variable name="CLASSPATH_ORG_JUNIT" position="append" value=" /mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0/plugins/org.j unit_3.8.2.v20090203-1005/junit.jar "/>
<Variable name="CLASSPATH_COM_IBM_ICU" position="append" value=" /mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0/plugins/com.i bm.icu_4.0.1.v20090415.jar "/>
<Variable name="CLASSPATH_ORG_APACHE_JAKARTA_COMMONS_LOGGING" position="append" value="%CLASSPATH_ORG_APACHE_COMMONS_LOGGING%"/>
<Variable name="CLASSPATH" position="append" value=" /mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0/plugins/org.e clipse.core.runtime_3.5.0.v20090525.jar "/>
<Variable name="CLASSPATH" position="append" value=" /mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0/plugins/org.e clipse.equinox.common_3.5.0.v20090520-1800.jar "/>
<Variable name="CLASSPATH" position="append" value=" /mnt/watdev/ray/agntctrl.linux_ia32-TPTP-4.6.0/plugins/org.e clipse.osgi_3.5.0.v20090520.jar "/>
</AgentControllerEnvironment>
<ApplicationAliases>
<Application configuration="default" executable="java.exe" location="%SYS_TEMP_DIR%" path="%JAVA_PATH%">
<Variable name="CLASSPATH" position="append" value="%CLASSPATH_ORG_ECLIPSE_EQUINOX_COMMON%"/>
<Variable name="LD_LIBRARY_PATH" position="prepend" value="%RASERVER_HOME%/lib"/>
</Application>
</ApplicationAliases>
<Plugin path="%PLUGINS_HOME%"/>
<Agent path="%TPTP_AC_HOME%/agents"/>
<Jvm location="/opt/jre1.6.0_07/lib/i386/server/libjvm.so"/>
<Logging directory="%TPTP_AC_CONFIG_HOME%" format="CBE" level="INFORMATION"/>
<ProcessController>%TPTP_AC_HOME%/bin/tptpProcessController </ProcessController>
<Connection name="Dev">
<TransportLayer loadlib="socketTL" type="TPTP_SOCKET">
<Configuration>
<Port>10006</Port>
<SecurityEnabled>false</SecurityEnabled>
</Configuration>
<CommandExtractor>tptpCmdExtr</CommandExtractor>
</TransportLayer>
<TransportLayer loadlib="namedPipeTL" type="TPTP_LOG">
<Configuration>
<PipeName>acmasterlog</PipeName>
</Configuration>
<CommandExtractor>tptpCmdExtr</CommandExtractor>
</TransportLayer>
<TransportLayer loadlib="namedPipeTL" type="TPTP_NAMEDPIPE">
<Configuration>
<PipeName>acmaster</PipeName>
</Configuration>
<CommandExtractor>tptpCmdExtr</CommandExtractor>
</TransportLayer>
<TransportLayer loadlib="sharedMemTL" type="TPTP_SHAREDMEM">
<Configuration>
<MemName>acbuffer</MemName>
</Configuration>
<CommandExtractor>tptpCmdExtr</CommandExtractor>
</TransportLayer>
<TransportLayer loadlib="tptpCCTL" type="TPTP_CCTL">
<Configuration>
<Port>10002</Port>
<SecuredPort>10003</SecuredPort>
<FilePort>10005</FilePort>
<IsDataMultiplexed>false</IsDataMultiplexed>
<ProcessPolling>true</ProcessPolling>
<Version>4.4.1</Version>
<SecurityEnabled>false</SecurityEnabled>
<Hosts configuration="default">
<Allow type="ALL"/>
</Hosts>
</Configuration>
<CommandExtractor>tptpCmdExtr</CommandExtractor>
</TransportLayer>
<TransportLayer loadlib="tptpACTL" type="TPTP_ACTL">
<Configuration/>
<CommandExtractor>tptpCmdExtr</CommandExtractor>
</TransportLayer>
</Connection>
<PeerConnectionTransport>TPTP_CCTL</PeerConnectionTransport >
</AgentControllerConfiguration>
Re: TPTP-Agent Controller on Linux [message #499119 is a reply to message #142747] Thu, 19 November 2009 22:58 Go to previous messageGo to next message
Ray Hurst is currently offline Ray HurstFriend
Messages: 121
Registered: July 2009
Senior Member
How do I fix this?

On another thread it was suggested to check the libJPI.so library file by doing:

ldd -d -r libJPIBootLoader.so

When I do this I get an error:

libJPIBootLoader.so: /usr/lib/libgcc.so.1: version 'GCC_4.2.0' not found (required by libMartiniOSA.so

linux-gate.so.1 => (0xffffe000)
libMartiniOSA.so=> /mnt/watdev/ray/projects/jscud/jLibs/./libMartiniOSA.so (0xb7e19000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7dfc000)
libdl.so.2 => /lib/libdl.so.2 (0xb7df8000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7dec000)
libc.so.6 => /lib/libc.so.6 (0xb7caa000)
/lib/ld-linux.so.2 (0x80000000)

symbol _Unwind_GetIPInfo, version GCC_4.2.0 not defined in file libgcc.so.1 with link time reference
Re: TPTP-Agent Controller on Linux [message #500405 is a reply to message #142747] Wed, 25 November 2009 23:01 Go to previous messageGo to next message
Ray Hurst is currently offline Ray HurstFriend
Messages: 121
Registered: July 2009
Senior Member
I am still unable to get this up and running and I'm beginning to think that maybe I have the wrong version of libgcc. What version of libgcc is the libMartiniOSA.so file dependent on?
Ray
Re: TPTP-Agent Controller on Linux [message #500587 is a reply to message #500405] Thu, 26 November 2009 21:33 Go to previous messageGo to next message
Joel Cayne is currently offline Joel CayneFriend
Messages: 13
Registered: July 2009
Junior Member
This is a multipart message in MIME format.
--=_alternative 007668B88525767A_=
Content-Type: text/plain; charset="US-ASCII"

Hi Ray,

The Agent Controller is built with gcc 3.4.6. Can you run rqm -qa | grep
gcc to check that you are running a compatible version?
Would you be able to post the servicelog.log?

Thanks,
Joel
--=_alternative 007668B88525767A_=
Content-Type: text/html; charset="US-ASCII"

<font size=2 face="sans-serif">Hi Ray,</font>
<br>
<br><font size=2 face="sans-serif">The Agent Controller is built with gcc
3.4.6. Can you run rqm -qa | grep gcc to check that you are running a compatible
version?</font>
<br><font size=2 face="sans-serif">Would you be able to post the servicelog.log?</font>
<br>
<br><font size=2 face="sans-serif">Thanks,</font>
<br><font size=2 face="sans-serif">Joel</font>
--=_alternative 007668B88525767A_=--
Re: TPTP-Agent Controller on Linux [message #501027 is a reply to message #142747] Mon, 30 November 2009 18:05 Go to previous messageGo to next message
Ray Hurst is currently offline Ray HurstFriend
Messages: 121
Registered: July 2009
Senior Member
I'm running a stripped down Linux so I don't have the gcc tools. However, I copied libgcc_s.so.1 to another system and ran nm.

Here is the result of cat /proc/version:
Linux version 2.6.24.5 (dave@dave-ubuntu9) (gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #186 SMP Wed Jul 22 10:24:02 PDT 2009


Here is the result of nm -D libgcc_s.so.1:
00000000 A GCC_3.0
00000000 A GCC_3.3
00000000 A GCC_3.3.1
00000000 A GCC_3.4
00000000 A GCC_3.4.2
00000000 A GCC_4.0.0
00000000 A GLIBC_2.0
w _Jv_RegisterClasses
00006310 T _Unwind_Backtrace
00004b20 T _Unwind_DeleteException
00005500 T _Unwind_FindEnclosingFunction
00007ac0 T _Unwind_Find_FDE
00006470 T _Unwind_ForcedUnwind
00004a90 T _Unwind_GetCFA
00004b00 T _Unwind_GetDataRelBase
00004a80 T _Unwind_GetGR
00004ac0 T _Unwind_GetIP
00004ae0 T _Unwind_GetLanguageSpecificData
00004af0 T _Unwind_GetRegionStart
00004b10 T _Unwind_GetTextRelBase
00006540 T _Unwind_RaiseException
000063b0 T _Unwind_Resume
000066b0 T _Unwind_Resume_or_Rethrow
00004aa0 T _Unwind_SetGR
00004ad0 T _Unwind_SetIP
00001990 T __absvdi2
00001960 T __absvsi2
00001a20 T __addvdi3
000019e0 T __addvsi3
00001790 T __ashldi3
00001820 T __ashrdi3
00001940 T __clear_cache
00001ea0 T __clzdi2
00001e90 T __clzsi2
000018a0 T __cmpdi2
00001ee0 T __ctzdi2
00001ed0 T __ctzsi2
w __cxa_finalize
000078e0 T __deregister_frame
000078b0 T __deregister_frame_info
000077c0 T __deregister_frame_info_bases
00003500 T __divdc3
000040d0 T __divdi3
00003150 T __divsc3
000038a0 T __divxc3
00001950 T __enable_execute_stack
00001e60 T __ffsdi2
00003ea0 T __fixdfdi
00003d40 T __fixsfdi
00003ef0 T __fixunsdfdi
00003c60 T __fixunsdfsi
00003d90 T __fixunssfdi
00003bf0 T __fixunssfsi
00003fe0 T __fixunsxfdi
00003cd0 T __fixunsxfsi
00003f90 T __fixxfdi
00003f60 T __floatdidf
00003e00 T __floatdisf
000040a0 T __floatdixf
00006040 T __frame_state_for
000084d0 T __gcc_personality_v0
w __gmon_start__
00001700 T __lshrdi3
00004280 T __moddi3
00002670 T __muldc3
00001680 T __muldi3
00002150 T __mulsc3
00001bb0 T __mulvdi3
00001b60 T __mulvsi3
00002c10 T __mulxc3
000016d0 T __negdi2
00001dd0 T __negvdi2
00001d90 T __negvsi2
00002000 T __paritydi2
00001fd0 T __paritysi2
00001f60 T __popcountdi2
00001f00 T __popcountsi2
00002090 T __powidf2
00002030 T __powisf2
000020f0 T __powixf2
00007170 T __register_frame
000068e0 T __register_frame_info
00006840 T __register_frame_info_bases
000079b0 T __register_frame_info_table
00007910 T __register_frame_info_table_bases
000079f0 T __register_frame_table
00001ae0 T __subvdi3
00001aa0 T __subvsi3
000018f0 T __ucmpdi2
000044a0 T __udivdi3
00004790 T __udivmoddi4
000045f0 T __umoddi3
U abort
U dl_iterate_phdr
U free
U malloc
U memcpy
U memset
w pthread_cancel
w pthread_mutex_lock
w pthread_mutex_unlock
w pthread_once
U strlen

Thanks,
Ray
Re: TPTP-Agent Controller on Linux [message #501316 is a reply to message #501027] Tue, 01 December 2009 20:18 Go to previous message
Joel Cayne is currently offline Joel CayneFriend
Messages: 13
Registered: July 2009
Junior Member
Thanks for the detailed output Ray.

It appears your gcc installation is incomplete. In the output for nm -D
libgcc_s.so.1 it does not have GCC_4.2.0. Can you try re-installing gcc?

Joel
Previous Topic:where are my objects (in memory statistics) ?
Next Topic:Profiling the Java/C++/C code
Goto Forum:
  


Current Time: Sun Dec 21 21:47:45 GMT 2014

Powered by FUDForum. Page generated in 0.01906 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software