Latency on version 2.x

@andreas-doehler I tried fiddling around with TLS encrypt however didnt see much of difference. I have tried to capture the pages taking time to load

/check_mk/view.py?_show_filter_form=0&filled_in=filter&host=XXXXXXX&view_name=host
/check_mk/sidebar_snapin.py?names=tactical_overview&since=1642149172&_ajaxid=1642152170
/check_mk/view.py?filled_in=filter&host=XXXX&view_name=host&_display_options=htbfcoderuw&_do_actions=&_ajaxid=1642152337

They seems to have upto 20 sec of “waiting” time. Any idea how this can be reduced, the hardare is a VM with 24 CPU / 32 G RAM.
image

Also, what do you recommend for swapping ?