Interbase/Interclient memory leak problem

Using: Linux SuperServer 6.0.1
            Interclient 2.0
            Jdk 1.3.1
            JBoss pooling

We've been expriencing serious memory leaks with the above setup.. it runs
fine until it starts encountering database insert/select errors then it
sucks up memory and {*word*99}s out with a message something like this:

Exception in thread "CompileThread0" java.lang.OutOfMemoryError: requested
536870924 bytes

Increasing memory to the JBoss JVM didn't help..
Has anyone run into this? Any solutions?