<div dir="ltr"><div>Since this morning I&#39;ve had a server running inside docker on a separate machine with more installed memory. I haven&#39;t seen any problems since then. In retrospect I wish I had thought of this sooner.</div><div><br></div><div>For now I&#39;m moving on from this problem to do a more complete instrumentation of the clojure app. I&#39;ll keep an eye open for further problems and I&#39;ll report back if there&#39;s anything noteworthy.</div><div><div class="gmail_extra"><br></div><div class="gmail_extra">thanks Gary,</div><div class="gmail_extra">Neil</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 3, 2017 at 7:53 AM, Neil Okamoto <span dir="ltr">&lt;<a href="mailto:neil.okamoto@gmail.com" target="_blank">neil.okamoto@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks Gary. I&#39;ll try running the server outside docker, but before I do that I&#39;m going to run the container on a machine with more memory.<br>
<div class="gmail-HOEnZb"><div class="gmail-h5"><br>
&gt; On Feb 3, 2017, at 7:15 AM, Gary Brown &lt;<a href="mailto:gbrown@redhat.com">gbrown@redhat.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi Neil<br>
&gt;<br>
&gt; Sounds strange. Would it be possible to try running the server outside docker to see if there may be issues there.<br>
&gt;<br>
&gt; If you create the jira with reproducer then we will investigate aswell.<br>
&gt;<br>
&gt; Thanks for the additional info.<br>
&gt;<br>
&gt; Regards<br>
&gt; Gary<br>
&gt;<br>
&gt; ----- Original Message -----<br>
&gt;&gt; Thanks Gary.<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Feb 3, 2017 at 1:54 AM, Gary Brown &lt; <a href="mailto:gbrown@redhat.com">gbrown@redhat.com</a> &gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; (1) Is using a &quot;sampling.priority&quot; of 1 merely advisory? It would explain<br>
&gt;&gt;&gt; everything if those traces are meant to be dropped.<br>
&gt;&gt;<br>
&gt;&gt; If using the default constructor for APMTracer, then the default behaviour<br>
&gt;&gt; should be to trace all - and setting the sampling.priority to 1 should not<br>
&gt;&gt; override that. Could you try not setting this tag to see if there is any<br>
&gt;&gt; difference?<br>
&gt;&gt;<br>
&gt;&gt; I see. Well, I am using the default constructor, and I have tried with and<br>
&gt;&gt; without sampling.priority=1 and it&#39;s the same situation either way.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; (2) Is there any convenient way I can see, with increased logging or<br>
&gt;&gt;&gt; something, which traces are actually being sent from the client, and which<br>
&gt;&gt;&gt; are actually received by the server?<br>
&gt;&gt;<br>
&gt;&gt; You could initially check the traces stored in Elasticsearch using something<br>
&gt;&gt; like: curl <a href="http://localhost:9200/apm-hawkular/trace/_search" rel="noreferrer" target="_blank">http://localhost:9200/apm-<wbr>hawkular/trace/_search</a> | python -m<br>
&gt;&gt; json.tool<br>
&gt;&gt;<br>
&gt;&gt; Right now I have a repl launched with HAWKULAR_APM_LOG_LEVEL set to FINEST.<br>
&gt;&gt; I&#39;m creating spans in the repl as described earlier. Each time I create a<br>
&gt;&gt; trace I see a log entry from the client like this:<br>
&gt;&gt;<br>
&gt;&gt; FINEST: [TracePublisherRESTClient] [Thread[pool-2-thread-1,5,<wbr>main]] Status<br>
&gt;&gt; code is: 204<br>
&gt;&gt;<br>
&gt;&gt; and that 204 would suggest the trace info was successfully sent. But inside<br>
&gt;&gt; the docker container I can curl Elasticsearch and those new traces are not<br>
&gt;&gt; to be found.<br>
&gt;&gt;<br>
&gt;&gt; Incidentally, I started the repl last night, did a few successful tests, and<br>
&gt;&gt; then closed the lid of my laptop for the night with the Hawkular container<br>
&gt;&gt; still running and the repl still running. I&#39;ve also had this issue occur<br>
&gt;&gt; immediately on launch of the repl, so I don&#39;t think it&#39;s specifically about<br>
&gt;&gt; long running repls and/or sleeping, but for completeness I thought I would<br>
&gt;&gt; clarify how I am running this.<br>
&gt;&gt;<br>
&gt;&gt;&gt; Do you have a pure Java example that reproduces the same issue? Might be<br>
&gt;&gt;&gt; worth creating a jira in <a href="https://issues.jboss.org/projects/HWKAPM" rel="noreferrer" target="_blank">https://issues.jboss.org/<wbr>projects/HWKAPM</a> to track<br>
&gt;&gt;&gt; the issue.<br>
&gt;&gt;<br>
&gt;&gt; No, not yet...<br>
&gt;&gt;<br>
&gt;&gt; ______________________________<wbr>_________________<br>
&gt;&gt; hawkular-dev mailing list<br>
&gt;&gt; <a href="mailto:hawkular-dev@lists.jboss.org">hawkular-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/hawkular-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/hawkular-dev</a><br>
&gt;&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; hawkular-dev mailing list<br>
&gt; <a href="mailto:hawkular-dev@lists.jboss.org">hawkular-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/hawkular-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/hawkular-dev</a><br>
</div></div></blockquote></div><br></div></div></div>