These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Nhiberate startup issues
PostPosted: Wed Aug 02, 2006 12:19 am 
Newbie

Joined: Wed Aug 02, 2006 12:12 am
Posts: 3
Has anybody had issues with C# ASP.NET projects using nhibernate taking forever to load after a rebuild? The issue we are having occurs on our live web server, and whenever we make updates to the binaries, and have to update, it takes 2-3 minutes minimum before the server is responsive again. It seems to be an issue with the startup setup that nhibernate goes through in creating SQL server connections, or something along those lines. the config file is as follows:

<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.0" >
<session-factory name="nhibernator">
<!-- properties -->
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property>
<property name="connection.connection_string">Server=localhost;initial catalog=Mobux;user id=sa;password=sa</property>
<property name="show_sql">false</property>
<property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property>
<property name="use_outer_join">true</property>
<property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property>
<!-- mapping files -->
<mapping assembly="Test" />
</session-factory>
</hibernate-configuration>

which seems pretty normal, any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 02, 2006 12:44 am 
Regular
Regular

Joined: Tue Feb 21, 2006 9:50 am
Posts: 107
try

<property name="use_reflection_optimizer" value="false" />

this will boost the startup performance dramtically

Regards
Klaus


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 02, 2006 1:26 am 
Newbie

Joined: Wed Aug 02, 2006 12:12 am
Posts: 3
will this have any performance affects on the rest of the site, now that the reflection optimizer is turned off..? it wont cause the rest of the site to slow down?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 02, 2006 2:23 pm 
Beginner
Beginner

Joined: Tue May 17, 2005 7:25 pm
Posts: 43
Location: Somewhere, USA
You are correct in thinking that turning off the reflection optimizer will have performance implications.

Can you use the 1.2Alpha version instead? It's reflection optmizier can use leightweight code generation (LCG) and the startup time is next to nothing.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.