java - How to profile hibernate JPA session information? -


we have spring hibernate jpa web application in production. there suspect of memory leak in session objects. uploading excel records using apache poi mysql. commit frequency 10 records, each commit takes 5 10 seconds pause , cpu reaches 100% throughout import process. there way profile hibernate sessions in application , find process causing such high cpu usage. checking out rhinos hibernate profiler seems confusing in configuration , needs changes in code. since need profile production or stage instance, there jpa hibernate session information profiler without changes application configuration/code?

use visual vm, plug-ins installed. attach app's jvm pid when start up. it'll show memory, threads, , lots more.

i don't think it'll idea profile on production server. put code on box , run significant load long period of time. that'll show problem.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -