Docker container performance question

I run a tomcat on docker and use Jmeter to simulate 2000 concurrent to connect to this tomcat.
the result show it’s performance is not good (90%Line need 16000 ms).
But when I install tomcat on native ubuntu and use Jmeter to do the same thing.
the result is very different (90%Line only need 50-100 ms).

What can I do for my docker container to let it’s performance as good as the native ubuntu

Thanks.

Impossible to say without knowing where the bottleneck is. Immediate suspects are bridge network and filesystem. I’d suggest using iostat, vmstat, top, and other tools to get a feel for where the bottleneck is in the Dockerized version.