mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-07-02 19:08:27 +00:00
Update documentation
This commit is contained in:
@ -35,6 +35,42 @@ You should be able to create a new account and sign in. Check the
|
||||
[configuration page](@/docs/configure/_index.md) to further customize
|
||||
docspell.
|
||||
|
||||
## Memory Usage
|
||||
|
||||
The memory requirements for the joex component depends on the document
|
||||
language and the configuration for [file
|
||||
processing](@/docs/configure/_index.md#file-processing). The
|
||||
`nlp.mode` setting has significant impact, especially when your
|
||||
documents are in German. Here are some rough numbers on jvm heap usage
|
||||
(the same small jpeg file was used for all tries):
|
||||
|
||||
<table class="table is-hoverable is-striped">
|
||||
<thead>
|
||||
<tr><th>nlp.mode</th><th>English</th><th>German</th><th>French</th></tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<tr><td>full</td><td>420M</td><td>950M</td><td>490M</td></tr>
|
||||
<tr><td>basic</td><td>170M</td><td>380M</td><td>390M</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
When using `mode=full`, a heap setting of at least `-Xmx1400M` is
|
||||
recommended. For `mode=basic` a heap setting of at least `-Xmx500M` is
|
||||
recommended.
|
||||
|
||||
Other languages can't use these two modes, and so don't require this
|
||||
amount of memory (but don't have as good results). Then you can go
|
||||
with less heap.
|
||||
|
||||
More details about these modes can be found
|
||||
[here](@/docs/joex/file-processing.md#text-analysis).
|
||||
|
||||
|
||||
The restserver component is very lightweight, here you can use
|
||||
defaults.
|
||||
|
||||
|
||||
## Options
|
||||
|
||||
@ -65,10 +101,10 @@ $ ./docspell-restserver*/bin/docspell-restserver -h
|
||||
|
||||
gives an overview of supported options.
|
||||
|
||||
It is recommended to run joex with 1.5G heap space or more and with
|
||||
the G1GC enabled. If you use java8, you need to add an option to use
|
||||
G1GC, for java11 this is not necessary (but doesn't hurt either). This
|
||||
could look like this:
|
||||
It is recommended to run joex with the G1GC enabled. If you use java8,
|
||||
you need to add an option to use G1GC (`-XX:+UseG1GC`), for java11
|
||||
this is not necessary (but doesn't hurt either). This could look like
|
||||
this:
|
||||
|
||||
```
|
||||
./docspell-joex-{{version()}}/bin/docspell-joex -J-Xmx1596M -J-XX:+UseG1GC -- /path/to/joex.conf
|
||||
|
Reference in New Issue
Block a user