No sessions or statements shown - bug?

8 views
Skip to first unread message

Thomas Koch

unread,
Nov 9, 2009, 4:26:26 PM11/9/09
to nhprof
Hi - I was just forced to update to NHProf build 530.

However, when I run NHProf only the statistics are updated. I do not
get any sessions or statements in the window.

My configuration was working with build 503.

Any help will be appreciated.

Thomas

Ayende Rahien

unread,
Nov 9, 2009, 4:41:39 PM11/9/09
to nhp...@googlegroups.com
Did you also upgraded the appender.dll on the application side?

Jason Meckley

unread,
Nov 9, 2009, 4:54:19 PM11/9/09
to nhprof
did you update the configs? http://groups.google.com/group/nhprof/browse_thread/thread/e58e8d285b3f2a2e

On Nov 9, 4:41 pm, Ayende Rahien <aye...@ayende.com> wrote:
> Did you also upgraded the appender.dll on the application side?
>

Thomas Koch

unread,
Nov 9, 2009, 4:57:48 PM11/9/09
to nhprof
Yes - I deleted the whole NHProf folder, removed the Appender from my
references and re-added it, got compiler errors due to the changes in
NHProf #425.

After fixing these I had no statements.

I am in the middle of converting som identity Ids to guid.comb, so
I'll do another check in 15 minutes. :-)

Thomas



On 9 Nov., 22:54, Jason Meckley <jasonmeck...@gmail.com> wrote:
> did you update the configs?http://groups.google.com/group/nhprof/browse_thread/thread/e58e8d285b...

Ayende Rahien

unread,
Nov 9, 2009, 4:59:24 PM11/9/09
to nhp...@googlegroups.com
Hm...
Can you try this on a clean project? See if this is still happening?
If so, could you send it to me?

Thomas Koch

unread,
Nov 9, 2009, 5:03:49 PM11/9/09
to nhprof
Ok - give me 15 minutes.

Thomas

Thomas Koch

unread,
Nov 9, 2009, 5:24:48 PM11/9/09
to nhprof
Hmm - it seems that my web-application is not invoking the
Application_Start() method. At least I cannot make the debugger stop
there.

That in turn would suggest that NHibernateProfiler.Initialize(); is
never invoked, which I guess will explain why there are sessions and
statements in NHprof.

I have recently moved to Windows 7 64 bit, which is running IIS7,
which does run things a little differently. I suspected that IIS7 was
reusing the application but I have tried shutting down the site,
stopping the application pool, etc.

Any suggestions?

Thomas


On 9 Nov., 22:59, Ayende Rahien <aye...@ayende.com> wrote:

Ayende Rahien

unread,
Nov 9, 2009, 5:36:21 PM11/9/09
to nhp...@googlegroups.com
That is interesting, try unblocking the appender:
http://nhprof.com/Learn/Faq/UnlockInternetPermissions

Thomas Koch

unread,
Nov 9, 2009, 6:00:06 PM11/9/09
to nhprof
Hi Ayende - the appender does not seems to be locked.

What is really strange is that I cannot set a breakpoint in
Global.asax.cs when running under IIS7. If I insert "throw new
Exception("boom"); in application_start the exception is thrown with a
resulting YSOD.
However, if I set a break point in a code-behind file it works
correctly.

If I change to Visual Studio Development server the break point in
application_start will work, but I still do not get any sessions or
requests into NHProf. Only the statistics section is being updated.

I have checked that there are no active filters running in NHProf.

I was running NHProf build 503 before, and it worked without a
problem.

Very strange. :-)

Thomas

Ayende Rahien

unread,
Nov 9, 2009, 6:11:38 PM11/9/09
to nhp...@googlegroups.com
If statistics are working, this means the appender _is_ working.
What happens when you are using InitializeOfflineLogging ?

Thomas Koch

unread,
Nov 10, 2009, 2:49:49 PM11/10/09
to nhprof
Hi Ayende - just did as you suggested.

Clicking around in the web-app a few times and shutting down
afterwards, caused a log file of around 25K. When I look at it I can
see my class names, and a lot of statistics. Its the same when I save
from the NHProf application. There are no sql statements though.

When I try to load the output from Offline logging into NHProf#533 it
crashes ... hard.

I can still load the output with NHProf#533 which I saved from within
NHProf#530. However, the windows with requests and sessions are still
empty.

I still have version 500 lying around. Is there any way to use it
without being forced to update?

Thomas

Ayende Rahien

unread,
Nov 10, 2009, 2:53:34 PM11/10/09
to nhp...@googlegroups.com
You can use it without network, in which case it wouldn't know that it is too old.
Can you send me the snapshot? I thought that I fixed the crash in 533

Thomas Koch

unread,
Nov 10, 2009, 3:07:16 PM11/10/09
to nhprof
Hi Oren - I have just mailed you the snapshots to the email account
you use in the group.

Thomas

Pumb@

unread,
Nov 11, 2009, 7:04:32 AM11/11/09
to nhprof
I have the same problem. NHProf was working properly but I had to
upgrade to the newest version and now it doesn't show neither a
session nor a query...

I've changed my Initialization code to :

HibernatingRhinos.Profiler.Appender.NHibernate.NHibernateProfiler.Initialize
();

in my Global.asax, and I'm sure it's being executed.

The enviroment is the same , and the code... Only changed the appender
and the client.

Any tip?



On 10 nov, 20:53, Ayende Rahien <aye...@ayende.com> wrote:
> You can use it without network, in which case it wouldn't know that it is
> too old.
> Can you send me the snapshot? I thought that I fixed the crash in 533
>

Pumb@

unread,
Nov 11, 2009, 7:05:31 AM11/11/09
to nhprof
Sorry, I have build #537.

Greetings.

Ayende Rahien

unread,
Nov 11, 2009, 7:12:44 AM11/11/09
to nhp...@googlegroups.com
Can you verify that you are using the latest appender and that you unblocked it?
What OS/IIS version?

Pumb@

unread,
Nov 11, 2009, 7:43:44 AM11/11/09
to nhprof
More tips. I was using build #503 and everything was working fine.
When I made an offline profiling I have the same results as Thomas,
lots of statistics but no queries, and I see on my NHIbernate log (I
have another logger generating hibernate queries) that the queries are
being executed.

Hope this helps, I had to enable my firewall to block nhprofiler so I
can use the old version.

Thomas Koch

unread,
Nov 11, 2009, 2:05:25 PM11/11/09
to nhprof
Hi - I have tried every combination I could think of on the machines I
have acces to.

1) On my box at home I run II7 (Integrated Pipeline), Windows 7 64bit,
Ultimate. .NET 3.5, VS2008, ASP.NET app with "open session in view",
and by browser is Google Chrome.

2) On my box at work I run IIS 5.1, Windos XP 32 bit, .NET 3.5 VS2008,
ASP.NET app. with "open session in view". My browser is IE7.

On 1 I get the statistics to update, but no sessions or statements. I
have tried running on the Visual Studion Development Server also, with
the same result. If I revert to build 503 and prevent the update
check, everything is back to normal.

On 2 I can run build 537 without any problems.


Hope this can help in resolving this issue.

Regards
Thomas

Ayende Rahien

unread,
Nov 11, 2009, 2:29:40 PM11/11/09
to nhp...@googlegroups.com
Is it possible for you to ping me on skype? Aye...@ayende.com
I want to see if I can trouble shoot it easier that way

Ayende Rahien

unread,
Nov 12, 2009, 11:33:10 AM11/12/09
to nhp...@googlegroups.com
@all,
The issue has been fixed, a recent build (543) would resolve that.

Pumb@

unread,
Nov 12, 2009, 11:47:49 AM11/12/09
to nhprof
Hi Ayende, now it works like a charm,

thank you for your quick response!

Greetings.

On 12 nov, 17:33, Ayende Rahien <aye...@ayende.com> wrote:
> @all,
> The issue has been fixed, a recent build (543) would resolve that.
>
> On Wed, Nov 11, 2009 at 9:29 PM, Ayende Rahien <aye...@ayende.com> wrote:
> > Is it possible for you to ping me on skype? Aye...@ayende.com
> > I want to see if I can trouble shoot it easier that way
>
Reply all
Reply to author
Forward
0 new messages