Responce in Android OpenHab app is slow when connected to OpenHAB3

Hi Community

I am a happy user of OpenHAB and has been using the OpenHAB 2.5.1 version for some time now.

I have just done a fresh install of my Raspberry Pi 3B+ with an image with desktop as i like to be able to acces the RRI via VNC and do other choirs on my network
After that i upgraded to the installed OpenHAB3 by first installing the Openhabian-config tool and afterwards letting the tool do its magic (so far so good)

Did a couple of excercises in order to have Samba access to the openhab config folders.
Downloaded my previous Things, Items & Sitemaps files to the RPI and the system was up and running (again so far so good)

Responce via web page from a PC is good and fast but here comes my problem:
When i access the OpenHAB system from my Android mobile the responce is slow, like in 3 seconds from when i press a button in order to shift page (Group in Sitemaps)

In version 2.5.1 this was done almost instaniously

Any idea why? Any tweaks I can implement?

The responce is as i said only slow on Android, not when interfacing via a PC

Thanks for your support

Br
Morten K

Can you post the log of the Android app?

Hi mueller-ma

Sorry i have not seen your message before today, my appologies

You ask me to post the log of the Android app?? I so sorry but i dont now how to do this

Could you guide me or provide link to do so? I guess youre not talking about the log from Frontail on the Openhab unit itself, but rather a log existing on the Android Unit right?

BR
Morten K

Hi,
you have to open the settings of the app. The last entry there is the log of the app.

Hello there,

I have nearly the same “problem” as MKlitgaard.
Thought I will reply here and don’t make a new thread for it.

Since around one week, my app is really slow and loading for several seconds.
I use openhab3 since 1.5months and the first 5 weeks it was working smooth in the app.
I am a new user here, so I can’t upload my logs directly.
The logs are found here:
https://pastebin.com/45e124tL

Hi @Stycx,

do you use Sitemaps or the main UI of openHAB 3?

Hi @mueller-ma ,

I use sitemaps (file config).
I did all config (items, things, rules) with files.

From your log:

# Start of application
05-02 14:33:55.263 11867 11867 D MainActivity: onCreate() 
# 0.1 seconds later the app queries the rest api
05-02 14:33:55.360 11867 17707 I okhttp.OkHttpClient: --> GET http://<openhab-local-address-Home>:8080/rest/
05-02 14:33:55.360 11867 17707 I okhttp.OkHttpClient: User-Agent: Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19
05-02 14:33:55.361 11867 17707 I okhttp.OkHttpClient: Cache-Control: no-cache
05-02 14:33:55.361 11867 17707 I okhttp.OkHttpClient: --> END GET
# Your server needs 1.7 seconds to answer. My openHAB 3 server needs 700ms for this.
05-02 14:33:57.142 11867 17707 I okhttp.OkHttpClient: <-- 200 OK http://<openhab-local-address-Home>:8080/rest/ (1781ms)
05-02 14:33:57.142 11867 17707 I okhttp.OkHttpClient: Content-Type: application/json
05-02 14:33:57.142 11867 17707 I okhttp.OkHttpClient: Date: Sun, 02 May 2021 12:33:57 GMT
05-02 14:33:57.142 11867 17707 I okhttp.OkHttpClient: Transfer-Encoding: chunked
05-02 14:33:57.142 11867 17707 I okhttp.OkHttpClient: Server: Jetty(9.4.20.v20190813)
05-02 14:33:57.142 11867 17707 I okhttp.OkHttpClient: <-- END HTTP

Maybe openHAB 3 is a bit slower than 2.5 or your server just needs more resources. What kind of server are you using?

I use a RASP PI 4 B 4GB. (Raspbian OS, nothing else running atm)
Today I noticed that the issue is mostly when I connect from local URL. From remote I didn’t notice anything being slow at all.