Sometimes you are under a situation that you don’t know what’s going on with the server, it’s like a blackbox. How to get some lights in this? The answer is strace . strace is a utility that will help you see what your application is doing, what file it’s opening, what is it trying to do. How to start? the most common way to do is : you have a pid of your application , then just run this command: How about other cases, like you have multiple process like web server, when a server start, it will start with at least 4 processes. WhenRead More →

As we all know, to monitor our PHP application performance with Datadog , we need to install 2 components – datadog-agent and its PHP package. The data-agent is a server listening on port 8126 to receive tracer/span from our application. The PHP package is used to inject some library to our run time PHP, it does some magic thing to collect our PHP application such as response time, database connection. Have you ever wondered what data that datadog tracing library send to its agent? Today we do a little trick , instead of using datadog-agent to receive data, we will use some tools to receiveRead More →

When i use Datadog to collect tracer/span in our PHP , i realize that Datadog library does not collect the client IP address. I don’t know what the reason behind this, but not having the client IP is very hard to troubleshoot the issue. After a while i figured out the way to hack the code. The hack is to modify this file /opt/datadog-php/dd-trace-sources/bridge/_generated.php This is my modification – check the line #================My Customize codeRead More →

My son was asking me to help him set up a server so that he can play with his friends – and i found this , easy to do. https://www.astralinternet.com/blog/en/build-minecraft-pocket-edition-server-ubuntu/ I turns out that this version does not work well with latest minecraft , i download the version from Minecraft official website, it works pretty well https://www.minecraft.net/en-us/download/server/bedrock/ After you download the server, just run this command:Read More →

Just imagine, you have an application that is using Jaeger as the backend, but now you want to switch to SignalFX. This is do able. Below is the steps Install SignalFX Agent:SignalFX Agent is used to collect your host info such as memory and cpu,network … it uses collectd for this purpose. Signalfx Agent also can act as a collector for Jaeger client via GRPC. Installing Signalfx Agent is not difficult, follow their current instruction from your account. To make it easy for you i will share my configuration The important line is “- type: jaeger-grpc” this line will turn smartagent as a collector, itRead More →

Today i just tried to build my first web Java application. I follow the instructions from this link: https://docs.spring.io/spring-boot/docs/1.0.2.RELEASE/reference/html/getting-started-first-application.html Everything looks good until i reach to step 10.4 ,  i got this error Some recommend that we need to add this in to <project> tag It works for some people , but it’s not working for me. Finally i found that i need to add this More detail is from this url: https://www.baeldung.com/maven-java-version This is my final pom.xmlRead More →