java - Tomcat 8 - POST and PUT requests slow when deployed on RHEL -
i have developed rest api using spring framework. when deploy in tomcat 8 on rhel, response times post , put requests high when compared deployment on local machine (windows 8.1). on rhel server takes 7-9 seconds whereas on local machine less 200 milliseconds.
ram , cpu of rhel server 4 times of local machine. default tomcat configurations used in both windows , rhel. network latency ruled out because requests take more or less same time local machine whereas time taken first byte more post , put requests.
i tried profiling remote jvm using visual jvm. there no major hotspots in custom code.
i able reproduce same issue in other rhel servers. there tomcat setting in fixing performance issue ?
the profiling log have placed means nothing, more or less. shows following:
the blocking queue blocking. normal, because purpose - block. mean there nothing take it.
it waiting connection on socket. normal.
you not specify rhel 8 physical/hardware setup. operating system here might not thing. can not eliminate still network latency. if have san, san may have latency itself. if using ssd drive , rhel using san replication may experience network latecy there.
i more inclined first check io on disk focus on operating system. if server shared there might other processes occupying disk.
you saying latency ruled out because requests taking same time. not enough overrule said latency between client , application server, not check latency between app server machin , san or disk or whatever storage there.

Comments
Post a Comment