Search code examples
processerlangerlang-otpobservers

Erlang OTP-observer not displaying my application


I'm currently struggling with erlang's OTP observer. My application - gen_server, and supervisor - runs fine, but when I'm trying to use an observer to view processes I'm only able to view the "kernel" in the tab "applications" in the observer GUI.

These are the commands leading up to the nodes connecting but nothing more:

------------------------Observer------------------------

/home/erlang# erl -pa ebin/ -sname observer -setcookie tmp -run observer

(Erlang:9911): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(Erlang:9911): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(Erlang:9911): GLib-GIO-CRITICAL **: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed Eshell V6.0 (abort with ^G) (observer@ergo)1> (Erlang:9911): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(Erlang:9911): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(Erlang:9911): GLib-GIO-CRITICAL **: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(Erlang:9911): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(Erlang:9911): GLib-GIO-CRITICAL **: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(Erlang:9911): GLib-GIO-CRITICAL **: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

------------------------Node to view------------------------

/home/erlang# erl -pa ebin/ -sname worker Eshell V6.0 (abort with ^G)

(worker@ergo)1> nodes().

[]

(worker@ergo)2> net_adm:ping(observer@ergo).

pong

(worker@ergo)3> nodes().

[observer@ergo]


In the observer GUI, "Trace Overview", I've added the node (worker@ergo). However I can only view the kernel in the application-tab, and in Trace overview there are no processes listed.

How can I view the process-tree of my application in the observer GUI?


Solution

  • Does your application follow OTP application behavior? Do you start it with application:start/1?