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 Memory leak

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  IIS version 5 needs to support .aspx pages HOW???..  
Author Message
anonymous1420

External


Since: Mar 12, 2004
Posts: 11



(Msg. 1) Posted: Fri Mar 12, 2004 4:21 pm
Post subject: IIS Memory leak
Archived from groups: microsoft>public>inetserver>iis (more info?)

We are currently trying to determine if we have a memory
leak. I have searched and seen a number of posts about
looking at Process\Private Bytes and Process\Virtual
Bytes.

What I have read indicates that if Private Bytes is
increasing, you have a memory leak. In our case Private
Bytes seems to go up and down over short periods, but the
overall trend is up. When I started logging, it was at
375MB, and about 6 hours later it is at about 410MB.

Is this the kind of thing that would be seen in a memory
leak, or would it be a situation where Private Bytes
NEVER went down?

Virtual Bytes is very flat. It was at 1GB and then all
of a sudden jumped to 1.2 GB and stayed there.

Also, I recently ran across a post by Pat Filoteo that
listed some practices that are poor memory performers or
cause memory fragmentation. Listed were: concatenation,
the use of ReDim in a loop. Are there any others?

He also mentioned that each concatenation hits memory 6
times. Could we get some more details on that?

Any information would be appreciated.

Thanks,
Pete Conlan

 >> Stay informed about: IIS Memory leak 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 2) Posted: Fri Mar 12, 2004 6:06 pm
Post subject: Re: IIS Memory leak [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You have to be very careful in distinguishing memory leaks and "aggressive
caching".
- Memory leak is memory that is allocated, possibly used, and then "lost
track of".
- "Aggressive caching" is memory that is allocated and being used, but it is
not lost and will be eventually freed. For example, telling IIS to use up
to 400MB of RAM as a file cache


Personally, looking at a 6 hour trend and it moves between 375MB and 410MB,
I am not concerned. I don't know if after 12 hours your memory usage hovers
around 400MB or 600MB. If you come back after 24 hours and it's at 800MB
and after 48 hours it is 1.6GB and the website(s) involved is pretty
"small", then I would think memory leak. Until you have a "profile" of
memory use by your app, you really can't say "memory leak". For example,
your app's configuration may be using 1GB of memory in "steady state", so
watching RAM increase until 1GB is no concern.

It is not clear whether you are claiming a memory leak in IIS itself or a
memory leak in 3rd party code run on IIS, including your own.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Peter Conlan" <anonymous.RemoveThis@discussions.microsoft.com> wrote in message
news:c09601c40877$ecfcfdf0$a501280a@phx.gbl...
We are currently trying to determine if we have a memory
leak. I have searched and seen a number of posts about
looking at Process\Private Bytes and Process\Virtual
Bytes.

What I have read indicates that if Private Bytes is
increasing, you have a memory leak. In our case Private
Bytes seems to go up and down over short periods, but the
overall trend is up. When I started logging, it was at
375MB, and about 6 hours later it is at about 410MB.

Is this the kind of thing that would be seen in a memory
leak, or would it be a situation where Private Bytes
NEVER went down?

Virtual Bytes is very flat. It was at 1GB and then all
of a sudden jumped to 1.2 GB and stayed there.

Also, I recently ran across a post by Pat Filoteo that
listed some practices that are poor memory performers or
cause memory fragmentation. Listed were: concatenation,
the use of ReDim in a loop. Are there any others?

He also mentioned that each concatenation hits memory 6
times. Could we get some more details on that?

Any information would be appreciated.

Thanks,
Pete Conlan

 >> Stay informed about: IIS Memory leak 
Back to top
Login to vote
anonymous77

External


Since: Oct 14, 2003
Posts: 468



(Msg. 3) Posted: Mon Mar 15, 2004 12:54 pm
Post subject: Re: IIS Memory leak [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I wasn't claiming that we have a memory leak. I said we
were trying to determine IF we had one. This is a large
site 10,000+ asp pages, connecting to an SQL Server 2000
database server.

My real question was what behavior do people see with a
memory leak. Does memory NEVER get returned, or does it
go up and down a little, with the overall trend
continually increasing? In the 6 hours since I started
the logging, that was the trend I was seeing. Going up a
certain amount, then coming down, but not back to where
it was. So it would go up some, come down a little, go
up some more, come down a little, etc. I had only been
watching it for 6 hours when I posted that question.

I will continue logging for a few days to see what
happens.

We have 3 IIS5 servers in a cluster using a Cisco Content
Switch. Two of the servers have 1GB of RAM, and the
thrid has 2GB or RAM. The website is running in Isloated
mode on all three servers. On the two with 1GB of RAM,
when the server get's down to about 200MB free (which
takes about a week), IIS starts throwing the general 500
Internal Server Error. On the server with 2GB of RAM,
this happens after the server get's down to about 950MB
free.

On all 3 servers, free RAM just slowly drops over the
course of a week or 2.

Pete

 >-----Original Message-----
 >You have to be very careful in distinguishing memory
leaks and "aggressive
 >caching".
 >- Memory leak is memory that is allocated, possibly
used, and then "lost
 >track of".
 >- "Aggressive caching" is memory that is allocated and
being used, but it is
 >not lost and will be eventually freed. For example,
telling IIS to use up
 >to 400MB of RAM as a file cache
 >
 >
 >Personally, looking at a 6 hour trend and it moves
between 375MB and 410MB,
 >I am not concerned. I don't know if after 12 hours your
memory usage hovers
 >around 400MB or 600MB. If you come back after 24 hours
and it's at 800MB
 >and after 48 hours it is 1.6GB and the website(s)
involved is pretty
 >"small", then I would think memory leak. Until you have
a "profile" of
 >memory use by your app, you really can't say "memory
leak". For example,
 >your app's configuration may be using 1GB of memory
in "steady state", so
 >watching RAM increase until 1GB is no concern.
 >
 >It is not clear whether you are claiming a memory leak
in IIS itself or a
 >memory leak in 3rd party code run on IIS, including your
own.
 >
 >--
 >//David
 >IIS
 >This posting is provided "AS IS" with no warranties, and
confers no rights.
 >//
 >"Peter Conlan" <anonymous.DeleteThis@discussions.microsoft.com>
wrote in message
 >news:c09601c40877$ecfcfdf0$a501280a@phx.gbl...
 >We are currently trying to determine if we have a memory
 >leak. I have searched and seen a number of posts about
 >looking at Process\Private Bytes and Process\Virtual
 >Bytes.
 >
 >What I have read indicates that if Private Bytes is
 >increasing, you have a memory leak. In our case Private
 >Bytes seems to go up and down over short periods, but the
 >overall trend is up. When I started logging, it was at
 >375MB, and about 6 hours later it is at about 410MB.
 >
 >Is this the kind of thing that would be seen in a memory
 >leak, or would it be a situation where Private Bytes
 >NEVER went down?
 >
 >Virtual Bytes is very flat. It was at 1GB and then all
 >of a sudden jumped to 1.2 GB and stayed there.
 >
 >Also, I recently ran across a post by Pat Filoteo that
 >listed some practices that are poor memory performers or
 >cause memory fragmentation. Listed were: concatenation,
 >the use of ReDim in a loop. Are there any others?
 >
 >He also mentioned that each concatenation hits memory 6
 >times. Could we get some more details on that?
 >
 >Any information would be appreciated.
 >
 >Thanks,
 >Pete Conlan
 >
 >
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS Memory leak 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 4) Posted: Mon Mar 15, 2004 5:39 pm
Post subject: Re: IIS Memory leak [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

A "Memory Leak" is characterized by code allocating memory but will never
deallocate. that memory until the process dies. Note that this can look
strikingly similar to the "Aggressive Caching" that I mentioned earlier,
where code intentionally allocates memory for a stated purpose (may be in
direct conjunction with a feature) and may deallocate that memory upon
server shutdown as the process dies.

Memory leak can manifest itself as a "wave" or "sawtooth" that trends
upwards, or as a line trending upwards. Think about it this way -- if code
allocated 50KB, waiting a while, then freed 49KB, waited a while, and then
allocated 50KB again... that's leaking 1KB memory with each iteration even
if the memory usage goes up and down.

Your situation sounds like there is heap fragmentation (2GB machine dying
with around 1GB RAM free).

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
<anonymous.RemoveThis@discussions.microsoft.com> wrote in message
news:d5fe01c40ab6$9e1aab10$a501280a@phx.gbl...
I wasn't claiming that we have a memory leak. I said we
were trying to determine IF we had one. This is a large
site 10,000+ asp pages, connecting to an SQL Server 2000
database server.

My real question was what behavior do people see with a
memory leak. Does memory NEVER get returned, or does it
go up and down a little, with the overall trend
continually increasing? In the 6 hours since I started
the logging, that was the trend I was seeing. Going up a
certain amount, then coming down, but not back to where
it was. So it would go up some, come down a little, go
up some more, come down a little, etc. I had only been
watching it for 6 hours when I posted that question.

I will continue logging for a few days to see what
happens.

We have 3 IIS5 servers in a cluster using a Cisco Content
Switch. Two of the servers have 1GB of RAM, and the
thrid has 2GB or RAM. The website is running in Isloated
mode on all three servers. On the two with 1GB of RAM,
when the server get's down to about 200MB free (which
takes about a week), IIS starts throwing the general 500
Internal Server Error. On the server with 2GB of RAM,
this happens after the server get's down to about 950MB
free.

On all 3 servers, free RAM just slowly drops over the
course of a week or 2.

Pete

 >-----Original Message-----
 >You have to be very careful in distinguishing memory
leaks and "aggressive
 >caching".
 >- Memory leak is memory that is allocated, possibly
used, and then "lost
 >track of".
 >- "Aggressive caching" is memory that is allocated and
being used, but it is
 >not lost and will be eventually freed. For example,
telling IIS to use up
 >to 400MB of RAM as a file cache
 >
 >
 >Personally, looking at a 6 hour trend and it moves
between 375MB and 410MB,
 >I am not concerned. I don't know if after 12 hours your
memory usage hovers
 >around 400MB or 600MB. If you come back after 24 hours
and it's at 800MB
 >and after 48 hours it is 1.6GB and the website(s)
involved is pretty
 >"small", then I would think memory leak. Until you have
a "profile" of
 >memory use by your app, you really can't say "memory
leak". For example,
 >your app's configuration may be using 1GB of memory
in "steady state", so
 >watching RAM increase until 1GB is no concern.
 >
 >It is not clear whether you are claiming a memory leak
in IIS itself or a
 >memory leak in 3rd party code run on IIS, including your
own.
 >
 >--
 >//David
 >IIS
 >This posting is provided "AS IS" with no warranties, and
confers no rights.
 >//
 >"Peter Conlan" <anonymous.RemoveThis@discussions.microsoft.com>
wrote in message
 >news:c09601c40877$ecfcfdf0$a501280a@phx.gbl...
 >We are currently trying to determine if we have a memory
 >leak. I have searched and seen a number of posts about
 >looking at Process\Private Bytes and Process\Virtual
 >Bytes.
 >
 >What I have read indicates that if Private Bytes is
 >increasing, you have a memory leak. In our case Private
 >Bytes seems to go up and down over short periods, but the
 >overall trend is up. When I started logging, it was at
 >375MB, and about 6 hours later it is at about 410MB.
 >
 >Is this the kind of thing that would be seen in a memory
 >leak, or would it be a situation where Private Bytes
 >NEVER went down?
 >
 >Virtual Bytes is very flat. It was at 1GB and then all
 >of a sudden jumped to 1.2 GB and stayed there.
 >
 >Also, I recently ran across a post by Pat Filoteo that
 >listed some practices that are poor memory performers or
 >cause memory fragmentation. Listed were: concatenation,
 >the use of ReDim in a loop. Are there any others?
 >
 >He also mentioned that each concatenation hits memory 6
 >times. Could we get some more details on that?
 >
 >Any information would be appreciated.
 >
 >Thanks,
 >Pete Conlan
 >
 >
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS Memory leak 
Back to top
Login to vote
anonymous77

External


Since: Oct 14, 2003
Posts: 468



(Msg. 5) Posted: Tue Mar 16, 2004 9:34 am
Post subject: Re: IIS Memory leak [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks David.

I was wondering about fragmentation also. The post by
Pat Filoteo I mentioned in my first post also talked a
little about that. I do know that our developers do a
lot of string concatenation, and I need to check on thier
use of redim. Are there any other big things that can
cause heap fragmentation?

Thanks for your help,

Pete

 >-----Original Message-----
 >A "Memory Leak" is characterized by code allocating
memory but will never
 >deallocate. that memory until the process dies. Note
that this can look
 >strikingly similar to the "Aggressive Caching" that I
mentioned earlier,
 >where code intentionally allocates memory for a stated
purpose (may be in
 >direct conjunction with a feature) and may deallocate
that memory upon
 >server shutdown as the process dies.
 >
 >Memory leak can manifest itself as a "wave"
or "sawtooth" that trends
 >upwards, or as a line trending upwards. Think about it
this way -- if code
 >allocated 50KB, waiting a while, then freed 49KB, waited
a while, and then
 >allocated 50KB again... that's leaking 1KB memory with
each iteration even
 >if the memory usage goes up and down.
 >
 >Your situation sounds like there is heap fragmentation
(2GB machine dying
 >with around 1GB RAM free).
 >
 >--
 >//David
 >IIS
 >This posting is provided "AS IS" with no warranties, and
confers no rights.
 >//
 ><anonymous.DeleteThis@discussions.microsoft.com> wrote in message
 >news:d5fe01c40ab6$9e1aab10$a501280a@phx.gbl...
 >I wasn't claiming that we have a memory leak. I said we
 >were trying to determine IF we had one. This is a large
 >site 10,000+ asp pages, connecting to an SQL Server 2000
 >database server.
 >
 >My real question was what behavior do people see with a
 >memory leak. Does memory NEVER get returned, or does it
 >go up and down a little, with the overall trend
 >continually increasing? In the 6 hours since I started
 >the logging, that was the trend I was seeing. Going up a
 >certain amount, then coming down, but not back to where
 >it was. So it would go up some, come down a little, go
 >up some more, come down a little, etc. I had only been
 >watching it for 6 hours when I posted that question.
 >
 >I will continue logging for a few days to see what
 >happens.
 >
 >We have 3 IIS5 servers in a cluster using a Cisco Content
 >Switch. Two of the servers have 1GB of RAM, and the
 >thrid has 2GB or RAM. The website is running in Isloated
 >mode on all three servers. On the two with 1GB of RAM,
 >when the server get's down to about 200MB free (which
 >takes about a week), IIS starts throwing the general 500
 >Internal Server Error. On the server with 2GB of RAM,
 >this happens after the server get's down to about 950MB
 >free.
 >
 >On all 3 servers, free RAM just slowly drops over the
 >course of a week or 2.
 >
 >Pete
 >
  >>-----Original Message-----
  >>You have to be very careful in distinguishing memory
 >leaks and "aggressive
  >>caching".
  >>- Memory leak is memory that is allocated, possibly
 >used, and then "lost
  >>track of".
  >>- "Aggressive caching" is memory that is allocated and
 >being used, but it is
  >>not lost and will be eventually freed. For example,
 >telling IIS to use up
  >>to 400MB of RAM as a file cache
  >>
  >>
  >>Personally, looking at a 6 hour trend and it moves
 >between 375MB and 410MB,
  >>I am not concerned. I don't know if after 12 hours your
 >memory usage hovers
  >>around 400MB or 600MB. If you come back after 24 hours
 >and it's at 800MB
  >>and after 48 hours it is 1.6GB and the website(s)
 >involved is pretty
  >>"small", then I would think memory leak. Until you have
 >a "profile" of
  >>memory use by your app, you really can't say "memory
 >leak". For example,
  >>your app's configuration may be using 1GB of memory
 >in "steady state", so
  >>watching RAM increase until 1GB is no concern.
  >>
  >>It is not clear whether you are claiming a memory leak
 >in IIS itself or a
  >>memory leak in 3rd party code run on IIS, including your
 >own.
  >>
  >>--
  >>//David
  >>IIS
  >>This posting is provided "AS IS" with no warranties, and
 >confers no rights.
  >>//
  >>"Peter Conlan" <anonymous.DeleteThis@discussions.microsoft.com>
 >wrote in message
  >>news:c09601c40877$ecfcfdf0$a501280a@phx.gbl...
  >>We are currently trying to determine if we have a memory
  >>leak. I have searched and seen a number of posts about
  >>looking at Process\Private Bytes and Process\Virtual
  >>Bytes.
  >>
  >>What I have read indicates that if Private Bytes is
  >>increasing, you have a memory leak. In our case Private
  >>Bytes seems to go up and down over short periods, but
the
  >>overall trend is up. When I started logging, it was at
  >>375MB, and about 6 hours later it is at about 410MB.
  >>
  >>Is this the kind of thing that would be seen in a memory
  >>leak, or would it be a situation where Private Bytes
  >>NEVER went down?
  >>
  >>Virtual Bytes is very flat. It was at 1GB and then all
  >>of a sudden jumped to 1.2 GB and stayed there.
  >>
  >>Also, I recently ran across a post by Pat Filoteo that
  >>listed some practices that are poor memory performers or
  >>cause memory fragmentation. Listed were: concatenation,
  >>the use of ReDim in a loop. Are there any others?
  >>
  >>He also mentioned that each concatenation hits memory 6
  >>times. Could we get some more details on that?
  >>
  >>Any information would be appreciated.
  >>
  >>Thanks,
  >>Pete Conlan
  >>
  >>
  >>.
  >>
 >
 >
 >.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS Memory leak 
Back to top
Login to vote
dev2

External


Since: Oct 14, 2003
Posts: 290



(Msg. 6) Posted: Tue Mar 16, 2004 5:07 pm
Post subject: Re: IIS Memory leak [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Peter ,

If your server is crashing or hanging you might want to
download our ReJuvin8 tool. It's free for the first
15-days. It can keep your site running despite problems.

It's designed to detect problems then restart or reboot.
It can restart ANY programs, services, or processes in
precise order. It doesn't fix bugs but it does give you some
breathing room while you are finding them. ReJuvin8 also
gives you email and telephone alert messages and graphic
status reports. It runs as a Windows Service.

It can also test, alert, and report on URLs running anywhere
on any server on your net connection. So if you use multiple
servers you can use them to watch each other, too.

ReJuvin8 has both an automatic and a custom mode. In the
auto mode you make all the settings by pointing and
clicking. This will handle most applications.

The custom mode uses heartbeat synch files to get absolute
detection that key processes are working. Tools and
instructions are provided to help you do this. We also offer
customization as a contract service.

Charles


Get ReJuvin8 at: <a style='text-decoration: underline;' href="http://www.rejuvin8.net?ac=ch1" target="_blank">http://www.rejuvin8.net?ac=ch1</a>

Also, see it and reviews at
<a style='text-decoration: underline;' href="http://www.hotscripts.com/cgi-bin/search.cgi?bool=AND&query=rejuvin8&catid=all" target="_blank">http://www.hotscripts.com/cgi-bin/search.cgi?bool=AND&query=rejuvin8&catid=all</a>





"Peter Conlan" <anonymous.DeleteThis@discussions.microsoft.com> wrote in message
news:c09601c40877$ecfcfdf0$a501280a@phx.gbl...
 > We are currently trying to determine if we have a memory
 > leak. I have searched and seen a number of posts about
 > looking at Process\Private Bytes and Process\Virtual
 > Bytes.
 >
 > What I have read indicates that if Private Bytes is
 > increasing, you have a memory leak. In our case Private
 > Bytes seems to go up and down over short periods, but the
 > overall trend is up. When I started logging, it was at
 > 375MB, and about 6 hours later it is at about 410MB.
 >
 > Is this the kind of thing that would be seen in a memory
 > leak, or would it be a situation where Private Bytes
 > NEVER went down?
 >
 > Virtual Bytes is very flat. It was at 1GB and then all
 > of a sudden jumped to 1.2 GB and stayed there.
 >
 > Also, I recently ran across a post by Pat Filoteo that
 > listed some practices that are poor memory performers or
 > cause memory fragmentation. Listed were: concatenation,
 > the use of ReDim in a loop. Are there any others?
 >
 > He also mentioned that each concatenation hits memory 6
 > times. Could we get some more details on that?
 >
 > Any information would be appreciated.
 >
 > Thanks,
 > Pete Conlan
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: IIS Memory leak 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Memory Leak - Recently our IIS servers were rebuilt using better hardware. However, since the rebuilt we have been experiencing a memory leak problem and we have not been able to isolate the process causing it neither we have found major error in the ASP pages. Two...

Horrible memory leak - I've noticed dllhost.exe growing larger and larger. I looked at back posts and the response was a object collection problem in the coding. Well, to test this, I took a one line ".html" file and changed the extension to ".asp" Still...

Memory Leak and caching - Hello: I have an IIS 5.0 server (W2K sp2) server that has been locking up due to a memory leak. I know that IIS caches a lot of data and the TTL on the cache is 24 hours. To troubleshoot this I want to reduce the TTL to 12 hours and see if that help i...

Tracking down memory leak on 2 servers - I have 3 servers that are very similar in their software components. All 3 are running Windows 2000 Server, IIS and Exchange. 2 of the 3 servers are experiencing a growth of INETINFO Private Bytes over a period of a week or 2 that renders the server..

Dllhost.exe Memory Leak Problem - IIS 5 - I have seen a lot of discussion on this forum about this problem. We are experiencing this on an Intranet server where memory footprint of one our dllhost.exe processes gradually expands until it either runs out of memory or is unloaded. Two points that....
   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 ]