Author |
Topic  |
|
spreadpoems
New Member

52 Posts |
Posted - 24 September 2009 : 18:26:11
|
Hi
I log all 500 errors on my forum. I've been seeing this error about once or twice a week for the past few months. The page is /active.asp Response Buffer Limit Exceeded
Execution of the ASP page caused the Response Buffer to exceed its configured limit.
I'd appreciate some help. Thanks |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
spreadpoems
New Member

52 Posts |
Posted - 25 September 2009 : 11:01:00
|
Also the errors tend to occur at the same time when I receive alerts that the CPU Load on my server is extremely high (over 90%)
I link to the Active Topics page from my website so the page does receive lots of visitors who are not members of the forum. Having said that, most of the errors I have caught have occurred with members.
I'd prefer to limit the output of the page over any solutions which would involve allowing more then 4mb
What is the default behavior for the Active Topics page for first time visitors. How many topics does it show? It seems to go back 10 days, Is there a way to change that? Or maybe I could limit the options from the drop down menu to only allow viewing active topics from the past week.
What do you suggest?
Thanks
|
Edited by - spreadpoems on 26 September 2009 21:49:34 |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 27 September 2009 : 11:28:25
|
spreadpoems, instead of just editing your last reply - which makes it harder to follow the thread - post your clarification. If I hadn't have seen the original text I wouldn't have known that the "I'd prefer to limit the output of the page over any solutions which would involve allowing more then 4mb" part was after rui gave you a valid solution to the original question.
As to the default behaviour, a clean Active Topics goes back to the last time you were logged into the site. If I haven't visited in a long while, and/or there is a lot of activity, I'll likely see a big list of topics. |
 |
|
spreadpoems
New Member

52 Posts |
Posted - 27 September 2009 : 14:33:21
|
quote: instead of just editing your last reply - which makes it harder to follow the thread - post your clarification
sorry.. my bad...
quote: You could try and add a Response.Flush every x posts to avoid that
I guess I will try this. Thanks
perhaps, in combination with taking out the option to display more then a weeks worth of topics. I'm still not sure what the default display is for non members.
I need to take a better look at the code |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 27 September 2009 : 16:51:06
|
Response.Flush will allow you to not lose any functionality at all.
For example, to flush every 50 posts, you can just add this statement:
If (RowCount > 0) and (RowCount mod 50 = 0) Then Response.Flush
Add this before the line that has the statement
next
which in 3.4.06 is around line# 580. This statement will flush the buffer every 50 posts and surely will solve your problem without requiring any other code changes. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
 |
|
spreadpoems
New Member

52 Posts |
Posted - 29 September 2009 : 11:04:20
|
ruirib, Thanks for the code. I have implemented it and hopefully no more errors :) |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
spreadpoems
New Member

52 Posts |
Posted - 09 November 2009 : 10:41:14
|
Just an update. It's been about 5 weeks since I Implemented the above suggestion and no more errors. Thanks! |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
|
Topic  |
|