Setup problem profiling Java web-application

58 views
Skip to first unread message

Marc

unread,
Aug 30, 2011, 2:47:55 AM8/30/11
to Hibernate Profiler
Hi,

I'm somehow confused concerning the necessary steps for setting up
NHProf.

As far as I understand things, I can use the profiler simply by using
a specific log4j config (http://hibernateprofiler.com/learn/usage/
manual-config).

I also added the hibernate-profiler jar to my WebLogic server path so
the specific appender class is in the classpath.

But when I run my web-application and having started the profiler
tool, I don't see any statements. But sth. seems to happen concerning
log4j since my application becomes really slow. So I think the logging
part works.

Are there some additional steps I have to undertake to get the
profiler working??? Specifically, I did NOT invoke an initialize
method or sth. else that involved changing code of my application.

Thx,
Marc

Ayende Rahien

unread,
Aug 30, 2011, 3:53:19 AM8/30/11
to hibernate...@googlegroups.com
Please use the following method, instead:

HibernateProfiler.initialize()
This is to check that we are actually able to profile the application.

Marc

unread,
Aug 30, 2011, 6:14:50 AM8/30/11
to Hibernate Profiler
OK. Using the logger configuration from the documentation and adding
this statement (HibernateProfiler.initialize()) to my app did the job.

Having read the part with the logger configuration, I had the
impression the profiler could be used in a non obtrusive way.

Thanks,
Marc
Reply all
Reply to author
Forward
0 new messages