Re: [Zope-dev] SWAP issue

2002-09-06 Thread Ahsan Imam

I introduced the LeakFinder product. However Friday, Saturday and Sunday are least 
busiest days on our site. Our main zope server is not swapping at all today. So I 
cannot replicate what happened yesterday or the day before.

When I looked at the debug information section, it showed me the request that I had 
just made. I guess I will have to wait until a busy day.

In an earlier mail I had named two references to classes 
(DocumentTemplate.DT_Util.Eval,OFS.Image.Image ). Should I be concerned with these? 
These are always topping the list. (Our site is very image intensive).

Thanks 


>>> Dieter Maurer <[EMAIL PROTECTED]> 09/06/02 11:57 AM >>>
Ahsan Imam writes:
 > Is there a way catch that non terminating loop? This non-terminating loop is just a 
 >theory I have. I could be completely wrong. Are there other things I could look at 
 >for clues.
When you have indeed a non-terminating loop (and you Zope is still responsive),
you can find at least the request that triggered it:

  Go to "Control_Panel --> Debug information" and look at the bottom of
  this page.

  You will see the currently active requests.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] SWAP issue

2002-09-06 Thread Dieter Maurer

Ahsan Imam writes:
 > Is there a way catch that non terminating loop? This non-terminating loop is just a 
 >theory I have. I could be completely wrong. Are there other things I could look at 
 >for clues.
When you have indeed a non-terminating loop (and you Zope is still responsive),
you can find at least the request that triggered it:

  Go to "Control_Panel --> Debug information" and look at the bottom of
  this page.

  You will see the currently active requests.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] SWAP issue

2002-09-06 Thread Ahsan Imam

I installed the LeakFinder product and two most called references are:

1) DocumentTemplate.DT_Util.Eval
2) OFS.Image.File

Do these classes have any prior history? Should I patch them or what other course can 
I take? 

Your help is much appreciated.

Thanks
Ahsan Imam


>>> Dieter Maurer <[EMAIL PROTECTED]> 09/05/02 13:14 PM >>>
Ahsan Imam writes:
 > After starting zope eveything works fine for a while. Slowly the swap starts to 
 >swell up and after a few hours the machine has to be rebooted. The funny thing is 
 >that free shows that there is almost a gig of RAM free and swap keeps on growing. 
 >After a while the machine simply hangs.
When it is Zope, then restarting Zope should free your swap again.

  This way, you can test whether Zope is the culprit and avoid
  rebooting your computer.

When it is Zope, there probably is a resource leak. There is
the "LeakFinder" product to localize such leaks.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] SWAP issue

2002-09-05 Thread Dieter Maurer

Ahsan Imam writes:
 > After starting zope eveything works fine for a while. Slowly the swap starts to 
 >swell up and after a few hours the machine has to be rebooted. The funny thing is 
 >that free shows that there is almost a gig of RAM free and swap keeps on growing. 
 >After a while the machine simply hangs.
When it is Zope, then restarting Zope should free your swap again.

  This way, you can test whether Zope is the culprit and avoid
  rebooting your computer.

When it is Zope, there probably is a resource leak. There is
the "LeakFinder" product to localize such leaks.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] SWAP issue

2002-09-05 Thread Ahsan Imam

The kernel is  2.4.7-10.
Zope 2.5 on Red Hat 7.2
python 2.1.3

Here is what I think the problem is:
Some object or code was introduced on Tuesday morning. 
The users are beginners so they could have introduced a never ending loop or something 
of that sort. I turned on profiling to see if thre was anything in particular 
consuming a lot of time. A the top of the list was Connection.py. 

Is there a way catch that non terminating loop? This non-terminating loop is just a 
theory I have. I could be completely wrong. Are there other things I could look at for 
clues.


>>> Toby Dickenson <[EMAIL PROTECTED]> 09/05/02 06:46 AM >>>
On Thursday 05 Sep 2002 2:58 am, Ahsan Imam wrote:
> Hello All,
>
> I am currently running zope 2.5 and python 2.1.3. 

Are you actually seeing the zope processes use too much memory?

2.5.x have a ZODB cache mechanism that does not respond well to memory 
pressure. If your application touches many objects per transaction then 
memory usage may grow out of control. 2.6 improves this significantly.

> The machine has 2 gigs of
> rams and is running on Red Hat 7.2.

Which kernel?

> After starting zope eveything works fine for a while. Slowly the swap
> starts to swell up

Memory that is not being actively used might as well be moved into swap, 
freeing the ram for more productive uses. This does not necessarily indicate 
a problem.

> and after a few hours the machine has to be rebooted.
> The funny thing is that free shows that there is almost a gig of RAM free
> and swap keeps on growing. 

Are you sure you are interpreting the output from 'free' correctly? It is 
often misinterpreted. (please post the output from 'free -m' if you are not 
sure.)

> After a while the machine simply hangs.

> I have recompiled python and zope. Turned on profiling.
> I have looked through the stupid.log. There are no core dumps either. I
> have also tried running zope with one thread.
>
> Does anyone have suggestions.

you havent explained why you think this is a zope problem.


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] SWAP issue

2002-09-05 Thread Toby Dickenson

On Thursday 05 Sep 2002 2:58 am, Ahsan Imam wrote:
> Hello All,
>
> I am currently running zope 2.5 and python 2.1.3. 

Are you actually seeing the zope processes use too much memory?

2.5.x have a ZODB cache mechanism that does not respond well to memory 
pressure. If your application touches many objects per transaction then 
memory usage may grow out of control. 2.6 improves this significantly.

> The machine has 2 gigs of
> rams and is running on Red Hat 7.2.

Which kernel?

> After starting zope eveything works fine for a while. Slowly the swap
> starts to swell up

Memory that is not being actively used might as well be moved into swap, 
freeing the ram for more productive uses. This does not necessarily indicate 
a problem.

> and after a few hours the machine has to be rebooted.
> The funny thing is that free shows that there is almost a gig of RAM free
> and swap keeps on growing. 

Are you sure you are interpreting the output from 'free' correctly? It is 
often misinterpreted. (please post the output from 'free -m' if you are not 
sure.)

> After a while the machine simply hangs.

> I have recompiled python and zope. Turned on profiling.
> I have looked through the stupid.log. There are no core dumps either. I
> have also tried running zope with one thread.
>
> Does anyone have suggestions.

you havent explained why you think this is a zope problem.

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] SWAP issue

2002-09-05 Thread Ahsan Imam

Hello All,

I am currently running zope 2.5 and python 2.1.3. The machine has 2 gigs of rams and 
is running on Red Hat 7.2. 

After starting zope eveything works fine for a while. Slowly the swap starts to swell 
up and after a few hours the machine has to be rebooted. The funny thing is that free 
shows that there is almost a gig of RAM free and swap keeps on growing. After a while 
the machine simply hangs.

I have recompiled python and zope. Turned on profiling.
I have looked through the stupid.log. There are no core dumps either. I have also 
tried running zope with one thread.

Does anyone have suggestions. 

Thanks

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )