Postgres using up 100% cpu

Guys,
Long story short - my cmdbuild database behaves weirdly, using 100% of my cpu. I am self hosted for now. Any tips on the source of that problem?

Picture of PgAdmin connections to cmdbuild database.
image

Martin