Schäfer <[EMAIL PROTECTED]> wrote:
> My Apache.exe-Process is growing continuously!
>
> I wrote two Java servlets in order to generate
> html-output for a web based user interface. [...]
> The whole system works fine, but at each call of a
> servlet the apache.exe-process needs a little bit more
> memory (some kb). This memory is never released. So the
> system runs "out of virtual memory". [...]
Looks like you've got a memory leak somewhere.
Check if you're closing your database connections.
They are supposed to be closed automatically but
sometimes it just doesn't happen.
Look for something like this:
void someMethod()
{
Connection con = DriverManager.getConnection(...);
// Some DB oprerations
// No con.close()!
}
It's always safer to close all your database resources
(connections, statements, result sets) once you no
longer need them.
Hope this helps :-)
--
Pawel Pesz
InsERT.net, Wroclaw, Poland
mailto:[EMAIL PROTECTED]
http://www.insert.net.pl
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]