[daisy] PDF book publishing error - Java heap

Andreas Deininger adeininger at googlemail.com
Sat May 10 19:34:39 CEST 2008


2008/5/10 Karel Vervaeke <karel at outerthought.org>:
> It depends on how you are running the Daisy wiki:
> - Using the provided .bat files
> - Using the provided wrapper scripts
> - Other, e.g. Tomcat
>
> For Tomcat, again it depends on how you start it.
> I believe the most common way is to set the environment variable JAVA_OPTS
> to "-Xmx 512M" for 512M of heap space before running
> $TOMCAT_HOME/bin/catalina.sh start
> If you are running tomcat as a windows service, I'm unsure.  Google is your
> friend :)

You may use the Java Service Wrapper in order to start up Tomcat as
Windows (or Linux) service. This is described in detail here:
http://wrapper.tanukisoftware.org/doc/english/integrate-start-stop-win.html

Inside your configuration file you then can make use of the following
configuration properties:
wrapper.java.initmemory=nn   # Initial Java Heap Size (in MB)
wrapper.java.maxmemory=nnn  # Maximum Java Heap Size (in MB)

Since the Java Service Wrapper binaries come with Daisy by default,
there is not even the need to download the Java service wrapper files.
I would reccomend you have a look at the configuration files used to
start up the daisy repository and wiki:
%DAISY_HOME%\wrapper\conf\daisy-repository-server-service.conf
%DAISY_HOME%\wrapper\conf\daisy-wiki-service.conf

HTH
Andreas


More information about the daisy mailing list