Ask a Question related to ASP Database, Design and Development.
-
Alan Easton #1
ASP pages not rendering
Hello People,
I have a strange problem, one has been asked a few times
on the ASP general list.
But my SQL DB hosts say the problem is an Open Connection
problem. What happens is this, I have a complete ASP site
driven by a MS SQL DB, but every so often, ASP Pages stop
responding, no timeouts, not error messages, nothing at
all. HTML are fine, but not ASP, not even ASP with a
simple response.write are rendered.
Now my hosts say it can be caused by a few pages having
their DB connection left open, they say over a few weeks,
these can stack up, and IIS will not open any more, and
ASP will hang....????......I am not convinced by this
logic........
Have you guys and gals got any idea, I'm fresh out of
them.
Any help would be greatly appreciated.
Alan...
Alan Easton Guest
-
#39650 [NEW]: Rendering pages to images
From: stefl at xs4all dot nl Operating system: Irrelevant PHP version: 5.2.0 PHP Bug Type: Feature/Change Request Bug... -
rendering <div Oops! rendering div style:display=none
The default for a certain page I'm working on is to hide a section of the page when it's loaded. So i set a div tag as follows: <div... -
CSS layout not rendering when pages exist in draftfolder
I am having problems displaying CSS-driven pages in EDIT mode when files exist in the drafts panel. Example 1: If I open Contribute and select a... -
How to print 3 small pages wide by 5 pages tall in one spread?
Hi Vincent, I'm having a similar problem. My dilemma is that I've created a raffle ticket design and to save paper have tiled them 5 to an A4... -
[Q] HTML rendering?
Hello, Does anyone know if any of the current, cross-platform, GUI toolkits of Ruby has an HTML rendering widget? Cheers, -- Daniel Carrera... -
Bob Barrows #2
Re: ASP pages not rendering
Alan Easton wrote:
They could very well be right. Why aren't you convinced? This is one of the> Hello People,
>
> I have a strange problem, one has been asked a few times
> on the ASP general list.
>
> But my SQL DB hosts say the problem is an Open Connection
> problem. What happens is this, I have a complete ASP site
> driven by a MS SQL DB, but every so often, ASP Pages stop
> responding, no timeouts, not error messages, nothing at
> all. HTML are fine, but not ASP, not even ASP with a
> simple response.write are rendered.
>
> Now my hosts say it can be caused by a few pages having
> their DB connection left open, they say over a few weeks,
> these can stack up, and IIS will not open any more, and
> ASP will hang....????......I am not convinced by this
> logic........
>
common causes of hang-ups in IIS.
Are you explicitly closing and destroying your ADO objects in your ASP code?
or are you simply leaving them to be destroyed when the pages go out of
scope? Memory leaks can result from objects failing to be destroyed by the
automatic cleanup code. Memory leaks which can eventually lead to crashes of
inetinfo (iis).
Aside from that, this page lists a few other causes of this problem:
[url]http://www.aspfaq.com/show.asp?id=2147[/url]
HTH,
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows Guest
-
Alan Easton #3
Re: ASP pages not rendering
Hi Bob,
Thanks for the reply. The reason I am not convinced is
that at the end of all my files, I have an include file
that closes the DB connection, just like I have an
include file at the beginning that opens it.
Now I have checked all my files, but perhaps one or two I
have missed, again, I am not convinced that 1 or 2 files
can cause this to happen over the period of a week. Plus,
it has happened over the space of 24hrs as well, then it
will right itself.
It happened at 11pm last night, then when I checked again
this morning, it was fine.
I just don't see, even if I have left a few connections
open, which believe me I have checked and checked, can
bring the site not to render over a week.
Any other ideas will be appreciated, I have seen the page
you sent and have already forwarded onto my hosts.
Thanks,
Alan...
times>-----Original Message-----
>Alan Easton wrote:>> Hello People,
>>
>> I have a strange problem, one has been asked a fewConnection>> on the ASP general list.
>>
>> But my SQL DB hosts say the problem is an Opensite>> problem. What happens is this, I have a complete ASPstop>> driven by a MS SQL DB, but every so often, ASP Pagesweeks,>> responding, no timeouts, not error messages, nothing at
>> all. HTML are fine, but not ASP, not even ASP with a
>> simple response.write are rendered.
>>
>> Now my hosts say it can be caused by a few pages having
>> their DB connection left open, they say over a fewThis is one of the>They could very well be right. Why aren't you convinced?>> these can stack up, and IIS will not open any more, and
>> ASP will hang....????......I am not convinced by this
>> logic........
>>objects in your ASP code?>common causes of hang-ups in IIS.
>
>Are you explicitly closing and destroying your ADOpages go out of>or are you simply leaving them to be destroyed when thebe destroyed by the>scope? Memory leaks can result from objects failing toeventually lead to crashes of>automatic cleanup code. Memory leaks which canthis problem:>inetinfo (iis).
>
>Aside from that, this page lists a few other causes ofspam trap so I>[url]http://www.aspfaq.com/show.asp?id=2147[/url]
>
>HTH,
>Bob Barrows
>
>--
>Microsoft MVP - ASP/ASP.NET
>Please reply to the newsgroup. This email account is mythen remove the>don't check it very often. If you must reply off-line,>"NO SPAM"
>
>
>.
>Alan Easton Guest
-
Bob Barrows #4
Re: ASP pages not rendering
Alan Easton wrote:
How about recordset objects? Do you explicitly close AND DESTROY them as> Hi Bob,
>
> Thanks for the reply. The reason I am not convinced is
> that at the end of all my files, I have an include file
> that closes the DB connection, just like I have an
> include file at the beginning that opens it.
well? If a recordset is still open and in the process of doing something,
the connection may not be close-able. An error will be raised when the
attempt to close it is made, but since your page is out of scope, there will
be nothing to respond to the error and the connection will remain open,
causing memory to leak.
Why not? Once a memory leak begins, it keeps leaking.>
> Now I have checked all my files, but perhaps one or two I
> have missed, again, I am not convinced that 1 or 2 files
> can cause this to happen over the period of a week. Plus,
Ah! Now we have a clue that points against the memory leak scenario. They> it has happened over the space of 24hrs as well, then it
> will right itself.
>
> It happened at 11pm last night, then when I checked again
> this morning, it was fine.
>
usually will not fix themselves. However, we still can't rule it out: the
resources may be on the borderline of causing inetinfo to fail, perhaps
another process on the server finishes and releases its resources allowing
inetinfo to recover...
[url]http://support.microsoft.com?kbid=309051[/url]>
> Any other ideas will be appreciated, I have seen the page
> you sent and have already forwarded onto my hosts.
>
Check out the IIS6 Resource Kit:
[url]http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&DisplayLang=en[/url]
Also, run IISState to capture your problem and have it looked at:
[url]http://www.iisfaq.com/default.aspx?view=P197[/url]
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows Guest
-
Alan Easton #5
Re: ASP pages not rendering
Hi Bob,
Thanks again for the info.
The recordset problem is something I thought of as well,
and I do the same, close each one and set it to nothing.
Right now, at 15:18GMT, my site is currently down,
[url]http://www.sportnorthumbria.com[/url]. Now it was fine at about
13:00GMT, so why in the space of 2hrs, it is not
rendering ASP. There can be no way I generate the same
traffic in 2 hours that would cause ASP not to respond,
if it was an open connection problem, that is why I think
there is something else.
I do close my recordsets and my DB connections, and even
though my site as a whole does make alot of calls to the
DB, I don't understand why it runs fine over the period
of 10 days, then goes down twice in the space of 24hrs.
I appreciate your help Bob, the stuff you have sent me, I
will forward on to my hosts, unfortunately I cannot run
any of it, so it will be up to my hosts.
What about DB connectivity...???....could it be the
connection string I use...currently a DSN-Less
connection, are there better ones to use....
Thanks again for your opinions on this Bob.
Alan...
DESTROY them as>-----Original Message-----
>Alan Easton wrote:>>> Hi Bob,
>>
>> Thanks for the reply. The reason I am not convinced is
>> that at the end of all my files, I have an include file
>> that closes the DB connection, just like I have an
>> include file at the beginning that opens it.
>How about recordset objects? Do you explicitly close ANDdoing something,>well? If a recordset is still open and in the process ofraised when the>the connection may not be close-able. An error will beof scope, there will>attempt to close it is made, but since your page is outwill remain open,>be nothing to respond to the error and the connectiontwo I>causing memory to leak.
>>>
>> Now I have checked all my files, but perhaps one orfiles>> have missed, again, I am not convinced that 1 or 2Plus,>> can cause this to happen over the period of a week.it>
>Why not? Once a memory leak begins, it keeps leaking.
>>> it has happened over the space of 24hrs as well, thenagain>> will right itself.
>>
>> It happened at 11pm last night, then when I checkedleak scenario. They>>> this morning, it was fine.
>>
>Ah! Now we have a clue that points against the memoryrule it out: the>usually will not fix themselves. However, we still can'tto fail, perhaps>resources may be on the borderline of causing inetinforesources allowing>another process on the server finishes and releases itspage>inetinfo to recover...
>>>
>> Any other ideas will be appreciated, I have seen theFamilyID=56fc92ee-a71a-4c73-b628->[url]http://support.microsoft.com?kbid=309051[/url]>> you sent and have already forwarded onto my hosts.
>>
>
>Check out the IIS6 Resource Kit:
>[url]http://www.microsoft.com/downloads/details.aspx?[/url]
ade629c89499&DisplayLang=enlooked at:>
>Also, run IISState to capture your problem and have itspam trap so I>[url]http://www.iisfaq.com/default.aspx?view=P197[/url]
>
>
>Bob Barrows
>
>
>--
>Microsoft MVP - ASP/ASP.NET
>Please reply to the newsgroup. This email account is mythen remove the>don't check it very often. If you must reply off-line,>"NO SPAM"
>
>
>.
>Alan Easton Guest
-
Bob Barrows #6
Re: ASP pages not rendering
Alan Easton wrote:
If you are using ODBC, then you would be better of switching to OLEDB if a> Hi Bob,
>
> Thanks again for the info.
>
> The recordset problem is something I thought of as well,
> and I do the same, close each one and set it to nothing.
>
> Right now, at 15:18GMT, my site is currently down,
> [url]http://www.sportnorthumbria.com[/url]. Now it was fine at about
> 13:00GMT, so why in the space of 2hrs, it is not
> rendering ASP. There can be no way I generate the same
> traffic in 2 hours that would cause ASP not to respond,
> if it was an open connection problem, that is why I think
> there is something else.
>
> I do close my recordsets and my DB connections, and even
> though my site as a whole does make alot of calls to the
> DB, I don't understand why it runs fine over the period
> of 10 days, then goes down twice in the space of 24hrs.
>
> I appreciate your help Bob, the stuff you have sent me, I
> will forward on to my hosts, unfortunately I cannot run
> any of it, so it will be up to my hosts.
>
> What about DB connectivity...???....could it be the
> connection string I use...currently a DSN-Less
> connection, are there better ones to use....
native OLEDB provider exists for your database. See
[url]www.able-consulting.com/ado_conn.htm[/url] for examples. But I am starting to
doubt that the ADO connections are the problem. If you are using SQL Server,
you can check to see if there are any orphaned connections ...
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows Guest
-
Alan Easton #7
Re: ASP pages not rendering
Hi Bob,
Thanks again for the response.
I have sent my hosts the links you gave me. They have
replies with a response of: "We have stopped the Indexing
Service on this server as it was utilising almost 100% of
the servers CPU. This may have been causing the problem"
Any feelings on this. Could this be caused by my website??
My hosts, which have been very good, and myself will
continue to trouble-shoot this. If you think of anything
else, or know if the response they gave me highlights
anything, then please do let me know.
Much appreciated the time you have spent answering my
posts, this website is massively important to me.
Thanks again,
Alan...
well,>-----Original Message-----
>Alan Easton wrote:>> Hi Bob,
>>
>> Thanks again for the info.
>>
>> The recordset problem is something I thought of asnothing.>> and I do the same, close each one and set it toabout>>
>> Right now, at 15:18GMT, my site is currently down,
>> [url]http://www.sportnorthumbria.com[/url]. Now it was fine atthink>> 13:00GMT, so why in the space of 2hrs, it is not
>> rendering ASP. There can be no way I generate the same
>> traffic in 2 hours that would cause ASP not to respond,
>> if it was an open connection problem, that is why Ieven>> there is something else.
>>
>> I do close my recordsets and my DB connections, andthe>> though my site as a whole does make alot of calls tome, I>> DB, I don't understand why it runs fine over the period
>> of 10 days, then goes down twice in the space of 24hrs.
>>
>> I appreciate your help Bob, the stuff you have sentswitching to OLEDB if a>>> will forward on to my hosts, unfortunately I cannot run
>> any of it, so it will be up to my hosts.
>>
>> What about DB connectivity...???....could it be the
>> connection string I use...currently a DSN-Less
>> connection, are there better ones to use....
>If you are using ODBC, then you would be better ofam starting to>native OLEDB provider exists for your database. See
>[url]www.able-consulting.com/ado_conn.htm[/url] for examples. But Iare using SQL Server,>doubt that the ADO connections are the problem. If youconnections ...>you can check to see if there are any orphanedspam trap so I>
>Bob Barrows
>--
>Microsoft MVP - ASP/ASP.NET
>Please reply to the newsgroup. This email account is mythen remove the>don't check it very often. If you must reply off-line,>"NO SPAM"
>
>
>.
>Alan Easton Guest
-
Bob Barrows #8
Re: ASP pages not rendering
Alan Easton wrote:
It could be, but it does not explain why html pages continued to be served> Hi Bob,
>
> Thanks again for the response.
>
> I have sent my hosts the links you gave me. They have
> replies with a response of: "We have stopped the Indexing
> Service on this server as it was utilising almost 100% of
> the servers CPU. This may have been causing the problem"
>
> Any feelings on this. Could this be caused by my website??
>
....
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Bob Barrows Guest
-
Alan Easton #9
Re: ASP pages not rendering
Hi Bob,
Well, if that is you feeling about their response, I will
pass on your view as HTML pages are served no problem.
If you do have any other suggestions, please do mail me
at: [email]alaneaston666@hotmail.com[/email]
I am struggling to find a solution to this Bob so any
help whatsover would be greatly appreciated.
Many Thanks,
Alan...
Indexing>-----Original Message-----
>Alan Easton wrote:>> Hi Bob,
>>
>> Thanks again for the response.
>>
>> I have sent my hosts the links you gave me. They have
>> replies with a response of: "We have stopped theof>> Service on this server as it was utilising almost 100%problem">> the servers CPU. This may have been causing thewebsite??>>
>> Any feelings on this. Could this be caused by mycontinued to be served>It could be, but it does not explain why html pages>>spam trap so I>....
>
>Bob Barrows
>
>--
>Microsoft MVP - ASP/ASP.NET
>Please reply to the newsgroup. This email account is mythen remove the>don't check it very often. If you must reply off-line,>"NO SPAM"
>
>
>.
>Alan Easton Guest



Reply With Quote

