(runtime.maxMemory() / 1024) + "K max; " +
	public void sync(int syncEvent) {		try {			Lock lock = collectionsDb.getLock();			try {				lock.acquire(Lock.WRITE_LOCK);				collectionsDb.flush();			} catch (LockException e) {				LOG.warn("failed to acquire lock on collections store", e);			} finally {				lock.release();			}			new DOMTransaction(this, domDb, Lock.WRITE_LOCK) {				public Object start() {					try {						domDb.flush();					} catch (DBException e) {						LOG.warn("error while flushing dom.dbx", e);					}					return null;				}			}			.run();			if(syncEvent == Sync.MAJOR_SYNC) {				elementIndex.sync();				textEngine.sync();								Runtime runtime = Runtime.getRuntime();				LOG.debug("Memory: " + (runtime.totalMemory() / 1024) + "K total; " +						(runtime.freeMemory() / 1024) + "K free");								// uncomment this to get statistics on page buffer usage				elementsDb.printStatistics();				collectionsDb.printStatistics();				domDb.printStatistics();			}		} catch (DBException dbe) {			dbe.printStackTrace();			LOG.debug(dbe);		}	}