Re: [Webware-devel] bad memory leak

Greg, can you post the servlet you are using? (if its relatively small,
else email to me)
Thanks-
Jay
On Fri, 2002-02-22 at 11:54, Brondo, Greg wrote:
> Sorry to repost but I have no solution. Actually, If I cannot solve the
> memory leak issue I have to rewrite my app in Java. Anyway, it's a fairly
> simple app (and my first in Webware) in production use at my company. It
> has a search form which generates an SQL lookup and then it returns a table
> with links to invoices (in zip format). When the user clicks the link, the
> server unzip's the file to a tempdir and redirects the browser to the
> unzipped file (a pdf invoice). That's all it does.
>
> I've done the following:
> 1) Tested with both DCOracle2 and cx_Oracle connectors. No Change.
> 2) Explicitly del or None my rows list. No Change.
>
> This is my 2nd long running python app (the other is written with mod_python
> and has 0% memory leakage). However, it does not have the load this app
> incurrs (roughly several thousands hits a day if not more).
>
> Any help would appreciated. It ate 3.5GB of ram in 5 hours yesterday.
>
> Setup is Solaris 5.8, Oracle 8.1.7 on a 8x8 Sun 6500.
>
> Thanks!
> Greg B.
>
> _______________________________________________
> Webware-devel mailing list
> Webware-devel@...
> https://lists.sourceforge.net/lists/listinfo/webware-devel

Thread view

Sorry to repost but I have no solution. Actually, If I cannot solve the
memory leak issue I have to rewrite my app in Java. Anyway, it's a fairly
simple app (and my first in Webware) in production use at my company. It
has a search form which generates an SQL lookup and then it returns a table
with links to invoices (in zip format). When the user clicks the link, the
server unzip's the file to a tempdir and redirects the browser to the
unzipped file (a pdf invoice). That's all it does.
I've done the following:
1) Tested with both DCOracle2 and cx_Oracle connectors. No Change.
2) Explicitly del or None my rows list. No Change.
This is my 2nd long running python app (the other is written with mod_python
and has 0% memory leakage). However, it does not have the load this app
incurrs (roughly several thousands hits a day if not more).
Any help would appreciated. It ate 3.5GB of ram in 5 hours yesterday.
Setup is Solaris 5.8, Oracle 8.1.7 on a 8x8 Sun 6500.
Thanks!
Greg B.

Greg, can you post the servlet you are using? (if its relatively small,
else email to me)
Thanks-
Jay
On Fri, 2002-02-22 at 11:54, Brondo, Greg wrote:
> Sorry to repost but I have no solution. Actually, If I cannot solve the
> memory leak issue I have to rewrite my app in Java. Anyway, it's a fairly
> simple app (and my first in Webware) in production use at my company. It
> has a search form which generates an SQL lookup and then it returns a table
> with links to invoices (in zip format). When the user clicks the link, the
> server unzip's the file to a tempdir and redirects the browser to the
> unzipped file (a pdf invoice). That's all it does.
>
> I've done the following:
> 1) Tested with both DCOracle2 and cx_Oracle connectors. No Change.
> 2) Explicitly del or None my rows list. No Change.
>
> This is my 2nd long running python app (the other is written with mod_python
> and has 0% memory leakage). However, it does not have the load this app
> incurrs (roughly several thousands hits a day if not more).
>
> Any help would appreciated. It ate 3.5GB of ram in 5 hours yesterday.
>
> Setup is Solaris 5.8, Oracle 8.1.7 on a 8x8 Sun 6500.
>
> Thanks!
> Greg B.
>
> _______________________________________________
> Webware-devel mailing list
> Webware-devel@...
> https://lists.sourceforge.net/lists/listinfo/webware-devel

FYI
Greg let me know that he tracked down his problem. Some of his code was
throwing exceptions that he wasn't seeing. He wrapped it in try/except
blocks and now all is well.
Jay
On Sun, 2002-02-24 at 22:30, Jay Love wrote:
>
> Greg, can you post the servlet you are using? (if its relatively small,
> else email to me)
>
> Thanks-
>
> Jay
>
>
> On Fri, 2002-02-22 at 11:54, Brondo, Greg wrote:
> > Sorry to repost but I have no solution. Actually, If I cannot solve the
> > memory leak issue I have to rewrite my app in Java. Anyway, it's a fairly
> > simple app (and my first in Webware) in production use at my company. It
> > has a search form which generates an SQL lookup and then it returns a table
> > with links to invoices (in zip format). When the user clicks the link, the
> > server unzip's the file to a tempdir and redirects the browser to the
> > unzipped file (a pdf invoice). That's all it does.
> >
> > I've done the following:
> > 1) Tested with both DCOracle2 and cx_Oracle connectors. No Change.
> > 2) Explicitly del or None my rows list. No Change.
> >
> > This is my 2nd long running python app (the other is written with mod_python
> > and has 0% memory leakage). However, it does not have the load this app
> > incurrs (roughly several thousands hits a day if not more).
> >
> > Any help would appreciated. It ate 3.5GB of ram in 5 hours yesterday.
> >
> > Setup is Solaris 5.8, Oracle 8.1.7 on a 8x8 Sun 6500.
> >
> > Thanks!
> > Greg B.
> >
> > _______________________________________________
> > Webware-devel mailing list
> > Webware-devel@...
> > https://lists.sourceforge.net/lists/listinfo/webware-devel
>
>
>
> _______________________________________________
> Webware-devel mailing list
> Webware-devel@...
> https://lists.sourceforge.net/lists/listinfo/webware-devel

On Monday 25 February 2002 03:35 pm, Jay Love wrote:
> FYI
>
> Greg let me know that he tracked down his problem. Some of his code
> was throwing exceptions that he wasn't seeing. He wrapped it in
> try/except blocks and now all is well.
>
> Jay
We does throwing exceptions create such huge memory consumption? Is
that a problem in and of itself?
-Chuck