...
No Format |
---|
rem Sun JVM memory allocation pool parameters. Modify as appropriate.
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -XX:MaxPermSize=128m
|
Linux/Unix/OSX: dcm4chee-2.16.2-xxx/bin/run.conf
No Format |
---|
# Specify options to pass to the Java VM.
if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-Xms128m -Xmx512m -XX:MaxPermSize=128m ..
fi
|
according available RAM and memory requirements of other processes on this node.
E.g.: if only 512 MB RAM are available, you should decrease the default value -Xmx512m to (e.g.) -Xmx300.
...
- install it as Windows service executing install_service.bat (see Running dcm4chee PACS as a Windows service or daemon)
- aditional notes:
- to adjust maximum allocation of heap memory - you need to edit install_service.bat (not run.bat)
- for 64-bit Windows download JavaService version 2.0.7.64 from http://javaservice.objectweb.org and replace file bin/JavaService.exe
- if your service fails while starting ("Service could not be started") and you are using JDK 6:
- check your your Windows Event Log - if there are messages like "The specified module could not be found.", "Failed creating java ...\jvm.dll" - continue with next step
- try to add
%JAVA_HOME%\bin
to the system PATH environment variable, so java could find filemscvr71.dll
(for details see https://issues.apache.org/bugzilla/show_bug.cgi?id=41538 and http://www.duckware.com/tech/java6msvcr71.html)
- many versions of Windows need to be restarted after modifying environment variables (like JAVA_HOME and PATH)
...