Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Oracle 8.1.6 EJB: session objects == memory leak?

Oracle 8.1.6 EJB: session objects == memory leak?

From: Damian Fauth <dfauth_at_users.sourceforge.net>
Date: Fri, 16 Feb 2001 16:57:00 +1100
Message-ID: <3A8CC12C.11AC033C@users.sourceforge.net>

Hi,

I am working on a project that uses 8.1.6 and the Oracle JVM as an application server, processing requests for a number of multithreaded clients (mainly servlet containers but also a custom app that pulls data off a JMS queue and invokes an EJB)

In order for us to use the EJBs in a multithreaded environment we have made use of the service.createSubContext(":session1") API and then run each EJB request in a new session. The problem then appears to be that the server does not release the memory allocated to these session objects and eventually it runs out of memory with an ORA-04031 error.

None of the examples in the documentation show how to logout/destroy a session subcontext object, they simply allow the JVM to exit, after which all the memory is returned. In our environment, other than restarting the client services every few hours there seems little we can do to get the server to reallocate this memory.

My question (finally) does anyone know how to destroy these session subcontext objects?

TIA Damian Received on Thu Feb 15 2001 - 23:57:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US