Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

IIS 5, DLLHOST and Oracle

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  Service keeps stopping  
Author Message
fmatos

External


Since: Oct 31, 2003
Posts: 2



(Msg. 1) Posted: Fri Oct 31, 2003 12:38 pm
Post subject: IIS 5, DLLHOST and Oracle
Archived from groups: microsoft>public>inetserver>iis (more info?)

Please,

i have some ASP websites that retrieves data from an Oracle Database through
ODBC.

The problem is that the DLLHOST is using lot of memory and my IIS crashes.

Any idea?

Tks
Fabiano

 >> Stay informed about: IIS 5, DLLHOST and Oracle 
Back to top
Login to vote
bbooth

External


Since: Oct 10, 2003
Posts: 68



(Msg. 2) Posted: Fri Oct 31, 2003 5:07 pm
Post subject: RE: IIS 5, DLLHOST and Oracle [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If the memory increases very quickly then it is a coding issue that is
being exposed by a database connectivity problem.

To fix this:
Find all your code that loops through a recordset loop and change it such
as the example below. Depending on how exactly you've written your loops
you want to change it to exit the loop if there is an error.

Old Code:
While Not recordset.EOF
'Your code does something here
recordset.MoveNext
Wend

New Code:
While Not recordset.EOF and Err.Number = 0
'Your code does something here
recordset.MoveNext
Wend

You could also add some error logging to find out the exact nature of the
connectivity problem.

<%
'ErrorLog.inc
If Err.Number <> 0 Then
  RecordError(_
   Request.ServerVariables("SCRIPT_NAME") & ":" & _
   Err.Number & ":" & _
   Err.Description & ":" & _
   Err.Source)
End If

Sub RecordError(WhatToWrite)
  On Error Resume Next
   Const ForAppending = 8
   Dim fso, outputFile
   Set fso = Server.CreateObject("Scripting.FileSystemObject")
   Set outputFile = fso.OpenTextFile("c:\CustomLog.txt", ForAppending, True)
   outputFile.WriteLine WhatToWrite
   outputFile.Close
   Set outputFile = Nothing
   Set fso = Nothing
  On Error GoTo 0
End Sub
%>

Hope this helps,
Brian Murphy-Booth<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: IIS 5, DLLHOST and Oracle 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
IIS 5 and Oracle 8i - Oracle contains our user login tables for a web app. The app was developed on an NT 4 platform. When moved to Win 2000 server, suddenly data integrity is lost. For example, each user should only see certain data, as determined by role codes in the..

works on one server not another IIS and Oracle setup - Each server is has the Oracle Client, win2000, IIS 5.0, the TNS names match and the code is the same .. any ideas? Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on..

Unspecified error from ASP when calling Oracle 9i Package - Here is the code that calls the Oracle package: Function b_GetRecords(sTableName, sRecordName) on error resume next dim cmd, objParameter <font color=purple> ; </font> Set conn = Server.CreateObject("ADODB.Connection") ...

dllhost - Our webserver will become very slow. So we look at the task manager and the dllhost.exe is taking up 99% of the CPU. What could be causing this? Any ideas? Any suggestions? Thanks, Hutch

IIS 5.0 DLLhost - I am running a webserver with w2k and IIS 5.0 When putting an individual site into High isolation I believe these sites show up under DLLHOST.exe in task manager. How can I tell which site is attached to which DLLHOST so I can further troubleshoot..
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

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



[ Contact us | Terms of Service/Privacy Policy ]