gogctuner icon indicating copy to clipboard operation
gogctuner copied to clipboard

Why not automatically determine the environment in which the program is running?

Open ZhangCheng9 opened this issue 3 years ago • 2 comments

It seems better to use gogcturner as a sidecar to the project.

If your application runs on the host now, and then you want to change it to run on the Docker, you must change the code and compile the application once.

On the other hand, If you miss changing the env, it will make some strange mistake which maybe a little to trace.

ZhangCheng9 avatar Apr 03 '22 05:04 ZhangCheng9

I don’t know how to figure out whether app is running in docker or vm, the cgroup quota path also has value on vm

cch123 avatar Apr 05 '22 13:04 cch123

I don’t know how to figure out whether app is running in docker or vm, the cgroup quota path also has value on vm @cch123 maybe can ref: https://github.com/v8fg/collectd/blob/release/read_container.go RunningInDockerContainerPid

xwi88 avatar Jun 24 '22 06:06 xwi88