On Nov 14, 10:49 am, Thomas Mueller <
thomas.tom.muel...@gmail.com>
wrote:
> - What is your database URL?
jdbc:h2:tcp://
127.0.0.1:9080/projectname
> - Do you use Tomcat or another web server?
> Do you unload or reload the web application?
No, we're running an application from Main(), which is the only user
of the database. (Except for the occasional service engineer tunneling
into the web UI of H2.)
> - Did you use multiple connections?
There's one application connecting to the database using the following
setup:
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName" value="org.h2.Driver"/>
<property name="url"><value>${database.url}</value></property>
<property name="username"><value>${database.user}</value></
property>
<property name="password"><value>${database.password}</value></
property>
<property name="maxActive" value="90"/>
</bean>
As far as I can tell we have no more than two threads working on the
table that gave us the problems (doing a sort of provider/consumer
pattern).
> - With which version of H2 was this database created?
CREATE_BUILD 111
We're recreating the database on every software re-install, so we're
not carrying much legacy behind us in that respect.
> - Do you use any settings or special features (for example, the setting
> LOG=0, or two phase commit, linked tables, cache settings)?
I would not say so. All default setting.
This is our command-line:
java -cp .:bin/h2.jar -Xmx30m -Dh2.bindAddress=localhost -
Duser.timezone=Europe/Amsterdam org.h2.tools.Server -tcp -tcpPort 9080
-web -webPort 8080
> - Did the application run out of memory (once, or multiple times)?
There is a small chance that our application did, although not likely
after recent changes to the amount of assigned memory. Also, H2 is not
running in-process. The H2 application I've never seen running out of
memory.
> - Is the application multi-threaded?
Answered above.
> - What operating system, file system, and virtual machine
> (java -version) do you use?
uname -a
Linux 000bab24fa03 2.6.24-24-generic #1 SMP Sat Aug 22 01:06:14 UTC
2009 i686 GNU/Linux
cat /etc/issue
Ubuntu 8.04.3 LTS \n \l
java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
> - Is it (or was it at some point) a networked file system?
No, this is Compactflash
> - How big is the database (file sizes)?
37M projectname.18.log.db
11M projectname.19.log.db
7.3M projectname.data.db
37M projectname.index.db
4.0K projectname.lobs.db
99 projectname.lock.db
(This taken from a randomly running system.)
> - Is the database usually closed normally, or is process terminated
> forcefully or the computer switched off?
Never closed normally. Power down or "kill -9" are common scenarios.
> - Is it possible to reproduce this problem using a fresh database
> (sometimes, or always)?
No, it appears to be a rare problem.
> - Are there any other exceptions (maybe in the .trace.db file)?
> Could you send them please?
Will send the database files privately.