performance - Java running faster after using JVisualVM -
we have simple java application receives commands on tcp socket (netty), translates these commands json strings , sends them 1 connected client on websocket connection (jetty).
the application performs windows on different java versions. on centos machine java 1.8_121 (or 1.8_45) noticed delay of 200ms between receiving command , sending json string.
so tried understand behaviour using jvisualvm. startet application, jvisualvm, selected application in jvisualvm , switched tab "profiler". clicked on "cpu" , got error "redefinition failed error 62". closed jvisualvm.
the strange thing after using jvisualvm in way delay in application gone. reduce 200ms 1ms.
does have idea why happens or why code faster after starting profiler? can run in faster mode?
Comments
Post a Comment