SSE subscription failed: running in fallback mode in OH3 / BasicUI

Sitemaps in BasicUI running on OH 3.3.0 sooner or later show the message :
‘SSE subscription failed: running in fallback mode’.
A restart of openHAB solves the problem for some time until it appears again.

System configuration:

  • Openhabian 64bit on Raspberry PI 4B / 4GB
  • Openhab 3.3.0
  • Two sitemaps in BasicUI opened from Firefox / Windows 10
  • Local network connection, no proxy

There are some threads around adressing the same issue but it doesn’t seem that the problem has been solved. To provide some more information with which hopefully someone else can work I have the log output of ‘org.openhab.core.io.rest.sitemap’ switched to DEBUG.

Results:
When the error message appears, the log shows that the maximum number of 50 subscriptions is reached.
With a small stress test the issue can be reproduced:
Open two sitemaps, wildly jump forth and back to child and from parent pages. Use the back arrow to go back to the previous page. Immediately after the last click close both browser windows.

The logs from the test are listed below. They show that the session already starts with 7 stale subscriptions from previously closed sessions and ends with 8.

Any ideas how to solve this problem?

Open first sitemap in browser
2022-12-10 12:17:06.271 [DEBUG] [est.sitemap.internal.SitemapResource] - Run clean SSE subscriptions job

2022-12-10 12:18:48.817 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Created new subscription with id 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 (8 active subscriptions for a max of 50)
2022-12-10 12:18:48.819 [DEBUG] [est.sitemap.internal.SitemapResource] - Client from IP 192.168.178.30 requested new subscription => got id 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:18:48.971 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page Photovoltaik of sitemap Photovoltaik (8 active subscriptions}
2022-12-10 12:18:48.971 [DEBUG] [est.sitemap.internal.SitemapResource] - Client from IP 192.168.178.30 requested sitemap event stream for subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:18:49.625 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0100 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:18:49.768 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:18:49.771 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0002 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:18:50.499 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0004 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
open second sitemap in browser
2022-12-10 12:18:50.552 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Created new subscription with id c2fe6233-09e3-4e8b-bacb-133509105662 (9 active subscriptions for a max of 50)
2022-12-10 12:18:50.555 [DEBUG] [est.sitemap.internal.SitemapResource] - Client from IP 192.168.178.30 requested new subscription => got id c2fe6233-09e3-4e8b-bacb-133509105662.
2022-12-10 12:18:50.827 [DEBUG] [est.sitemap.internal.SitemapResource] - Subscription id c2fe6233-09e3-4e8b-bacb-133509105662 does not exist.
2022-12-10 12:18:50.832 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0100 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:18:50.989 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
.
.
2022-12-10 12:18:52.753 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:18:52.753 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0002 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:18:53.451 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page 0200 of sitemap Photovoltaik (9 active subscriptions}
2022-12-10 12:19:06.271 [DEBUG] [est.sitemap.internal.SitemapResource] - Run clean SSE subscriptions job
2022-12-10 12:19:06.272 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent alive event to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:10.618 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page Photovoltaik of sitemap Photovoltaik (9 active subscriptions}
2022-12-10 12:19:10.831 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0100 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:10.992 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
.
.
2022-12-10 12:19:11.752 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0002 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:12.620 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0100 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:12.695 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription c2fe6233-09e3-4e8b-bacb-133509105662 changed to page 0302 of sitemap Heizung (9 active subscriptions}
2022-12-10 12:19:12.780 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0002 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:12.780 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:12.960 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0304 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:12.969 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0305 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:13.616 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0100 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:13.684 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription c2fe6233-09e3-4e8b-bacb-133509105662 changed to page Heizung of sitemap Heizung (9 active subscriptions}
2022-12-10 12:19:13.753 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:13.753 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0002 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:14.617 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription c2fe6233-09e3-4e8b-bacb-133509105662 changed to page 0300 of sitemap Heizung (9 active subscriptions}
2022-12-10 12:19:14.622 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0100 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:14.781 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0002 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:14.781 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:15.596 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription c2fe6233-09e3-4e8b-bacb-133509105662 changed to page Heizung of sitemap Heizung (9 active subscriptions}
2022-12-10 12:19:15.644 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0100 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:15.816 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
.
.
2022-12-10 12:19:17.752 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:17.752 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0002 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:17.975 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page 0200 of sitemap Photovoltaik (9 active subscriptions}
2022-12-10 12:19:19.353 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page Photovoltaik of sitemap Photovoltaik (9 active subscriptions}
2022-12-10 12:19:19.626 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0100 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:19.774 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
.
.
2022-12-10 12:19:21.750 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0002 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:21.750 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:22.289 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page 0201 of sitemap Photovoltaik (9 active subscriptions}
2022-12-10 12:19:28.812 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription c2fe6233-09e3-4e8b-bacb-133509105662 changed to page 0302 of sitemap Heizung (9 active subscriptions}
2022-12-10 12:19:29.928 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription c2fe6233-09e3-4e8b-bacb-133509105662 changed to page Heizung of sitemap Heizung (9 active subscriptions}
2022-12-10 12:19:31.956 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription c2fe6233-09e3-4e8b-bacb-133509105662 changed to page 0301 of sitemap Heizung (9 active subscriptions}
2022-12-10 12:19:33.220 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription c2fe6233-09e3-4e8b-bacb-133509105662 changed to page Heizung of sitemap Heizung (9 active subscriptions}
2022-12-10 12:19:34.335 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription c2fe6233-09e3-4e8b-bacb-133509105662 changed to page 0303 of sitemap Heizung (9 active subscriptions}
2022-12-10 12:19:35.506 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription c2fe6233-09e3-4e8b-bacb-133509105662 changed to page Heizung of sitemap Heizung (9 active subscriptions}
2022-12-10 12:19:36.186 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription c2fe6233-09e3-4e8b-bacb-133509105662 changed to page 0305 of sitemap Heizung (9 active subscriptions}
2022-12-10 12:19:38.229 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page Photovoltaik of sitemap Photovoltaik (9 active subscriptions}
2022-12-10 12:19:38.609 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0100 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:38.752 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:38.752 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0002 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:39.141 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page 0202 of sitemap Photovoltaik (9 active subscriptions}
2022-12-10 12:19:40.559 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page Photovoltaik of sitemap Photovoltaik (9 active subscriptions}
2022-12-10 12:19:40.624 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0100 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:40.771 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:40.773 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0002 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:41.370 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page 0201 of sitemap Photovoltaik (9 active subscriptions}
2022-12-10 12:19:42.661 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page Photovoltaik of sitemap Photovoltaik (9 active subscriptions}
2022-12-10 12:19:42.754 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:42.756 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0002 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:43.596 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page 0203 of sitemap Photovoltaik (9 active subscriptions}
2022-12-10 12:19:44.496 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page Photovoltaik of sitemap Photovoltaik (9 active subscriptions}
2022-12-10 12:19:44.612 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0100 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:44.749 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:44.751 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0002 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:45.278 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page 0200 of sitemap Photovoltaik (9 active subscriptions}
2022-12-10 12:19:46.219 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page Photovoltaik of sitemap Photovoltaik (9 active subscriptions}
2022-12-10 12:19:46.610 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0100 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:46.761 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:46.763 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0002 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:47.354 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page 0202 of sitemap Photovoltaik (9 active subscriptions}
2022-12-10 12:19:50.112 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription c2fe6233-09e3-4e8b-bacb-133509105662 changed to page Heizung of sitemap Heizung (9 active subscriptions}
2022-12-10 12:19:51.120 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription c2fe6233-09e3-4e8b-bacb-133509105662 changed to page 0302 of sitemap Heizung (9 active subscriptions}
2022-12-10 12:19:53.941 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page Photovoltaik of sitemap Photovoltaik (9 active subscriptions}
2022-12-10 12:19:54.612 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0100 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:54.768 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:54.770 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0002 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:55.605 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0100 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:55.741 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:55.742 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0002 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:56.002 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page 0201 of sitemap Photovoltaik (9 active subscriptions}
2022-12-10 12:19:57.107 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page Photovoltaik of sitemap Photovoltaik (9 active subscriptions}
2022-12-10 12:19:57.604 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0100 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:57.743 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0003 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:57.743 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0002 to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:19:58.208 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 changed to page 0202 of sitemap Photovoltaik (9 active subscriptions}
Both browser tabs closed
2022-12-10 12:21:06.271 [DEBUG] [est.sitemap.internal.SitemapResource] - Run clean SSE subscriptions job
2022-12-10 12:21:06.272 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent alive event to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:23:06.271 [DEBUG] [est.sitemap.internal.SitemapResource] - Run clean SSE subscriptions job
2022-12-10 12:23:06.272 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent alive event to subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6.
2022-12-10 12:23:11.026 [DEBUG] [est.sitemap.internal.SitemapResource] - SSE connection for subscription 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 has been closed.
2022-12-10 12:23:11.027 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Removed subscription with id 0e1234f1-9e6c-4cd4-bdc7-286e243985c6 (8 active subscriptions)
2022-12-10 12:25:06.271 [DEBUG] [est.sitemap.internal.SitemapResource] - Run clean SSE subscriptions job
2022-12-10 12:27:06.271 [DEBUG] [est.sitemap.internal.SitemapResource] - Run clean SSE subscriptions job
2022-12-10 12:29:06.271 [DEBUG] [est.sitemap.internal.SitemapResource] - Run clean SSE subscriptions job
2022-12-10 12:31:06.271 [DEBUG] [est.sitemap.internal.SitemapResource] - Run clean SSE subscriptions job
2022-12-10 12:33:06.271 [DEBUG] [est.sitemap.internal.SitemapResource] - Run clean SSE subscriptions job
2022-12-10 12:35:06.271 [DEBUG] [est.sitemap.internal.SitemapResource] - Run clean SSE subscriptions job
2022-12-10 12:37:06.271 [DEBUG] [est.sitemap.internal.SitemapResource] - Run clean SSE subscriptions job
2022-12-10 12:39:06.271 [DEBUG] [est.sitemap.internal.SitemapResource] - Run clean SSE subscriptions job
2022-12-10 12:41:06.271 [DEBUG] [est.sitemap.internal.SitemapResource] - Run clean SSE subscriptions job
2022-12-10 12:43:06.271 [DEBUG] [est.sitemap.internal.SitemapResource] - Run clean SSE subscriptions job

Normally, the subscriptions are released after a certain time. I do not rremember after how much time.

The ‘Run clean SSE subscriptions job’ appears every 2 minutes in the log. And I observed that subscriptions are released latest after 2 jobs in the good case. At least I wouldn’t expect hours or even days before release.

I did some more testing which results I would like to share.
I use the home button solution from

The difference to a sitemap without home button is that a click on the home button requests a new subscription id. See the logs below.
For the test I use a sitemap with the additional home button. In line two a child page has been opened. After a restart one week ago there are already three subscptions reported, while only one is really used.
The log in line 6 is the result of clicking the home button. Line 7 reports that the browser has requested a new subscription id which is consequently assigend to the sitemap parent page as reported in line 8.
Now there are 4 active subscptions. If I do nothing on the sitemap the old (third) subscription is removed after 4 minutes.
If I click around, sooner or later it may happen that the old subscription remains active and is not removed. This is the behaviour I have reported in my intitial post.

001: 2022-12-17 11:26:16.821 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0301 to subscription d430ea13-609a-49d1-b3b8-062e0afe9e64.
002: 2022-12-17 11:26:16.921 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription d430ea13-609a-49d1-b3b8-062e0afe9e64 changed to page 0201 of sitemap Photovoltaik (3 active subscriptions}
003: 2022-12-17 11:26:27.712 [DEBUG] [est.sitemap.internal.SitemapResource] - Run clean SSE subscriptions job
004: 2022-12-17 11:26:27.713 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent alive event to subscription d430ea13-609a-49d1-b3b8-062e0afe9e64.
005: 2022-12-17 11:26:27.714 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent alive event to subscription 1d6e5220-e4bf-44d1-9448-332235ba907d.
006: 2022-12-17 11:26:46.583 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Created new subscription with id 54ac240f-c0e8-4938-8fcc-80dadec2c261 (4 active subscriptions for a max of 50)
007: 2022-12-17 11:26:46.585 [DEBUG] [est.sitemap.internal.SitemapResource] - Client from IP 192.168.178.30 requested new subscription => got id 54ac240f-c0e8-4938-8fcc-80dadec2c261.
008: 2022-12-17 11:26:46.680 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 54ac240f-c0e8-4938-8fcc-80dadec2c261 changed to page Photovoltaik of sitemap Photovoltaik (4 active subscriptions}
009: 2022-12-17 11:26:46.681 [DEBUG] [est.sitemap.internal.SitemapResource] - Client from IP 192.168.178.30 requested sitemap event stream for subscription 54ac240f-c0e8-4938-8fcc-80dadec2c261.
009: 2022-12-17 11:26:46.810 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0001 to subscription 54ac240f-c0e8-4938-8fcc-80dadec2c261.

If I remove the home button from the sitemap the behaviour is a little bit different. See log below (openhab has been restarted to reset the subscription count).
I can go back and forth, there is always the same subscription id assigend to the page. There are no new subscriptions requested.

2022-12-17 12:06:12.350 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 12426bff-fad6-4c56-a16e-2d48d47e94c0 changed to page 0201 of sitemap Photovoltaik (1 active subscriptions}
2022-12-17 12:06:19.543 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 12426bff-fad6-4c56-a16e-2d48d47e94c0 changed to page Photovoltaik of sitemap Photovoltaik (1 active subscriptions}
2022-12-17 12:06:19.928 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0100 to subscription 12426bff-fad6-4c56-a16e-2d48d47e94c0.
2022-12-17 12:06:20.964 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 12426bff-fad6-4c56-a16e-2d48d47e94c0 changed to page 0202 of sitemap Photovoltaik (1 active subscriptions}
2022-12-17 12:06:22.279 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 12426bff-fad6-4c56-a16e-2d48d47e94c0 changed to page Photovoltaik of sitemap Photovoltaik (1 active subscriptions}
2022-12-17 12:06:23.074 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0002 to subscription 12426bff-fad6-4c56-a16e-2d48d47e94c0.
2022-12-17 12:06:23.695 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 12426bff-fad6-4c56-a16e-2d48d47e94c0 changed to page 0203 of sitemap Photovoltaik (1 active subscriptions}
2022-12-17 12:06:25.022 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 12426bff-fad6-4c56-a16e-2d48d47e94c0 changed to page Photovoltaik of sitemap Photovoltaik (1 active subscriptions}
2022-12-17 12:06:26.077 [DEBUG] [est.sitemap.internal.SitemapResource] - Sent sitemap event for widget 0002 to subscription 12426bff-fad6-4c56-a16e-2d48d47e94c0.
2022-12-17 12:06:26.861 [DEBUG] [t.sitemap.SitemapSubscriptionService] - Subscription 12426bff-fad6-4c56-a16e-2d48d47e94c0 changed to page 0200 of sitemap Photovoltaik (1 active subscriptions}

My conclusion:
The administration of active subscriptions has a leak. For whatever reason active subscriptions are dropped from the list and never removed.

So, to be clear, the not customized Basic UI works fine?

Correct.