Subject GDS Exception. 335544430. unable to allocate memory from operating system
Author scott.buckham
We have firebird 2.1.2 superserver installed on a Windows 2003 server using jaybrid 2.1.6 in our java application. After some time running without a restart (only a week in the last instance) we get the following exception:

Caused by: org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544430. unable to allocate memory from operating system
at org.firebirdsql.jdbc.AbstractPreparedStatement.<init>(AbstractPrepare
dStatement.java:127)
at org.firebirdsql.jdbc.FBPreparedStatement.<init>(FBPreparedStatement.j
ava:41)
at sun.reflect.GeneratedConstructorAccessor769.newInstance(Unknown Sourc
e)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
rce)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.firebirdsql.jdbc.FBStatementFactory.createPreparedStatement(FBSta
tementFactory.java:90)
at org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConn
ection.java:869)
at org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConn
ection.java:824)
at org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConn
ection.java:817)
at org.firebirdsql.jdbc.AbstractConnection.prepareStatement(AbstractConn
ection.java:293)
at org.apache.commons.dbcp.PoolingConnection.makeObject(PoolingConnectio
n.java:188)
at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(Gene
ricKeyedObjectPool.java:747)
at org.apache.commons.dbcp.PoolingConnection.prepareStatement(PoolingCon
nection.java:87)
... 39 more

This prints over and over from different parts of the system - essentially our application grinds to a halt but we can happily access he server remotely via LogMeIn. A restart of the physical machine fixed the issue albeit they had some strange issues with a network adapter on reboot.

I would expect that Windows would just page and give he fbserver the memory it needs. Unfortunately the technician did not record the memory use before restart.

Could someone elaborate on what this error means? Or is it as simple as Firebird is requesting memory and it's being denied for reasons unknown to firebird?

I had originally posted to the firebird-support forum but I was directed here by Helen Borrie:

"Please use the firebird-java list for this question, since it looks like a Jaybird pooling problem"

Thanks in advance.

Scott