Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Is this a feasable TPTP Logging task
Is this a feasable TPTP Logging task [message #5865] Wed, 16 February 2005 19:00 Go to next message
Eclipse UserFriend
Originally posted by: dirk.mind.spam.smap.se

Hi,

I've been struggeling with TPTP log and trace for some time now. My feeling
right now is that without TPTP I would have completed the task
by now.

The log entries I want to display is created on a remote host (So I did
set-up a RAC on my Solaris box)
The only way to access the log data is by starting a small utility software
that writes the log entries to stdout - so I need to dynamicly start
the utiltiy and to capture the output. And I need to pass some set-up
information to the utility program from the Eclipse plug-in. The data should
be presented in as near real-time as possible. The network node that I trace
can produce several logs so there is also a need to create a correlation
view.

I have a hard to figure out what I should use to achive my goal. Perhaps I
should give up on TPTP?

Any suggestions appreciated

BR

Karl D
Re: Is this a feasable TPTP Logging task [message #5919 is a reply to message #5865] Thu, 17 February 2005 12:16 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Karl,
How have you been using TPTP to this point? Do you have a partial
solution that we can modify?

Paul

"Karl Dirk" <dirk@mind.spam.smap.se> wrote in message
news:cv0582$1pb$1@www.eclipse.org...
> Hi,
>
> I've been struggeling with TPTP log and trace for some time now. My
feeling
> right now is that without TPTP I would have completed the task
> by now.
>
> The log entries I want to display is created on a remote host (So I did
> set-up a RAC on my Solaris box)
> The only way to access the log data is by starting a small utility
software
> that writes the log entries to stdout - so I need to dynamicly start
> the utiltiy and to capture the output. And I need to pass some set-up
> information to the utility program from the Eclipse plug-in. The data
should
> be presented in as near real-time as possible. The network node that I
trace
> can produce several logs so there is also a need to create a correlation
> view.
>
> I have a hard to figure out what I should use to achive my goal. Perhaps I
> should give up on TPTP?
>
> Any suggestions appreciated
>
> BR
>
> Karl D
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
Re: Is this a feasable TPTP Logging task [message #5972 is a reply to message #5919] Thu, 17 February 2005 18:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dirk.mind.spam.smap.se

Hi Paul et al.

This is a customer case so I can not provide any solution sample.

As I wrote, its been mainly struggeling with very little progress. I really
have a hard time to get all the pieces togheter.
There are lots of articles and papers published, but they are very hard to
follow. The sample project that can be generated
seams to be slightly different (e.g. newer) than described in the papers.

This is what I achived so far.

* I started out by simply creating a adapater to parse the file.
* Then I moved the parser to the remote Solaris box (hard time to get this
working propertly!!!!)
* The idea was then to replace the back-end functionallity and to get
parseNext to read from the external process
(capture stdout/stderr and writing to stdin), but all the architecture
seams to require a input.

So there are several non solved issued. Multiple input, streaming of data,
starting/controling external process.

I would very much like to get opionions if I should go for a non-TPTP
solution than keeping fighting the "daemon".

BR

Karl D




"Paul Slauenwhite" <paules@ca.ibm.com> skrev i meddelandet
news:cv21v3$qs7$1@www.eclipse.org...
> Hi Karl,
> How have you been using TPTP to this point? Do you have a partial
> solution that we can modify?
>
> Paul
>
> "Karl Dirk" <dirk@mind.spam.smap.se> wrote in message
> news:cv0582$1pb$1@www.eclipse.org...
> > Hi,
> >
> > I've been struggeling with TPTP log and trace for some time now. My
> feeling
> > right now is that without TPTP I would have completed the task
> > by now.
> >
> > The log entries I want to display is created on a remote host (So I did
> > set-up a RAC on my Solaris box)
> > The only way to access the log data is by starting a small utility
> software
> > that writes the log entries to stdout - so I need to dynamicly start
> > the utiltiy and to capture the output. And I need to pass some set-up
> > information to the utility program from the Eclipse plug-in. The data
> should
> > be presented in as near real-time as possible. The network node that I
> trace
> > can produce several logs so there is also a need to create a correlation
> > view.
> >
> > I have a hard to figure out what I should use to achive my goal. Perhaps
I
> > should give up on TPTP?
> >
> > Any suggestions appreciated
> >
> > BR
> >
> > Karl D
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>
Re: Is this a feasable TPTP Logging task [message #10740 is a reply to message #5972] Mon, 21 March 2005 13:04 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Karl,
This problem appears to better solved with a customized Logging Agent.
However, you will need to write a custom launcher for your Logging Agent to
communicate configuration data from the client to teh server. Write the
code on server side (e.g. Solaris machine) that handles data collection
(e.g. capture stdout/stderr, writing to stdin and mapping the parsed log
data to Common Base Events) and then serialize the Common Base Events to XML
and write them to a Logging Agent. We are in the process of writing
examples for this type of solution but in the meanwhile, try this code for
the server-side:
import org.eclipse.hyades.logging.core.LoggingAgent;

LoggingAgent loggingAgent = new LoggingAgent("myLoggingAgent");

loggingAgent.write(EventFormatter.toCanonicalXMLString(myCom monBaseEvent));

You may use the workbench to attach to the Logging Agent on the server
machine (Run > Profile... > Attach - Java process > New > Host > <Solaris
machine> > Agents > Refresh > "myLoggingAgent").

For the launcher code, consult the EclipseCon tutorial code that Antony
Miguel wrote for launching a statistical agent (http://www.eclipse.org/tptp/
> Documentation > EclipseCon 2005 Tutorials > Using TPTP Logging and
Monitoring Tools > Source code).

Note: The Agent Controller must be running and its bin directory must be on
the system PATH, as per the installation instructions.

Paul

"Karl Dirk" <dirk@mind.spam.smap.se> wrote in message
news:cv2np2$a6d$1@www.eclipse.org...
> Hi Paul et al.
>
> This is a customer case so I can not provide any solution sample.
>
> As I wrote, its been mainly struggeling with very little progress. I
really
> have a hard time to get all the pieces togheter.
> There are lots of articles and papers published, but they are very hard to
> follow. The sample project that can be generated
> seams to be slightly different (e.g. newer) than described in the papers.
>
> This is what I achived so far.
>
> * I started out by simply creating a adapater to parse the file.
> * Then I moved the parser to the remote Solaris box (hard time to get this
> working propertly!!!!)
> * The idea was then to replace the back-end functionallity and to get
> parseNext to read from the external process
> (capture stdout/stderr and writing to stdin), but all the architecture
> seams to require a input.
>
> So there are several non solved issued. Multiple input, streaming of data,
> starting/controling external process.
>
> I would very much like to get opionions if I should go for a non-TPTP
> solution than keeping fighting the "daemon".
>
> BR
>
> Karl D
>
>
>
>
> "Paul Slauenwhite" <paules@ca.ibm.com> skrev i meddelandet
> news:cv21v3$qs7$1@www.eclipse.org...
> > Hi Karl,
> > How have you been using TPTP to this point? Do you have a partial
> > solution that we can modify?
> >
> > Paul
> >
> > "Karl Dirk" <dirk@mind.spam.smap.se> wrote in message
> > news:cv0582$1pb$1@www.eclipse.org...
> > > Hi,
> > >
> > > I've been struggeling with TPTP log and trace for some time now. My
> > feeling
> > > right now is that without TPTP I would have completed the task
> > > by now.
> > >
> > > The log entries I want to display is created on a remote host (So I
did
> > > set-up a RAC on my Solaris box)
> > > The only way to access the log data is by starting a small utility
> > software
> > > that writes the log entries to stdout - so I need to dynamicly start
> > > the utiltiy and to capture the output. And I need to pass some set-up
> > > information to the utility program from the Eclipse plug-in. The data
> > should
> > > be presented in as near real-time as possible. The network node that I
> > trace
> > > can produce several logs so there is also a need to create a
correlation
> > > view.
> > >
> > > I have a hard to figure out what I should use to achive my goal.
Perhaps
> I
> > > should give up on TPTP?
> > >
> > > Any suggestions appreciated
> > >
> > > BR
> > >
> > > Karl D
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
>
>
Previous Topic:JFluid runtime
Next Topic:Java profiling on AMD64
Goto Forum:
  


Current Time: Tue Apr 23 07:24:11 GMT 2024

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

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

Back to the top