-->
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.  [ 9 posts ] 
Author Message
 Post subject: asp.net web application ending intermittently
PostPosted: Mon Dec 05, 2005 4:11 pm 
Newbie

Joined: Mon Dec 05, 2005 3:51 pm
Posts: 5
I am using Simon Green's NHibernate Helper Project http://blogs.intesoft.net/simon/articles/16.aspx (Thanks Simon) to manage sessions, Forms Authentication and In Proc mode to save some objects in the Session. Sometimes it works fine, but often the application just ends with no warning.
I cannot replicate this behavior by following the same sequence of events. Also, on my computer and our company


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 05, 2005 6:46 pm 
Senior
Senior

Joined: Thu Jun 02, 2005 5:03 pm
Posts: 135
Location: Paris
If this is an ASP.NET application perhaps you've got a memory leak somewhere? ASP.NET will automatically kill and restart the ASP.NET worker process if it grows beyond 60% of available memory.

Just a thought.

Cheers,

Symon.


Top
 Profile  
 
 Post subject: I thought it may be something to do with memory, but
PostPosted: Tue Dec 06, 2005 12:40 pm 
Newbie

Joined: Mon Dec 05, 2005 3:51 pm
Posts: 5
wouldn't I be able to replicate the error consistently? If I open the browser and go to exactly the same pages in the same order wouldn't the amount of memory used be about the same? Also, this didn't used to be a problem until I made changes to the session handling in NHibernate.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 06, 2005 4:28 pm 
Newbie

Joined: Sat Jun 11, 2005 1:56 am
Posts: 19
I solved this issue in an older app once by dissabling the virus scanner on the machine this was happening on. Apparently virus scanners 'touch' the Web.configs and bin files making the server restart.

I currently have the same inssue in another application and cannot solve.


Top
 Profile  
 
 Post subject: log4net seemed to be the cause of the application ending
PostPosted: Wed Dec 07, 2005 5:24 pm 
Newbie

Joined: Mon Dec 05, 2005 3:51 pm
Posts: 5
I turned all logging off and the problem went away. After a bit of testing, I found that logging lots of info (levels INFO and DEBUG) caused the appliction to suddenly end but some logging (WARN,DEBUG) seem fine. Does anyone have an explaination for this? I tried the log4net-user mailing list but haven't gotten any answers yet.

Here is a bit more information on the logging I was doing:
The logging files were being locked so I upgraded to a later version of log4net (1.2.9) to use FileAppender+MinimalLock. This only locks the file while it is being written to and then releases it. And in my web config file I have:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="log4net"
publicKeyToken="b32731d11ce58905"
culture="neutral" />
<bindingRedirect oldVersion="1.2.0.30714"
newVersion="1.2.9.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 07, 2005 6:46 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Hmm, could this be caused by a NullReferenceException while building a log message? By the way, NH has been using log4net 1.2.9 for a long time now.


Top
 Profile  
 
 Post subject: If a NullReferenceException was the culprit, wouldn't that
PostPosted: Fri Dec 09, 2005 1:42 pm 
Newbie

Joined: Mon Dec 05, 2005 3:51 pm
Posts: 5
also happen on my machine and our company's server - not just on the production server? Also the problem wouldn't happen intermittently would it?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 09, 2005 8:08 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
I think there was one case where logging on Flush caused an NRE, depending on which entities were present in the session, or something like that. Which version of NH are you using, by the way?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 12, 2005 2:27 pm 
Newbie

Joined: Mon Dec 05, 2005 3:51 pm
Posts: 5
I am using version 0.5.0.0 - I guess it is time to upgrade...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 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.