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

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -