I trying to make a dump for a remote ETS table using RPC call, but without success.
I connected 2 nodes, and this: :rpc.call(:"remote_node@127.0.0.1", :ets, :info, [:some_table]) works, but :rpc.call(:"remote_node@127.0.0.1", :ets, :tab2file, [:some_table, 'table.dump']) doesn’t. And response is:
To be honest, I don’t know how to execute the code directly from the host. I have a production application, so I established a ssh tunnel and run iex with a correct cookie, then I can connected to a remote node, but only way to interact there I know is RPC calls
Of course you can debug it. But you have to have it either not private or prepare the owning process to dump it into a file or a list or whatever you want to have to debug it.
After :ets.new/:foo, [:private]), :foo did not show up in observers table pane. Also Systems and memory pane tell me I had ~750 kB in ETS, the tables visible at the table pane have a sum-size of ~20 kB.