Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Out of Memory When using COM Objects

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Next:  HTTP 403.13 - Forbidden: Client certificate revok..  
Author Message
czhan

External


Since: Apr 20, 2004
Posts: 2



(Msg. 1) Posted: Wed Apr 21, 2004 1:30 am
Post subject: Out of Memory When using COM Objects
Archived from groups: microsoft>public>inetserver>iis (more info?)

We have a few COM objects writen in VB6 that are used by our web sites
with ASP. Recently the DLLHOST (which I believe hosts the DLLs) often
cause the server to go out of memory.

I can view the DLLHOST process and the memory it's using by using
Process Explorer from sysinternals.com. Sometimes it occupies almost
2G of memory. At that time, no asp page will run because of not enough
memory. But our server has 1.5G RAM on it, and I think the DLLHOST is
taking more memory than it should.

Anyone knows what could be the reason?


Thanks,

James

 >> Stay informed about: Out of Memory When using COM Objects 
Back to top
Login to vote
unknown

External


Since: Apr 11, 2004
Posts: 87



(Msg. 2) Posted: Wed Apr 21, 2004 2:02 pm
Post subject: Re: Out of Memory When using COM Objects [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If you are finding your IIS server crashing out of the blue and are
trying to figure out the problem(s) it won't hurt to try the following:

If you are running ASP/Access databases try compacting
your Access Databases if the sites that are going off line without notice.
If you use the databases very often that they tend to "Corrupt"
every once in a while. Be very sure that you Compact all of the Databases
that are on the server and for each one that you run the Compact tool on
that you then check the Rights on the file AFTER you run the Compact tool, I
have found that each time I run the tool it resets the IUSR account back to
Read only and if you are allowing some sort of Writing to the database you
need the Write permission. Be sure you get all of the Access databases
because just one bad database can take all the ASP/Access sites offline.

Before you use the Compact tool take note of the size of your database in
Kb's, and when you are done notice that most of your databases will be much
smaller in size, I've had some go from being 1.28 Mb's to 148 Kb's. You
will find the Compact and Repair tool by first having your Access database
open and on the "Tools", then "Database Utilities" tab on your Tool bar, and
then click on the "Compact and Repair Database" and it will run, there is
nothing else to do your done.

Again be sure you find and Compact ALL of the databases and check each one
for their permission after you Compact or you will be hearing from each of
your clients that they have a problem writing to the database.

Also I had a problem at one time with a UPS that was running way out of wack
too, and it was "banging away" at a COM port every second over and over, and
by unloading the software I quickly determined that Energizer UPS does not
work with a Windows 2000 Server, I did notify the Energizer company and they
did inform me that this particular model was not supported on a Windows 2000
IIS Server.

--


Regards,

Carroll


"James" <czhan.TakeThisOut@hotmail.com> wrote in message
news:c72bfd95.0404202130.1ff80ae9@posting.google.com...
 > We have a few COM objects writen in VB6 that are used by our web sites
 > with ASP. Recently the DLLHOST (which I believe hosts the DLLs) often
 > cause the server to go out of memory.
 >
 > I can view the DLLHOST process and the memory it's using by using
 > Process Explorer from sysinternals.com. Sometimes it occupies almost
 > 2G of memory. At that time, no asp page will run because of not enough
 > memory. But our server has 1.5G RAM on it, and I think the DLLHOST is
 > taking more memory than it should.
 >
 > Anyone knows what could be the reason?
 >
 >
 > Thanks,
 >
 > James<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Out of Memory When using COM Objects 
Back to top
Login to vote
czhan

External


Since: Apr 20, 2004
Posts: 2



(Msg. 3) Posted: Wed Apr 21, 2004 2:48 pm
Post subject: Re: Out of Memory When using COM Objects [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi, Thank you.

We are not using Access, we use SQL Server 2000 database.

The strange thing is when I try to duplicate the problem, I couldn't.
I tried to run all the pages that could be possible source of
problems, but the memory is not increasing. But one time, I see the
memory increased 1GB in a few seconds. Could it be malicious attack?

Thanks,

James
 >> Stay informed about: Out of Memory When using COM Objects 
Back to top
Login to vote
user1279

External


Since: Jan 12, 2004
Posts: 19



(Msg. 4) Posted: Wed Apr 21, 2004 3:03 pm
Post subject: Re: Out of Memory When using COM Objects [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi James,

Sounds like a standard memory leak to me and I believe you should go through
the code an perform more cleanup. What other resources does these com object
call?

/Johan


"James" <czhan.TakeThisOut@hotmail.com> wrote in message
news:c72bfd95.0404202130.1ff80ae9@posting.google.com...
 > We have a few COM objects writen in VB6 that are used by our web sites
 > with ASP. Recently the DLLHOST (which I believe hosts the DLLs) often
 > cause the server to go out of memory.
 >
 > I can view the DLLHOST process and the memory it's using by using
 > Process Explorer from sysinternals.com. Sometimes it occupies almost
 > 2G of memory. At that time, no asp page will run because of not enough
 > memory. But our server has 1.5G RAM on it, and I think the DLLHOST is
 > taking more memory than it should.
 >
 > Anyone knows what could be the reason?
 >
 >
 > Thanks,
 >
 > James<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Out of Memory When using COM Objects 
Back to top
Login to vote
czhan_notspam

External


Since: Apr 21, 2004
Posts: 1



(Msg. 5) Posted: Wed Apr 21, 2004 3:13 pm
Post subject: Re: Out of Memory When using COM Objects [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Johan,

I haven't found out the pattern of the problem. But we can have normal usage
for a week without seeing this problem. I believe this means the code is
mostly okay.

The only resource we use is SQL Server, which is not showing anything
unusual.

James

"Johan Karlsson" <johan.karlsson.DeleteThis@adnome.se> wrote in message
news:emt5zf4JEHA.1892@TK2MSFTNGP09.phx.gbl...
 > Hi James,
 >
 > Sounds like a standard memory leak to me and I believe you should go
through
 > the code an perform more cleanup. What other resources does these com
object
 > call?
 >
 > /Johan
 >
 >
 > "James" <czhan.DeleteThis@hotmail.com> wrote in message
 > news:c72bfd95.0404202130.1ff80ae9@posting.google.com...
  > > We have a few COM objects writen in VB6 that are used by our web sites
  > > with ASP. Recently the DLLHOST (which I believe hosts the DLLs) often
  > > cause the server to go out of memory.
  > >
  > > I can view the DLLHOST process and the memory it's using by using
  > > Process Explorer from sysinternals.com. Sometimes it occupies almost
  > > 2G of memory. At that time, no asp page will run because of not enough
  > > memory. But our server has 1.5G RAM on it, and I think the DLLHOST is
  > > taking more memory than it should.
  > >
  > > Anyone knows what could be the reason?
  > >
  > >
  > > Thanks,
  > >
  > > James
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Out of Memory When using COM Objects 
Back to top
Login to vote
user1279

External


Since: Jan 12, 2004
Posts: 19



(Msg. 6) Posted: Thu Apr 22, 2004 12:27 pm
Post subject: Re: Out of Memory When using COM Objects [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi!

I've experienced the same thing with com+ services ones, but we made an
change to the overall architecture before this became an major issue so we
didn't go any deeper into that at the time.

The setup was a net component placed in com+ services. This component talked
to a sql server 2000. Looking at the statistics for the com+ application
reveiled that the com+ services never released instanciated objects, making
the dllhost.exe growing to about 500MB before exhausting the system.

Are you using com+ services?

/Johan

"James Chen" <czhan_NOTSPAM DeleteThis @hotmail.com> wrote in message
news:O0IwzS9JEHA.3924@tk2msftngp13.phx.gbl...
 > Hi Johan,
 >
 > I haven't found out the pattern of the problem. But we can have normal
usage
 > for a week without seeing this problem. I believe this means the code is
 > mostly okay.
 >
 > The only resource we use is SQL Server, which is not showing anything
 > unusual.
 >
 > James
 >
 > "Johan Karlsson" <johan.karlsson DeleteThis @adnome.se> wrote in message
 > news:emt5zf4JEHA.1892@TK2MSFTNGP09.phx.gbl...
  > > Hi James,
  > >
  > > Sounds like a standard memory leak to me and I believe you should go
 > through
  > > the code an perform more cleanup. What other resources does these com
 > object
  > > call?
  > >
  > > /Johan
  > >
  > >
  > > "James" <czhan DeleteThis @hotmail.com> wrote in message
  > > news:c72bfd95.0404202130.1ff80ae9@posting.google.com...
   > > > We have a few COM objects writen in VB6 that are used by our web sites
   > > > with ASP. Recently the DLLHOST (which I believe hosts the DLLs) often
   > > > cause the server to go out of memory.
   > > >
   > > > I can view the DLLHOST process and the memory it's using by using
   > > > Process Explorer from sysinternals.com. Sometimes it occupies almost
   > > > 2G of memory. At that time, no asp page will run because of not enough
   > > > memory. But our server has 1.5G RAM on it, and I think the DLLHOST is
   > > > taking more memory than it should.
   > > >
   > > > Anyone knows what could be the reason?
   > > >
   > > >
   > > > Thanks,
   > > >
   > > > James
  > >
  > >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Out of Memory When using COM Objects 
Back to top
Login to vote
user1279

External


Since: Jan 12, 2004
Posts: 19



(Msg. 7) Posted: Thu Apr 22, 2004 12:28 pm
Post subject: Re: Out of Memory When using COM Objects [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Some kind of deadlock? Are the com components always called from ASP pages?

/Johan


"James" <czhan.TakeThisOut@hotmail.com> wrote in message
news:c72bfd95.0404211048.6a31a643@posting.google.com...
 > Hi, Thank you.
 >
 > We are not using Access, we use SQL Server 2000 database.
 >
 > The strange thing is when I try to duplicate the problem, I couldn't.
 > I tried to run all the pages that could be possible source of
 > problems, but the memory is not increasing. But one time, I see the
 > memory increased 1GB in a few seconds. Could it be malicious attack?
 >
 > Thanks,
 >
 > James<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Out of Memory When using COM Objects 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (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 ]