java - How to identify which methods are eating time while serving request for a webpage? -
my jsf (webapp) pages taking long time load. tested through firebug, of time spent waiting response server. think it's on server that's eating time. have been trying hints using netbeans based profiler while analyzing cpu performance, shows time spent in each method since point of time. cannot figure out what's eating time when sent request page.
can give hints how should able gain information of methods eating time while serving request ?
time being taken on server. first check if might mean network inducing latency (you need check how firebug measures this).
if confirm not network latency issue best path take profiler, depending on platform , size of app can make best choice.
for example, go jvisualvm if application loads less 65k classes, otherwise might experience issues.
once start jvisualvm can attach app process. once in there recommend try sampling profiling first, less aggresive in resource consumption (not sure how big or loaded scenario, instrumentation profiling might heavy support).
you need attach jvisualvm process, go sampler , press start button, data collected after point in time, after have activated sampling should trigger request, maybe few times can better feel on time being spent.
Comments
Post a Comment