...
No Format |
---|
$ java -Dlog4j.configuration=file:log4j_server.xml -jar tika-server-x.x.jar -spawnChild -JXmx4g -JDlog4j.configuration=file:log4j_child.xml}} |
NOTE 2: We strongly encourage -JXX:+ExitOnOutOfMemoryError
, which admittedly has limitations: https://bugs.openjdk.java.net/browse/JDK-8155004. When a JVM is struggling with memory, it is possible that the OOM happens in reading bytes from the client or writing bytes to the client NOT during the parse.
NOTE 3: When using the -spawnChild
option, clients will need to be aware that the server could be unavailable temporarily while it is restarting. Clients will need to have a retry logic.
...