I have purchased a cheap virtual server (running with Ubuntu, with 4 virtual? CPUs and guaranteed 8GB RAM, SSD). I started Tomcat8 with my web application (with -Xmx4096m). The startup time is very, very slow. It is about 50 times slower, then on my notebook. I would like to know what the bottleneck is. Is it CPU? Is ist the disk?
top
or htop
show me about 1% CPU usage and 300MB mem usage. Since it is a virtual server I have no idea if these are reliable. How can I check if I use up all the CPU given to me?
--- update ---
After stopping all services and starting tomcat alone, things got faster. the problem was mysql/php/tt-rss. But I still have no idea how this happened. Since CPU was at 1% I think it was the SSD. But where and how could I have seen this?