[lttng-dev] LTTng on Docker

Jeffrey Chen cpthk at live.com
Mon Apr 10 21:28:05 UTC 2017


You are correct, using the default values works fine.

The problem is only when I specify trace-size and subbuf-size.


I attached the output when I have those parameters specified, and the daemon with "--verbose-consumer".


Thanks.


________________________________
From: jeremie.galarneau at gmail.com <jeremie.galarneau at gmail.com> on behalf of Jérémie Galarneau <jeremie.galarneau at efficios.com>
Sent: Monday, April 10, 2017 12:26 PM
To: Jeffrey Chen
Cc: lttng-dev at lists.lttng.org
Subject: Re: [lttng-dev] LTTng on Docker



On 10 April 2017 at 14:06, Jeffrey Chen <cpthk at live.com<mailto:cpthk at live.com>> wrote:

I have attached the logs from the lttng daemon. I could see errors like below.


Error: Error creating UST channel "channel0" on the consumer daemon


My commands to create a session are:

lttng create test
lttng enable-channel --session test --userspace --tracefile-size 8388608 --subbuf-size 8388608 channel0
lttng enable-event --channel channel0 --userspace "service:*"
lttng add-context -u -t vtid
lttng add-context -u -t vpid
lttng start

Thanks for the info. Can you try to create the channel with the default values and see if it works?

$ lttng enable-channel --session test --userspace channel0

Also, can you re-capture the session daemon logs launching it with the "-vvv --verbose-consumer" option since the problem appears to occur on the consumer's end.

Thanks,
Jérémie


Installed:
apt-get -y install lttng-tools lttng-modules-dkms liblttng-ust0 liblttng-ust-dev


Thanks.

________________________________
From: jeremie.galarneau at gmail.com<mailto:jeremie.galarneau at gmail.com> <jeremie.galarneau at gmail.com<mailto:jeremie.galarneau at gmail.com>> on behalf of Jérémie Galarneau <jeremie.galarneau at efficios.com<mailto:jeremie.galarneau at efficios.com>>
Sent: Sunday, April 9, 2017 2:06 PM
To: Jeffrey Chen
Cc: lttng-dev at lists.lttng.org<mailto:lttng-dev at lists.lttng.org>
Subject: Re: [lttng-dev] LTTng on Docker

On 7 April 2017 at 18:35, Jeffrey Chen <cpthk at live.com<mailto:cpthk at live.com>> wrote:
> Hi:
>
>
> I am trying to have LTTng UST tracing inside a docker container. I wasn't
> able to get the UST tracing working. LTTng would not write any UST trace
> files in the directory, even though it printed it would. Has it been tested
> before? Is there any known problem?

Tracing inside a container (not Docker), where the LTTng daemons and
the applications are running in the same container, is known to work
as this is how most of the LTTng CI works.

As far as Docker is concerned, I tested it a number of times and it
worked. Can you provide the versions of LTTng and Docker you're using
and the session daemon's logs (launching it with the -vvv option)?

Thanks,
Jérémie

>
>
> $ lttng enable-channel --session test --userspace channel0
>
> Error: Channel channel0: UST create channel failed (session ServiceFabric_0)
> Error: Command error
>
>
> Thanks.
>
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org<mailto:lttng-dev at lists.lttng.org>
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
lttng-dev Info Page<https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev>
lists.lttng.org<http://lists.lttng.org>
To see the collection of prior postings to the list, visit the lttng-dev Archives. Using lttng-dev: To post a message to all the list members, send ...


>



--
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
EfficiOS<http://www.efficios.com/>
www.efficios.com<http://www.efficios.com>
At EfficiOS, our main goal is diminishing the amount of time our clients spend identifying faults. We also enable our clients' applications to scale on massive multi ...





--
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20170410/c46d085f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: output2
Type: application/octet-stream
Size: 77326 bytes
Desc: output2
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20170410/c46d085f/attachment-0001.obj>


More information about the lttng-dev mailing list