db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Enyedi <robert.eny...@intland.com>
Subject Heap and stack size for Derby server
Date Wed, 01 Nov 2006 15:07:25 GMT

I've recently tested Derby with a SELECT statement containing 5000 
elements inside an IN clause. The query looked something like this:

SELECT field1 FROM table1 WHERE field1 IN (0, 1, 2, ..., 4999)

This failed with a server side StackOverflowError. True, I got past this 
issue by starting Derby with the "-Xss1024k" JVM option, but this was a 
trial and error approach.

Are there any recommendations on how to set the size of the heap and 
stack for a Derby instance? Is there a way to estimate the memory 
requirements of a Derby database? Did anyone had such experiences?


PS: I've been using the Derby release in networked mode running 
on Sun JRE 1.5.0_09.

View raw message