473,396 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

I suspect memory leak !!

We have a web application in AS. It also uses COM+ and SQL Server as
back-end.

Sometimes the size of the dllhost.exe grows unexpectedly. It is such that we
restart our IIS/ PWS. Also there is only one instance of dllhost running
when we restart the webserver but later on we notice more than one instance
sometimes.

Please suggest.


Jul 19 '05 #1
11 2199
one of your COM objects is causing it.

check that you clean up in your classes. ie. close objects and db
connections etc.
and do proper error trapping to avoid endless loops etc.

many instances of dllhost isn't really a problem, but untidy code inside COM
objects will definitely cause them to munch memory

"Newbie" <ab*@pqr.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
We have a web application in AS. It also uses COM+ and SQL Server as
back-end.

Sometimes the size of the dllhost.exe grows unexpectedly. It is such that we restart our IIS/ PWS. Also there is only one instance of dllhost running
when we restart the webserver but later on we notice more than one instance sometimes.

Please suggest.

Jul 19 '05 #2
The problem is almost certainly caused by something you introduced to the
system. I have never seen dllhost.exe go crazy except in cases where there
is a rogue component, an infinite loop, unclosed objects or an MDAC version
in desperate need of an upgrade. Please review http://www.aspfaq.com/2227

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Newbie" <ab*@pqr.com> wrote in message
news:#a**************@TK2MSFTNGP12.phx.gbl...
We have a web application in AS. It also uses COM+ and SQL Server as
back-end.

Sometimes the size of the dllhost.exe grows unexpectedly. It is such that we restart our IIS/ PWS. Also there is only one instance of dllhost running
when we restart the webserver but later on we notice more than one instance sometimes.

Please suggest.

Jul 19 '05 #3
"almost certainly" ?

We recently diagnosed a serious memory leak in Analysis Services that was
causing our DLLHOST processes to eventually fail. I remember taking
exception to the MSDN guidelines that implicitly suggested all memory
problems were due to design/programming errors by the customer.

Tony Proctor

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:eQ*************@tk2msftngp13.phx.gbl...
The problem is almost certainly caused by something you introduced to the
system. I have never seen dllhost.exe go crazy except in cases where there is a rogue component, an infinite loop, unclosed objects or an MDAC version in desperate need of an upgrade. Please review http://www.aspfaq.com/2227

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Newbie" <ab*@pqr.com> wrote in message
news:#a**************@TK2MSFTNGP12.phx.gbl...
We have a web application in AS. It also uses COM+ and SQL Server as
back-end.

Sometimes the size of the dllhost.exe grows unexpectedly. It is such
that we
restart our IIS/ PWS. Also there is only one instance of dllhost running
when we restart the webserver but later on we notice more than one

instance
sometimes.

Please suggest.


Jul 19 '05 #4
> We recently diagnosed a serious memory leak in Analysis Services that was
causing our DLLHOST processes to eventually fail.


I was speaking about DLLHOST in relation to IIS and ASP. What does Analysis
Services have to do with your COM DLLs?

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
Jul 19 '05 #5
So was I Aaron. The web application used a number of VB components via ASP.
Most of these used both SQLServer and MS OLAP.

Tony Proctor

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:uw**************@TK2MSFTNGP12.phx.gbl...
We recently diagnosed a serious memory leak in Analysis Services that was causing our DLLHOST processes to eventually fail.
I was speaking about DLLHOST in relation to IIS and ASP. What does

Analysis Services have to do with your COM DLLs?

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/

Jul 19 '05 #6
> So was I Aaron. The web application used a number of VB components via
ASP.
Most of these used both SQLServer and MS OLAP.


And is this the case now, or only in your "recently diagnosed" scenario?
Did you raise the issue with Microsoft? Did you have a support ticket? Did
you get it resolved by Microsoft? Is there already a hotfix for the
problem? How do you expect them to fix something if you don't make them
directly aware of the problem? For all intents and purposes, your own
diagnosis points to OLAP as the cause only in your own isolated environment.
Until there is an issue acknowledged by the vendor, you can't expect us to
take for gospel that the problem is with OLAP. In any case, I have used MS
OLAP tools in ASP applications before (I currently maintain one such app for
2000+ clients), and I have yet to see them cause dllhost problems on their
own. So obviously my initial statement stands: there is something involved
here that you are doing differently.
Jul 19 '05 #7
Heh, steady on Aaron. I'm not asking you to take anything as gospel. My
point was merely that MS can be as guilty of a memory leak as anyone else,
and AS (Analysis Services) has a particular reputation in this area.

As it happens, the problem *was* reported to MS. They did acknowledge there
was a leak, and that our diagnosis was spot on. A non-redistibutable hotfix
was created, but then removed from their web site as soon as we took it.
This is not acceptable as all our customers need the fix too. Unfortunately,
the issue is slightly complicated by the fact the initial report was done
via an OEM partner in the US, and now has to be reported independently by
ourselves in the UK - such is the machinery of MS support. :-(

Tony Proctor

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:OA**************@TK2MSFTNGP10.phx.gbl...
So was I Aaron. The web application used a number of VB components via ASP.
Most of these used both SQLServer and MS OLAP.


And is this the case now, or only in your "recently diagnosed" scenario?
Did you raise the issue with Microsoft? Did you have a support ticket?

Did you get it resolved by Microsoft? Is there already a hotfix for the
problem? How do you expect them to fix something if you don't make them
directly aware of the problem? For all intents and purposes, your own
diagnosis points to OLAP as the cause only in your own isolated environment. Until there is an issue acknowledged by the vendor, you can't expect us to
take for gospel that the problem is with OLAP. In any case, I have used MS OLAP tools in ASP applications before (I currently maintain one such app for 2000+ clients), and I have yet to see them cause dllhost problems on their
own. So obviously my initial statement stands: there is something involved here that you are doing differently.

Jul 19 '05 #8
Your original issue mentioned nothing of Analysis Services, and I am still
going on the assumption that it is a different issue than the case you
brought up with Microsoft.

Do you want help with your initial issue, or do you want to discuss how
poorly Microsoft treated you?

If the latter, this isn't the place.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Tony Proctor" <tony_proctor@aimtechnology_NOSPAM_.com> wrote in message
news:OU**************@TK2MSFTNGP10.phx.gbl...
Heh, steady on Aaron. I'm not asking you to take anything as gospel. My
point was merely that MS can be as guilty of a memory leak as anyone else,
and AS (Analysis Services) has a particular reputation in this area.

As it happens, the problem *was* reported to MS. They did acknowledge there was a leak, and that our diagnosis was spot on. A non-redistibutable hotfix was created, but then removed from their web site as soon as we took it.
This is not acceptable as all our customers need the fix too. Unfortunately, the issue is slightly complicated by the fact the initial report was done
via an OEM partner in the US, and now has to be reported independently by
ourselves in the UK - such is the machinery of MS support. :-(

Tony Proctor

Jul 19 '05 #9
eh? Are we at cross-purposes here?

My original reply in this thread mentioned Analysis Services (or Microsoft
OLAP, as it used to be called). msolap80.dll was the hotfixed MS component.
We've confirmed that the hotfix cures our leak.

Unless the OP's problem fits the same description as ours then this
direction is not helping him. As I said before, my intention was merely to
suggest that leaks are not always the fault of the application developer.

Thanks for the offer but we'll progress the call, and the request for a
redistributable fix, through normal channels Aaron.

Tony Proctor

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:#I**************@tk2msftngp13.phx.gbl...
Your original issue mentioned nothing of Analysis Services, and I am still
going on the assumption that it is a different issue than the case you
brought up with Microsoft.

Do you want help with your initial issue, or do you want to discuss how
poorly Microsoft treated you?

If the latter, this isn't the place.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Tony Proctor" <tony_proctor@aimtechnology_NOSPAM_.com> wrote in message
news:OU**************@TK2MSFTNGP10.phx.gbl...
Heh, steady on Aaron. I'm not asking you to take anything as gospel. My
point was merely that MS can be as guilty of a memory leak as anyone else, and AS (Analysis Services) has a particular reputation in this area.

As it happens, the problem *was* reported to MS. They did acknowledge

there
was a leak, and that our diagnosis was spot on. A non-redistibutable

hotfix
was created, but then removed from their web site as soon as we took it.
This is not acceptable as all our customers need the fix too.

Unfortunately,
the issue is slightly complicated by the fact the initial report was done via an OEM partner in the US, and now has to be reported independently by ourselves in the UK - such is the machinery of MS support. :-(

Tony Proctor


Jul 19 '05 #10
ahem... if you ladies are quite done...
"Tony Proctor" <tony_proctor@aimtechnology_NOSPAM_.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
eh? Are we at cross-purposes here?

My original reply in this thread mentioned Analysis Services (or Microsoft
OLAP, as it used to be called). msolap80.dll was the hotfixed MS component. We've confirmed that the hotfix cures our leak.

Unless the OP's problem fits the same description as ours then this
direction is not helping him. As I said before, my intention was merely to
suggest that leaks are not always the fault of the application developer.

Thanks for the offer but we'll progress the call, and the request for a
redistributable fix, through normal channels Aaron.

Tony Proctor

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:#I**************@tk2msftngp13.phx.gbl...
Your original issue mentioned nothing of Analysis Services, and I am still
going on the assumption that it is a different issue than the case you
brought up with Microsoft.

Do you want help with your initial issue, or do you want to discuss how
poorly Microsoft treated you?

If the latter, this isn't the place.

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


"Tony Proctor" <tony_proctor@aimtechnology_NOSPAM_.com> wrote in message
news:OU**************@TK2MSFTNGP10.phx.gbl...
Heh, steady on Aaron. I'm not asking you to take anything as gospel. My point was merely that MS can be as guilty of a memory leak as anyone

else, and AS (Analysis Services) has a particular reputation in this area.

As it happens, the problem *was* reported to MS. They did acknowledge

there
was a leak, and that our diagnosis was spot on. A non-redistibutable

hotfix
was created, but then removed from their web site as soon as we took it. This is not acceptable as all our customers need the fix too.

Unfortunately,
the issue is slightly complicated by the fact the initial report was done via an OEM partner in the US, and now has to be reported independently by ourselves in the UK - such is the machinery of MS support. :-(

Tony Proctor



Jul 19 '05 #11
Just to follow-up on this, and show that my "AS memory leak" wasn't hot air:
details may be found at
http://support.microsoft.com/default...b;EN-US;838840

Tony Proctor

"Newbie" <ab*@pqr.com> wrote in message
news:#a**************@TK2MSFTNGP12.phx.gbl...
We have a web application in AS. It also uses COM+ and SQL Server as
back-end.

Sometimes the size of the dllhost.exe grows unexpectedly. It is such that we restart our IIS/ PWS. Also there is only one instance of dllhost running
when we restart the webserver but later on we notice more than one instance sometimes.

Please suggest.

Jul 19 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: ranjeet.gupta | last post by:
Dear All Is the Root Cause of the Memory corruption is the Memory leak, ?? suppose If in the code there is Memory leak, Do this may lead to the Memory Corruption while executing the program ? ...
17
by: José Joye | last post by:
Hi, I have implemented a Service that is responsible for getting messages from a MS MQ located on a remote machine. I'm getting memory leak from time to time (???). In some situation, it is...
4
by: Don Nell | last post by:
Hello Why is there a memory leak when this code is executed. for(;;) { ManagementScope scope = new ManagementScope(); scope.Options.Username="username"; scope.Options.Password="password";...
20
by: jeevankodali | last post by:
Hi I have an .Net application which processes thousands of Xml nodes each day and for each node I am using around 30-40 Regex matches to see if they satisfy some conditions are not. These Regex...
23
by: James | last post by:
The following code will create memory leaks!!! using System; using System.Diagnostics; using System.Data; using System.Data.SqlClient; namespace MemoryLeak
8
by: Adrian | last post by:
Hi I have a JS program that runs localy (under IE6 only) on a PC but it has a memory leak (probably the known MS one!) What applications are there that I could use to look at the memory usage of...
3
by: Jim Land | last post by:
Jack Slocum claims here http://www.jackslocum.com/yui/2006/10/02/3-easy-steps-to-avoid-javascript- memory-leaks/ that "almost every site you visit that uses JavaScript is leaking memory". ...
27
by: Neil | last post by:
Hello all! I wrote program with a array of pointers, and I suspect they are pointing at each other in the Do ...While loop. Something is messed up with the increment variable word. A program...
22
by: Peter | last post by:
I am using VS2008. I have a Windows Service application which creates Crystal Reports. This is a multi theaded application which can run several reports at one time. My problem - there is a...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.